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

Improve documentation for graph_greedy_color #857

Merged
merged 6 commits into from
May 17, 2023

Conversation

mtreinish
Copy link
Member

This commit improves the documentation for the graph_greedy_color function. Previously, the details on the function and the algorithm it implemented where a bit sparse. This commit expands it by explaining the source for the algorithm, making it clear it's not always going to return an optimal solution, and also adding an example.

This commit improves the documentation for the graph_greedy_color
function. Previously, the details on the function and the algorithm it
implemented where a bit sparse. This commit expands it by explaining the
source for the algorithm, making it clear it's not always going to
return an optimal solution, and also adding an example.
src/coloring.rs Outdated Show resolved Hide resolved
src/coloring.rs Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Apr 14, 2023

Pull Request Test Coverage Report for Build 4992403896

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.01%) to 96.921%

Files with Coverage Reduction New Missed Lines %
src/shortest_path/all_pairs_bellman_ford.rs 1 98.88%
src/shortest_path/all_pairs_dijkstra.rs 1 98.54%
Totals Coverage Status
Change from base Build 4982236500: -0.01%
Covered Lines: 14545
Relevant Lines: 15007

💛 - Coveralls

@mtreinish mtreinish added this to the 0.13.0 milestone May 10, 2023
@mtreinish mtreinish requested a review from Cryoris May 10, 2023 20:23
src/coloring.rs Outdated Show resolved Hide resolved
@Cryoris
Copy link
Contributor

Cryoris commented May 16, 2023

There's a missing period in the first sentence, I think, otherwise LGTM!

Co-authored-by: Julien Gacon <[email protected]>
@IvanIsCoding IvanIsCoding merged commit 1c6c796 into Qiskit:main May 17, 2023
IvanIsCoding pushed a commit to IvanIsCoding/rustworkx that referenced this pull request May 26, 2023
* Improve documentation for graph_greedy_color

This commit improves the documentation for the graph_greedy_color
function. Previously, the details on the function and the algorithm it
implemented where a bit sparse. This commit expands it by explaining the
source for the algorithm, making it clear it's not always going to
return an optimal solution, and also adding an example.

* Update src/coloring.rs

* Change to use note directive

* Update src/coloring.rs

Co-authored-by: Julien Gacon <[email protected]>

---------

Co-authored-by: Julien Gacon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants