V - the graph vertex typeE - the graph edge typepublic class SmallestDegreeLastColoring<V,E> extends GreedyColoring<V,E>
This is the greedy coloring algorithm with the smallest-last ordering of the vertices. The basic idea is as follows: Assuming that vertices $v_{k+1}, \dotso, v_n$ have been already selected, choose $v_k$ so that the degree of $v_k$ in the subgraph induced by $V - $(v_{k+1}, \dotso, v_n)$ is minimal. See the following paper for details.
VertexColoringAlgorithm.Coloring<V>, VertexColoringAlgorithm.ColoringImpl<V>graph, SELF_LOOPS_NOT_ALLOWED| Constructor and Description |
|---|
SmallestDegreeLastColoring(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.
|
getColoringprotected Iterable<V> getVertexOrdering()
getVertexOrdering in class GreedyColoring<V,E>Copyright © 2019. All rights reserved.