Warning
The documentation for retworkx has migrated to:
https://qiskit.org/documentation/retworkx
These docs will no longer be updated.
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