util.graph
Class Path
java.lang.Object
|
+--util.graph.Path
- public class Path
- extends Object
- implements Comparable
A path of edges.
Maintains cost based on all edges of a given
owner only contribute one cost, not one for each edge.
getCost
public int getCost()
- Cost of the path.
getEndpoint
public Object getEndpoint()
- What the path leads to.
getEdges
public Iterator getEdges()
compareTo
public int compareTo(Object o)
- Specified by:
- compareTo in interface Comparable
toString
public String toString()
- Overrides:
- toString in class Object
printOut
public void printOut()