Qiskit / rustworkx

A high performance Python graph library implemented in Rust.
https://www.rustworkx.org
Apache License 2.0
1.03k stars 145 forks source link

Add different greedy strategies for node coloring #1137

Open alexanderivrii opened 5 months ago

alexanderivrii commented 5 months ago

What is the expected enhancement?

This tracks the rustworkx part of https://github.com/Qiskit/qiskit/issues/11779#issue-2130965930. The request is to add other standard greedy node coloring strategies, such as the "saturation first" strategy: always picking the node that has the largest number of different colors assigned to its neighbors, and, in case of a tie, the node that has the largest number of uncolored neighbors.

This will be immediately followed up by a PR.