V
- the graph vertex typeE
- the graph edge typepublic class BrownBacktrackColoring<V,E> extends Object implements VertexColoringAlgorithm<V>
VertexColoringAlgorithm.Coloring<V>, VertexColoringAlgorithm.ColoringImpl<V>
Constructor and Description |
---|
BrownBacktrackColoring(Graph<V,E> graph)
Construct a new Brown backtracking algorithm.
|
Modifier and Type | Method and Description |
---|---|
int |
getChromaticNumber()
Returns the chromatic number
of the input graph
|
VertexColoringAlgorithm.Coloring<V> |
getColoring()
Computes a vertex coloring.
|
public int getChromaticNumber()
public VertexColoringAlgorithm.Coloring<V> getColoring()
VertexColoringAlgorithm
getColoring
in interface VertexColoringAlgorithm<V>
Copyright © 2019. All rights reserved.