Package dsa.lab10.base
Class Path<Vertex,Distance>
java.lang.Object
dsa.lab10.base.Path<Vertex,Distance>
- Type Parameters:
Vertex
- the vertex typeDistance
- the distance measure type
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
-
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