Modifier and Type | Method and Description |
---|---|
java.util.List<E> |
getEdgeList()
Returns the edges making up the path.
|
V |
getEndVertex()
Returns the end vertex in the path.
|
Graph<V,E> |
getGraph()
Returns the graph over which this path is defined.
|
V |
getStartVertex()
Returns the start vertex in the path.
|
double |
getWeight()
Returns the weight assigned to the path.
|
Graph<V,E> getGraph()
V getStartVertex()
V getEndVertex()
java.util.List<E> getEdgeList()
Graphs.getPathVertexList(org.jgrapht.GraphPath<V, E>)
provides a convenience method for this.
Whether or not the returned edge list is modifiable depends on the path implementation.
double getWeight()