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()
Path
public java.util.List<E> edges()
Path
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object