-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce dependency to rainbow in sage.graphs.graph_coloring #35780
Conversation
src/sage/graphs/graph_coloring.pyx
Outdated
@@ -100,6 +161,10 @@ def all_graph_colorings(G, n, count_only=False, hex_colors=False, vertex_color_d | |||
``True``, it returns a dictionary ``{vertex: color}``, otherwise it | |||
returns a dictionary ``{color: [list of vertices]}`` | |||
|
|||
* ``color_classes`` -- boolean (default: ``False``); when set to ``True``, | |||
the method returns only the color classes and ignores parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe "a list of the color classes"?
src/sage/graphs/graph_coloring.pyx
Outdated
the method returns only the color classes and ignores parameters | ||
``hex_colors`` and ``vertex_color_dict`` | ||
the method returns only a list of the the color classes and ignores | ||
parameters ``hex_colors`` and ``vertex_color_dict`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"the the" -> "the"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks a lot for working on this!
Documentation preview for this PR (built with commit e6be1da) is ready! 🎉 |
We add a method to format colorings to reduce the number of places in which method rainbow from
sage.plot.colors
is called insage.graphs.graph_coloring
.This is a first step toward the resolution of #35777
📝 Checklist