hatvis.problems.greedy_coloring#

hatvis.problems.greedy_coloring(H, strong=False, order=None)[source]#

Greedy vertex coloring.

strong=False: weak (proper) coloring — no hyperedge of size at least two is monochromatic. strong=True: all vertices of every hyperedge get different colors (a proper coloring of the clique expansion). Vertices are colored in decreasing degree order unless order is given.