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

Add isolates() function to rustworkx #998

Merged
merged 5 commits into from
Oct 12, 2023
Merged

Conversation

mtreinish
Copy link
Member

This commit adds a new function, isolates(), which is used to find all the isolates in a graph.

This commit adds a new function, isolates(), which is used to find all
the isolates in a graph.
@coveralls
Copy link

coveralls commented Oct 9, 2023

Pull Request Test Coverage Report for Build 6490114124

  • 35 of 35 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.008%) to 96.5%

Totals Coverage Status
Change from base Build 6469363493: 0.008%
Covered Lines: 15466
Relevant Lines: 16027

💛 - Coveralls

mtreinish added a commit to mtreinish/retworkx that referenced this pull request Oct 11, 2023
This commit adds new functions to rustworkx, two_color() and
is_bipartite(), which are used to compute a two coloring for a graph and
then determine if a givn graph is bipartite. The two_color() function is
added to rustworkx-core as the python is_bipartite() function just wraps
it and converts the output to a bool if a two coloring is possible or
not.

This commit is based on top of Qiskit#998 and will need to be rebased after
that merges.
Copy link
Collaborator

@IvanIsCoding IvanIsCoding left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@enavarro51 enavarro51 left a comment

Choose a reason for hiding this comment

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

This LGTM. Thanks for the addition.

@enavarro51 enavarro51 added the automerge Queue a approved PR for merging label Oct 12, 2023
@mergify mergify bot merged commit 274b004 into Qiskit:main Oct 12, 2023
30 checks passed
@mtreinish mtreinish deleted the add-isolates branch October 12, 2023 02:33
mtreinish added a commit to mtreinish/retworkx that referenced this pull request Oct 12, 2023
This commit adds new functions to rustworkx, two_color() and
is_bipartite(), which are used to compute a two coloring for a graph and
then determine if a givn graph is bipartite. The two_color() function is
added to rustworkx-core as the python is_bipartite() function just wraps
it and converts the output to a bool if a two coloring is possible or
not.

This commit is based on top of Qiskit#998 and will need to be rebased after
that merges.
mergify bot pushed a commit that referenced this pull request Oct 16, 2023
* Add two_color and is_bipartite

This commit adds new functions to rustworkx, two_color() and
is_bipartite(), which are used to compute a two coloring for a graph and
then determine if a givn graph is bipartite. The two_color() function is
added to rustworkx-core as the python is_bipartite() function just wraps
it and converts the output to a bool if a two coloring is possible or
not.

This commit is based on top of #998 and will need to be rebased after
that merges.

* Remove special isolates handling

* Expand test coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Queue a approved PR for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants