Skip to content

Commit

Permalink
Update louvain test modularity comparison to leq. (networkx#7336)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar authored and cvanelteren committed Apr 22, 2024
1 parent 0a3c062 commit 349fc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/algorithms/community/tests/test_louvain.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_threshold():
mod1 = nx.community.modularity(G, partition1)
mod2 = nx.community.modularity(G, partition2)

assert mod1 < mod2
assert mod1 <= mod2


def test_empty_graph():
Expand Down

0 comments on commit 349fc95

Please sign in to comment.