Package dsa.lab10.base
Class Path<Vertex,Distance>
java.lang.Object
dsa.lib.DSAObject
dsa.lab10.base.Path<Vertex,Distance>
- Type Parameters:
Vertex- the vertex typeDistance- the distance measure type
- All Implemented Interfaces:
dsa.lib.DSAInterface
public class Path<Vertex,Distance>
extends dsa.lib.DSAObject
Information about a path (of zero or more edges) from some source to some
target vertex.
Contains the previous vertex visited in the path from source to target, and some measure of the total distance from the source to the target.
The idea is that there will be other such Path objects giving
information about any previous steps in the path (e.g. how to get to the
previous vertex).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dsa.lib.DSAObject
toDebugString, toString
-
Constructor Details
-
Path
Construct a path step with the given information.- Parameters:
previous- the previous vertex in the pathdistance- the distance from the source
-
-
Method Details