Skip to content

Update BC computation to address normalization edge conditions #5105

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

Open
wants to merge 7 commits into
base: branch-25.08
Choose a base branch
from

Conversation

ChuckHastings
Copy link
Collaborator

@ChuckHastings ChuckHastings commented Jun 3, 2025

networkx/networkx#7949 implements an update to normalization that was originally described in #4941. We pushed an update in #4974 that addressed the specific examples that the user identified in the original cugraph issue. However, while @eriknw was exploring updates to networkx to address this, he identified a few more edge conditions that needed to be satisfied. This PR addresses those remaining edge conditions.

Note that the python tests comparing results to networkx are still disabled. These can't be re-enabled until networkx/networkx#7949 is included in a networkx release.

Closes #5006

@ChuckHastings ChuckHastings requested review from a team as code owners June 3, 2025 17:23
@ChuckHastings ChuckHastings self-assigned this Jun 3, 2025
@ChuckHastings ChuckHastings added bug Something isn't working non-breaking Non-breaking change labels Jun 3, 2025
…ake it easier to compare/debug, disabled python test again since nx release is not out
@github-actions github-actions bot added the python label Jun 7, 2025
@ChuckHastings ChuckHastings requested review from rlratzel and a team June 7, 2025 18:33
Copy link
Contributor

@seunghwak seunghwak left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuGraph non-breaking Non-breaking change python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cugraph implementations of betweenness_centrality differ from NetworkX for certain cases when k and endpoints are used
4 participants