Class GraphColoring.GreedyGraphColoring<N,​E>

  • Enclosing class:
    GraphColoring<N,​E>

    public static class GraphColoring.GreedyGraphColoring<N,​E>
    extends GraphColoring<N,​E>
    Greedily assign nodes with high degree unique colors.
    • Constructor Detail

      • GreedyGraphColoring

        public GreedyGraphColoring​(AdjacencyGraph<N,​E> graph)
      • GreedyGraphColoring

        public GreedyGraphColoring​(AdjacencyGraph<N,​E> graph,
                                   java.util.Comparator<N> tieBreaker)
        Parameters:
        tieBreaker - In case of a tie between two nodes of the same degree, this comparator will determine which node should be colored first.