| Constructor and Description |
|---|
DefaultPath(java.util.List<E> edges,
Weight cost)
Creates a new path from the specified list of edges and cost.
|
| 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) |
int |
hashCode() |
V |
src()
Returns the edge source vertex.
|
java.lang.String |
toString() |
public Weight cost()
Pathpublic java.util.List<E> edges()
Pathpublic 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.Object