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.
|
java.util.List<E> |
edges()
Returns the list of edges comprising the path.
|
java.util.List<E> edges()
Weight cost()