V - the graph vertex typepublic static class VertexColoringAlgorithm.ColoringImpl<V> extends java.lang.Object implements VertexColoringAlgorithm.Coloring<V>, java.io.Serializable
| Constructor and Description |
|---|
ColoringImpl(java.util.Map<V,java.lang.Integer> colors,
int numberColors)
Construct a new vertex coloring.
|
| Modifier and Type | Method and 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() |
public ColoringImpl(java.util.Map<V,java.lang.Integer> colors, int numberColors)
colors - the color mapnumberColors - the total number of colors usedpublic int getNumberColors()
getNumberColors in interface VertexColoringAlgorithm.Coloring<V>public java.util.Map<V,java.lang.Integer> getColors()
getColors in interface VertexColoringAlgorithm.Coloring<V>public java.util.List<java.util.Set<V>> getColorClasses()
getColorClasses in interface VertexColoringAlgorithm.Coloring<V>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.