|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgrapht.graph.GraphPathImpl<V,E>
public class GraphPathImpl<V,E>
GraphPathImpl is a default implementation of GraphPath
.
Constructor Summary | |
---|---|
GraphPathImpl(Graph<V,E> graph,
V startVertex,
V endVertex,
java.util.List<E> edgeList,
double weight)
|
Method Summary | |
---|---|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphPathImpl(Graph<V,E> graph, V startVertex, V endVertex, java.util.List<E> edgeList, double weight)
Method Detail |
---|
public Graph<V,E> getGraph()
GraphPath
getGraph
in interface GraphPath<V,E>
public V getStartVertex()
GraphPath
getStartVertex
in interface GraphPath<V,E>
public V getEndVertex()
GraphPath
getEndVertex
in interface GraphPath<V,E>
public java.util.List<E> getEdgeList()
GraphPath
Graphs.getPathVertexList(org.jgrapht.GraphPath)
provides a convenience method for this.
Whether or not the returned edge list is modifiable depends on the path implementation.
getEdgeList
in interface GraphPath<V,E>
public double getWeight()
GraphPath
getWeight
in interface GraphPath<V,E>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |