You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removing calls to rainbow from sage.graphs.graph_coloring is not easy. It would require to get surrounding methods in (at least) graph.py to assign colors.
I will check the feasibility of making methods in sage.graphs.graph_coloring return color classes only (or a number for counting) and to add a method in charge of turning the color classes to the desired format: color classes (do nothing), mapping vertex to color, mapping color to vertices. This way, calls to rainbow would be contained in a single method.
We add a method to format colorings to reduce the number of places in
which method rainbow from `sage.plot.colors` is called in
`sage.graphs.graph_coloring`.
This is a first step toward the resolution of #35777
### 📝 Checklist
- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation accordingly.
URL: #35780
Reported by: David Coudert
Reviewer(s): Matthias Köppe
Currently, at least
sage.graphs.graph_coloring
uses it outside of a plotting context, which makes packaging (#35095) awkward@dcoudert
The text was updated successfully, but these errors were encountered: