Package com.jgalgo
Interface Coloring.Result
-
- Enclosing interface:
- Coloring
public static interface Coloring.Result
A coloring result containing a color for each vertex.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
colorOf(int vertex)
Get the color assigned to a vertex.int
colorsNum()
The total number of different colors used in the coloring.
-
-
-
Method Detail
-
colorsNum
int colorsNum()
The total number of different colors used in the coloring.- Returns:
- number of different colors
-
colorOf
int colorOf(int vertex)
Get the color assigned to a vertex.- Parameters:
vertex
- a vertex identifier in the graph- Returns:
- a color of the vertex, represented as integer
-
-