| Constructor and Description |
|---|
DisjointPathPair(Path<V,E> primary,
Path<V,E> secondary)
Creates a disjoint path pair from two paths.
|
| Modifier and Type | Method and Description |
|---|---|
Weight |
cost()
Returns the total cost of the path as a weight object.
|
V |
dst()
Returns the edge destination vertex.
|
java.util.List<E> |
edges()
Returns the list of edges comprising the path.
|
boolean |
equals(java.lang.Object obj) |
boolean |
hasBackup()
Checks if this path pair contains a backup/secondary path.
|
int |
hashCode() |
Path<V,E> |
primary()
Returns the primary path.
|
Path<V,E> |
secondary()
Returns the secondary path.
|
int |
size()
Returns number of paths inside this path pair object.
|
V |
src()
Returns the edge source vertex.
|
java.lang.String |
toString() |
public Path<V,E> secondary()
public Weight cost()
Pathpublic java.util.List<E> edges()
Pathpublic boolean hasBackup()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int size()