Constructor and Description |
---|
DefaultPath(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.
|
List<E> |
edges()
Returns the list of edges comprising the path.
|
boolean |
equals(Object obj) |
int |
hashCode() |
V |
src()
Returns the edge source vertex.
|
String |
toString() |
public Weight cost()
Path
public List<E> edges()
Path