public class GreedyChromaticNumber extends GrphAlgorithm<java.lang.Integer>
Constructor and Description |
---|
GreedyChromaticNumber() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
compute(Grph g)
Finds the number of colors required for a greedy coloring of the graph.
|
static void |
main(java.lang.String[] args) |
cacheResultForGraph, getSourceCode
public java.lang.Integer compute(Grph g)
compute
in class GrphAlgorithm<java.lang.Integer>
g
- an undirected graph to find the chromatic number ofpublic static void main(java.lang.String[] args)