V
- the graph vertex typepublic static class VertexColoringAlgorithm.ColoringImpl<V> extends Object implements VertexColoringAlgorithm.Coloring<V>, Serializable
Constructor and Description |
---|
ColoringImpl(Map<V,Integer> colors,
int numberColors)
Construct a new vertex coloring.
|
Modifier and Type | Method and Description |
---|---|
List<Set<V>> |
getColorClasses()
Get the color classes.
|
Map<V,Integer> |
getColors()
Get the color map.
|
int |
getNumberColors()
Get the number of colors.
|
String |
toString() |
public int getNumberColors()
getNumberColors
in interface VertexColoringAlgorithm.Coloring<V>
public Map<V,Integer> getColors()
getColors
in interface VertexColoringAlgorithm.Coloring<V>
public List<Set<V>> getColorClasses()
getColorClasses
in interface VertexColoringAlgorithm.Coloring<V>
Copyright © 2019. All rights reserved.