retworkx.graph_greedy_color¶
- graph_greedy_color(graph, /)¶
Color a PyGraph using a largest_first strategy greedy graph coloring.
- Parameters
PyGraph – The input PyGraph object to color
- Returns
A dictionary where keys are node indices and the value is the color
- Return type
dict