-
Notifications
You must be signed in to change notification settings - Fork 310
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
[BUG]: cugraph.louvain
does not handle empty graphs well
#3804
Labels
bug
Something isn't working
Comments
eriknw
added
? - Needs Triage
Need team to review and classify
bug
Something isn't working
labels
Aug 16, 2023
@eriknw I cannot reproduce |
rapids-bot bot
pushed a commit
that referenced
this issue
Aug 31, 2023
See: #3773 Possible follow-up tasks: - Update to use threshold parameter exposed from C++ (#3792) - Add `max_level` argument to networkx implementation - ~Or, add `max_level` as extra`cugraph_nx`-specific argument~ (**done**) - Update PLC to handle empty graphs gracefully (#3804) - Update PLC to handle directed graphs - Add `louvain_partitions` (needs added to PLC) - https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.community.louvain.louvain_partitions.html This is passing many networkx tests. I don't have this as draft, b/c it's usable (and I would argue) mergable as is. Authors: - Erik Welch (https://github.com/eriknw) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: #3803
@BradReesWork I'm able to reproduce this. I think the important arg to remember is |
rlratzel
pushed a commit
to rlratzel/cugraph
that referenced
this issue
Sep 8, 2023
See: rapidsai#3773 Possible follow-up tasks: - Update to use threshold parameter exposed from C++ (rapidsai#3792) - Add `max_level` argument to networkx implementation - ~Or, add `max_level` as extra`cugraph_nx`-specific argument~ (**done**) - Update PLC to handle empty graphs gracefully (rapidsai#3804) - Update PLC to handle directed graphs - Add `louvain_partitions` (needs added to PLC) - https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.community.louvain.louvain_partitions.html This is passing many networkx tests. I don't have this as draft, b/c it's usable (and I would argue) mergable as is. Authors: - Erik Welch (https://github.com/eriknw) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: rapidsai#3803
This was referenced Sep 26, 2023
rapids-bot bot
pushed a commit
that referenced
this issue
Sep 29, 2023
- Adds logic to handle isolated vertices - Clamp downs max level to a sane number closes #3804 Authors: - Naim (https://github.com/naimnv) Approvers: - Joseph Nke (https://github.com/jnke2016) - Brad Rees (https://github.com/BradReesWork) - Chuck Hastings (https://github.com/ChuckHastings) - Rick Ratzel (https://github.com/rlratzel) URL: #3886
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
22.10 (dev)
Which installation method(s) does this occur on?
Source
Describe the bug.
cugraph.louvain
is very, very slow for empty input graphs. I would expect this condition to be detected and handled quickly.I handled this in
cugraph-nx
here: https://github.com/rapidsai/cugraph/pull/3803/files#diff-506c93446829d8794348fa8b6773e7326ede87b095ac120c9c47fed46e56c699R31-R33Minimum reproducible example
Relevant log output
No response
Environment details
No response
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: