Skip to content

Conversation

eumiro
Copy link
Contributor

@eumiro eumiro commented Mar 22, 2025

In #1399 I documented the connection methods and realized I could not find the is_strongly_connected and number_strong_connected_components methods anywhere in the code.

Since is_weakly_connected method looks like just checking the result of weakly_connected_components, I tried my luck and cloned it for is_strongly_connected for code, docs, and tests. The same for number_strongly_connected_components.

@coveralls
Copy link

coveralls commented Mar 22, 2025

Pull Request Test Coverage Report for Build 14021304022

Details

  • 13 of 13 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 95.324%

Totals Coverage Status
Change from base Build 14005164816: 0.003%
Covered Lines: 18470
Relevant Lines: 19376

💛 - Coveralls

@eumiro eumiro changed the title Add is_strongly_connected method Add is_strongly_connected and number_strongly_connected_components methods Mar 22, 2025
@eumiro eumiro force-pushed the strong-connected branch from 879d72f to c04fe58 Compare March 22, 2025 06:12
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, just two minor items before merging:

@eumiro eumiro force-pushed the strong-connected branch from da1be5f to 9273d18 Compare March 23, 2025 17:16
@IvanIsCoding IvanIsCoding enabled auto-merge March 23, 2025 17:33
@IvanIsCoding IvanIsCoding added this pull request to the merge queue Mar 23, 2025
Merged via the queue into Qiskit:main with commit b4bd378 Mar 23, 2025
31 checks passed
@eumiro eumiro deleted the strong-connected branch March 23, 2025 19:19
SILIZ4 pushed a commit to SILIZ4/rustworkx that referenced this pull request Jul 4, 2025
…thods (Qiskit#1400)

* Add is_strongly_connected method

* Add number_strongly_connected_components method

* Fix type annotation of output of two PyDiGraph methods

* Add release note about is_strongly_connected and number_strongly_connected_components
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.

3 participants