Class LargestDegreeFirstColoring

All Implemented Interfaces:
ColoringAlgorithm

public class LargestDegreeFirstColoring extends GreedyColoring

The vertices are colored in decreasing order by their degree. The vertex ordering is computed statically before the algorithm starts.

The Largest First Vertex Ordering (LFVO) produces an ordering of the vertices such that the vertices with the largest degree are processed first.

Author:
Cristian Frăsinaru
See Also:
  • Constructor Details

    • LargestDegreeFirstColoring

      public LargestDegreeFirstColoring(Graph graph)
      The vertices will be colored in decreasing order by their degree.
      Parameters:
      graph - the input graph;