Skip to content

Conversation

SILIZ4
Copy link
Contributor

@SILIZ4 SILIZ4 commented Jul 14, 2025

This ports the undirected graph and directed graph transitivity functions to rustworkx-core (#1121).

While this is mostly a copy and paste, I changed for loops to iterators and HashSet::remove for a filter when constructing the set.

I think the functions digraph_node_triangles and graph_node_triangles that count the triangles of a vertex could be part of the public API. Implementing the local clustering is direct using these functions while it doesn't seem part of rustworkx right now.

@coveralls
Copy link

coveralls commented Jul 14, 2025

Pull Request Test Coverage Report for Build 16283434372

Details

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

Totals Coverage Status
Change from base Build 16094034290: 0.002%
Covered Lines: 17765
Relevant Lines: 18775

💛 - Coveralls

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, this seems straightforward.

I just left some minor stylistic comments.

@IvanIsCoding IvanIsCoding enabled auto-merge July 15, 2025 03:38
@IvanIsCoding IvanIsCoding added this pull request to the merge queue Jul 15, 2025
Merged via the queue into Qiskit:main with commit 27d6022 Jul 15, 2025
36 checks passed
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