Class RandomGreedyColoring

All Implemented Interfaces:
ColoringAlgorithm

public class RandomGreedyColoring extends GreedyColoring

The order in which vertices are colored is chosen randomly each time the method findColoring is invoked.

Author:
Cristian Frăsinaru
  • Constructor Details

    • RandomGreedyColoring

      public RandomGreedyColoring(Graph graph)
      The vertices will be colored in a randomly chosen order.
      Parameters:
      graph - the input graph;
  • Method Details