public interface Edge
DijkstraAlgorithm
.
Implement this class to hold the start and end vertex for an edge and implement the
getPenalty()
method.Modifier and Type | Method | Description |
---|---|---|
Vertex |
getEnd() |
Returns the end vertex of the edge.
|
int |
getPenalty() |
Returns the penalty (or distance) for this edge.
|
Vertex |
getStart() |
Returns the start vertex of the edge.
|
Vertex getStart()
Vertex getEnd()
int getPenalty()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.