Skip to content

Commit

Permalink
Update louvain test modularity comparison to leq. (#7336)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Mar 10, 2024
1 parent 8f1e3a7 commit bd2cefc
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 bd2cefc

Please sign in to comment.