Skip to content
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

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

dcoudert
Copy link
Contributor

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

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

@@ -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
Copy link
Contributor

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"?

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``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"the the" -> "the"

Copy link
Contributor

@mkoeppe mkoeppe left a 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!

@github-actions
Copy link

Documentation preview for this PR (built with commit e6be1da) is ready! 🎉

@vbraun vbraun merged commit cf43e35 into sagemath:develop Jun 21, 2023
@mkoeppe mkoeppe added this to the sage-10.1 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants