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

Find best community to move into: don't check previous community #1

Open
Splines opened this issue Aug 14, 2023 · 0 comments
Open

Find best community to move into: don't check previous community #1

Splines opened this issue Aug 14, 2023 · 0 comments
Assignees

Comments

@Splines
Copy link
Owner

Splines commented Aug 14, 2023

Checking the previous community and calculating the gain for it is completely unnecessary. If the node is inserted back into its previous community, we know that the total net gain is 0, so no need to calculate that again.

https://github.com/Splines/fast-louvain/blob/main/modules/application/src/louvain_level.rs#L129-L142

@Splines Splines self-assigned this Aug 14, 2023
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

No branches or pull requests

1 participant