Class NearestInsertionHeuristicTSP.Closest<V>

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

      private final V tourVertex
    • unvisitedVertex

      private final V unvisitedVertex
    • distance

      private final double distance
  • Constructor Details

    • Closest

      Closest(V tourVertex, V unvisitedVertex, double distance)
  • Method Details