maspack.graph
Class Path<A,B>
java.lang.Object
maspack.graph.Path<A,B>
public class Path<A,B>
- extends java.lang.Object
Method Summary |
boolean |
addToRoute(DirectedEdge<A,B> edge,
Vertex<A,B> dest)
|
void |
clearPath()
|
double |
getCost()
|
java.util.ArrayList<DirectedEdge<A,B>> |
getEdges()
|
Vertex<A,B> |
getEnd()
|
Vertex<A,B> |
getStart()
|
java.util.ArrayList<Vertex<A,B>> |
getVertices()
|
boolean |
prependToRoute(DirectedEdge<A,B> edge,
Vertex<A,B> start)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Path
public Path(Vertex<A,B> startingPoint)
getStart
public Vertex<A,B> getStart()
getEnd
public Vertex<A,B> getEnd()
getCost
public double getCost()
prependToRoute
public boolean prependToRoute(DirectedEdge<A,B> edge,
Vertex<A,B> start)
addToRoute
public boolean addToRoute(DirectedEdge<A,B> edge,
Vertex<A,B> dest)
clearPath
public void clearPath()
getVertices
public java.util.ArrayList<Vertex<A,B>> getVertices()
getEdges
public java.util.ArrayList<DirectedEdge<A,B>> getEdges()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object