java.lang.Object
org.jgrapht.alg.tour.NearestInsertionHeuristicTSP.Closest<V>
- Type Parameters:
V
- vertex type
- All Implemented Interfaces:
Comparable<NearestInsertionHeuristicTSP.Closest<V>>
- Enclosing class:
NearestInsertionHeuristicTSP<V,
E>
private static class NearestInsertionHeuristicTSP.Closest<V>
extends Object
implements Comparable<NearestInsertionHeuristicTSP.Closest<V>>
Class holding data for the closest unvisited vertex to a particular vertex in the tour.
-
Field Details
-
tourVertex
-
unvisitedVertex
-
distance
private final double distance
-
-
Constructor Details
-
Closest
-
-
Method Details
-
getTourVertex
-
getUnvisitedVertex
-
getDistance
public double getDistance() -
compareTo
- Specified by:
compareTo
in interfaceComparable<V>
-