V - vertex typeE - edge typepublic interface Path<V extends Vertex,E extends Edge<V>> extends Edge<V>
| Modifier and Type | Method and Description | 
|---|---|
Weight | 
cost()
Returns the total cost of the path as a weight object. 
 | 
List<E> | 
edges()
Returns the list of edges comprising the path. 
 | 
List<E> edges()
Weight cost()