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, wait
getLength, getVertexList
public 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()
GraphPath
public V getStartVertex()
GraphPath
getStartVertex
in interface GraphPath<V,E>
public V getEndVertex()
GraphPath
getEndVertex
in interface GraphPath<V,E>
public List<E> getEdgeList()
GraphPath
GraphPath.getVertexList()
.
Whether or not the returned edge list is modifiable depends on the path implementation.
getEdgeList
in interface GraphPath<V,E>
public double getWeight()
GraphPath
Copyright © 2016. All rights reserved.