V - the graph vertex typeE - the graph edge typeGraphWalk.@Deprecated public class SimpleGraphPath<V,E> extends Object implements GraphPath<V,E>
SimpleGraph| Constructor and Description |
|---|
SimpleGraphPath(SimpleGraph<V,E> simpleGraph,
List<V> vertices,
double weight)
Deprecated.
|
| 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.
|
SimpleGraph<V,E> |
getGraph()
Deprecated.
Returns the graph over which this path is defined.
|
V |
getStartVertex()
Deprecated.
Returns the start vertex in the path.
|
List<V> |
getVertexList()
Deprecated.
Returns the path as a sequence of vertices.
|
double |
getWeight()
Deprecated.
Returns the weight assigned to the path.
|
public SimpleGraphPath(SimpleGraph<V,E> simpleGraph, List<V> vertices, double weight)
simpleGraph - The simple graph where the path is.vertices - A list of vertices that make up the path.weight - The weight of the path.IllegalArgumentException - if the vertices are not in the path or if they do not define
a path in the graph.public SimpleGraph<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 List<V> getVertexList()
GraphPathgetVertexList in interface GraphPath<V,E>public double getWeight()
GraphPathCopyright © 2016. All rights reserved.