| Constructor and Description |
|---|
DisjointPathPair(Path<V,E> p1,
Path<V,E> p2)
Creates a Disjoint Path Pair from two paths.
|
| Modifier and Type | Method and Description |
|---|---|
double |
cost()
Returns the total cost of the path as a unit-less number.
|
V |
dst()
Returns the edge destination vertex.
|
List<E> |
edges()
Returns the list of edges comprising the path.
|
boolean |
equals(Object obj) |
boolean |
hasBackup()
Checks if this path pair contains a backup/secondary path.
|
int |
hashCode() |
int |
size()
Returns number of paths inside this path pair object.
|
V |
src()
Returns the edge source vertex.
|
String |
toString() |
public double cost()
Pathpublic List<E> edges()
Pathpublic boolean hasBackup()
public int size()
Copyright © 2015. All rights reserved.