V - the graph vertex typeE - the graph edge typeGraphWalk instead@Deprecated public class GraphPathImpl<V,E> extends Object implements GraphPath<V,E>
GraphPath.| Constructor and Description |
|---|
GraphPathImpl(Graph<V,E> graph,
V startVertex,
V endVertex,
List<E> edgeList,
double weight)
Deprecated.
Create a new graph path
|
| Modifier and Type | Method and Description |
|---|---|
List<E> |
getEdgeList()
Deprecated.
Returns the edges making up the path.
|
V |
getEndVertex()
Deprecated.
Returns the end vertex in the path.
|
Graph<V,E> |
getGraph()
Deprecated.
Returns the graph over which this path is defined.
|
V |
getStartVertex()
Deprecated.
Returns the start vertex in the path.
|
double |
getWeight()
Deprecated.
Returns the weight assigned to the path.
|
String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLength, getVertexListpublic GraphPathImpl(Graph<V,E> graph, V startVertex, V endVertex, List<E> edgeList, double weight)
graph - the graphstartVertex - the start vertexendVertex - the end vertexedgeList - the edge list of the pathweight - the total weight of the pathpublic Graph<V,E> getGraph()
GraphPathpublic V getStartVertex()
GraphPathgetStartVertex in interface GraphPath<V,E>public V getEndVertex()
GraphPathgetEndVertex in interface GraphPath<V,E>public List<E> getEdgeList()
GraphPathGraphPath.getVertexList().
Whether or not the returned edge list is modifiable depends on the path implementation.
getEdgeList in interface GraphPath<V,E>public double getWeight()
GraphPathCopyright © 2016. All rights reserved.