V
- the graph vertex typeE
- the graph edge typepublic interface GraphPath<V,E>
Graph
. Unlike some definitions, the path is not required to be a
Simple Path.Modifier and Type | Method and Description |
---|---|
default 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.
|
default int |
getLength()
Returns the length of the path, measured in the number of edges.
|
V |
getStartVertex()
Returns the start vertex in the path.
|
default List<V> |
getVertexList()
Returns the path as a sequence of vertices.
|
double |
getWeight()
Returns the weight assigned to the path.
|
Graph<V,E> getGraph()
V getStartVertex()
V getEndVertex()
default List<E> getEdgeList()
getVertexList()
.
Whether or not the returned edge list is modifiable depends on the path implementation.
default List<V> getVertexList()
double getWeight()
default int getLength()
Copyright © 2018. All rights reserved.