Class VertexColoringAlgorithm.ColoringImpl<V>

java.lang.Object
org.jgrapht.alg.interfaces.VertexColoringAlgorithm.ColoringImpl<V>
Type Parameters:
V - the graph vertex type
All Implemented Interfaces:
Serializable, VertexColoringAlgorithm.Coloring<V>
Enclosing interface:
VertexColoringAlgorithm<V>

public static class VertexColoringAlgorithm.ColoringImpl<V> extends Object implements VertexColoringAlgorithm.Coloring<V>, Serializable
Default implementation of the coloring interface.
See Also:
  • Constructor Details

    • ColoringImpl

      public ColoringImpl(Map<V,Integer> colors, int numberColors)
      Construct a new vertex coloring.
      Parameters:
      colors - the color map
      numberColors - the total number of colors used
  • Method Details