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

Update louvain test modularity comparison to leq. #7336

Merged
merged 1 commit into from Mar 10, 2024

Conversation

rossbar
Copy link
Contributor

@rossbar rossbar commented Mar 7, 2024

Closes #6823

I'm no expert in community detection, but from reading through the Louvain description (and thinking about the various floating-point issues associated with the modularity calculation) I think using <= for this comparison is correct, since equivalence is also "not increasing".

Copy link
Member

@dschult dschult left a comment

Choose a reason for hiding this comment

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

I agree! Thanks @rossbar

@dschult dschult merged commit bd2cefc into networkx:main Mar 10, 2024
42 checks passed
@jarrodmillman jarrodmillman added this to the 3.3 milestone Mar 10, 2024
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants