Class VertexColoringAlgorithm.ColoringImpl<V>

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

public static class VertexColoringAlgorithm.ColoringImpl<V>
extends java.lang.Object
implements VertexColoringAlgorithm.Coloring<V>, java.io.Serializable
Default implementation of the coloring interface.
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    ColoringImpl​(java.util.Map<V,​java.lang.Integer> colors, int numberColors)
    Construct a new vertex coloring.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.util.Set<V>> getColorClasses()
    Get the color classes.
    java.util.Map<V,​java.lang.Integer> getColors()
    Get the color map.
    int getNumberColors()
    Get the number of colors.
    java.lang.String toString()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ColoringImpl

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