Class VertexColoringAlgorithm.ColoringImpl<V>

Type Parameters:
V - the graph vertex type
All Implemented Interfaces:, VertexColoringAlgorithm.Coloring<V>
Enclosing interface:

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

    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.
      colors - the color map
      numberColors - the total number of colors used
  • Method Details