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

nx-cugraph: handle louvain with isolated nodes #3897

Merged
merged 10 commits into from
Oct 3, 2023

Conversation

eriknw
Copy link
Contributor

@eriknw eriknw commented Sep 28, 2023

This handles isolated nodes in louvain_communities similar to what is done in #3886. This is expected to be a temporary fix until pylibcugraph can handle isolated nodes.

As a bonus, I added isolates algorithm 🎉

CC @naimnv @rlratzel

@eriknw eriknw requested a review from a team as a code owner September 28, 2023 21:23
"louvain_communities",
# END: functions
},
"extra_docstrings": {
# BEGIN: extra_docstrings
"betweenness_centrality": "`weight` parameter is not yet supported.",
"edge_betweenness_centrality": "`weight` parameter is not yet supported.",
"louvain_communities": "`threshold` and `seed` parameters are currently ignored.",
"louvain_communities": "`seed` parameter is currently ignored.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to add something in the docs about max_level being capped at 500?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added (max: 500) to the max_level parameter doc.

@rlratzel rlratzel added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Sep 29, 2023
@rlratzel rlratzel added this to the 23.10 milestone Oct 3, 2023
@rlratzel
Copy link
Contributor

rlratzel commented Oct 3, 2023

/merge

@rapids-bot rapids-bot bot merged commit 5ce3ee1 into rapidsai:branch-23.10 Oct 3, 2023
73 checks passed
rapids-bot bot pushed a commit that referenced this pull request Oct 31, 2023
Fixes #3963 and add `connected_components`, `is_connected`, `node_connected_component`, and `number_connected_components`.

Also updated `_groupby` to handle groups that are not consecutive integers starting with 0.

Also, `plc.weakly_connected_components` does not handle isolated nodes well, and I needed to handle this at the Python layer as was done in #3897

Authors:
  - Erik Welch (https://github.com/eriknw)

Approvers:
  - Rick Ratzel (https://github.com/rlratzel)

URL: #3965
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants