V
- the graph vertex typeE
- the graph edge typepublic class LargestDegreeFirstColoring<V,E> extends GreedyColoring<V,E>
This is the greedy coloring algorithm which orders the vertices by non-increasing degree. See the following paper for details.
VertexColoringAlgorithm.Coloring<V>, VertexColoringAlgorithm.ColoringImpl<V>
graph, SELF_LOOPS_NOT_ALLOWED
Constructor and Description |
---|
LargestDegreeFirstColoring(Graph<V,E> graph)
Construct a new coloring algorithm.
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<V> |
getVertexOrdering()
Get the ordering of the vertices used by the algorithm.
|
getColoring
protected Iterable<V> getVertexOrdering()
getVertexOrdering
in class GreedyColoring<V,E>
Copyright © 2019. All rights reserved.