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

Refactor Leiden #3327

Merged
merged 123 commits into from
May 17, 2023
Merged

Conversation

jnke2016
Copy link
Contributor

A CAPI implementation of Leiden is available and this PR:

Implement PLC Leiden by leveraging the CAPI.
Refactor the python SG implementation of Leiden by leveraging the PLC implementation.
Add a python MG implementation of Leiden with tests.

closes #2487
closes #2489
closes #2490
closes #2491

Md Naim and others added 30 commits September 5, 2022 09:27
…iden, need to add more to make it complete
…ce_e_by_dst_key to support reduce op on tuple data types
@BradReesWork BradReesWork changed the base branch from branch-23.04 to branch-23.06 March 30, 2023 12:44
@BradReesWork BradReesWork added this to the 23.06 milestone Mar 30, 2023
@jnke2016 jnke2016 changed the title [skip-ci] Refactor Leiden Refactor Leiden Apr 26, 2023
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.

This PR does not update C++ files, approving as a C++ reviewer.

@BradReesWork BradReesWork requested a review from rlratzel May 8, 2023 14:11
Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

Looks good overall, thanks. I just had a few comments.


# FIXME: the networkx.Graph type used in the type annotation for
# induced_subgraph() is specified using a string literal to avoid depending on
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment needs to be updated since it still mentions induce_subgraph(). Maybe just rewrite it so it doesn't mention an API at all if it's going to be copy-pasted elsewhere.

Comment on lines 27 to 29
# Temporarily suppress warnings till networkX fixes deprecation warnings
# (Using or importing the ABCs from 'collections' instead of from
# 'collections.abc' is deprecated, and in 3.8 it will stop working) for
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should start removing this Nx warning supression since we should know about deprecations until Nx is completely removed from our tests.

# Test data
# =============================================================================

_test_data = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming black did this, but can the test data be reformatted to have >1 number per line? This is taking up hundreds of lines with no improvement to readability. You should be able to do this:

Black reformats entire files in place. It doesn’t reformat lines that end with # fmt: skip or blocks that start with # fmt: off and end with # fmt: on.

@BradReesWork
Copy link
Member

/merge

@rapids-bot rapids-bot bot merged commit 661831b into rapidsai:branch-23.06 May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request non-breaking Non-breaking change
Projects
None yet
6 participants