- java.lang.Object
-
- org.jgrapht.alg.tour.NearestInsertionHeuristicTSP.Closest<V>
-
- Type Parameters:
V- vertex type
- All Implemented Interfaces:
java.lang.Comparable<NearestInsertionHeuristicTSP.Closest<V>>
- Enclosing class:
- NearestInsertionHeuristicTSP<V,E>
private static class NearestInsertionHeuristicTSP.Closest<V> extends java.lang.Object implements java.lang.Comparable<NearestInsertionHeuristicTSP.Closest<V>>
Class holding data for the closest unvisited vertex to a particular vertex in the tour.
-
-
Field Summary
Fields Modifier and Type Field Description private doubledistanceprivate VtourVertexprivate VunvisitedVertex
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NearestInsertionHeuristicTSP.Closest<V> o)doublegetDistance()VgetTourVertex()VgetUnvisitedVertex()
-
-
-
Method Detail
-
getTourVertex
public V getTourVertex()
-
getUnvisitedVertex
public V getUnvisitedVertex()
-
getDistance
public double getDistance()
-
compareTo
public int compareTo(NearestInsertionHeuristicTSP.Closest<V> o)
- Specified by:
compareToin interfacejava.lang.Comparable<V>
-
-