| 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. 
 | 
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()  | 
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. 
 | 
String | 
toString()  | 
public Path<V,E> secondary()
public Weight cost()
Pathpublic List<E> edges()
Pathpublic boolean hasBackup()
public int size()