Package org.jgrapht.alg.color
Class RandomGreedyColoring<V,E>
- java.lang.Object
-
- org.jgrapht.alg.color.GreedyColoring<V,E>
-
- org.jgrapht.alg.color.RandomGreedyColoring<V,E>
-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
VertexColoringAlgorithm<V>
public class RandomGreedyColoring<V,E> extends GreedyColoring<V,E>
The greedy coloring algorithm with a random vertex ordering.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jgrapht.alg.interfaces.VertexColoringAlgorithm
VertexColoringAlgorithm.Coloring<V>, VertexColoringAlgorithm.ColoringImpl<V>
-
-
Field Summary
-
Fields inherited from class org.jgrapht.alg.color.GreedyColoring
graph, SELF_LOOPS_NOT_ALLOWED
-
-
Constructor Summary
Constructors Constructor Description RandomGreedyColoring(Graph<V,E> graph)
Construct a new coloring algorithm.RandomGreedyColoring(Graph<V,E> graph, Random rng)
Construct a new coloring algorithm
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterable<V>
getVertexOrdering()
Get the ordering of the vertices used by the algorithm.-
Methods inherited from class org.jgrapht.alg.color.GreedyColoring
getColoring
-
-
-
-
Method Detail
-
getVertexOrdering
protected Iterable<V> getVertexOrdering()
Get the ordering of the vertices used by the algorithm.- Overrides:
getVertexOrdering
in classGreedyColoring<V,E>
- Returns:
- the ordering of the vertices used by the algorithm
-
-