Interface Edge
public interface Edge
Represents an edge (or direct route between two points) for the
DijkstraAlgorithm.
Implement this class to hold the start and end vertex for an edge and implement the
getPenalty() method.-
Method Details
-
getStart
-
getEnd
-
getPenalty
int getPenalty()Returns the penalty (or distance) for this edge.- Returns:
- the penalty value (must be non-negative)
-