Skip to content

Commit 175f761

Browse files
committed
Update test case
1 parent 2a7433d commit 175f761

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/test_OllivierRicci.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,11 @@ def test_ricci_community():
119119
G = nx.karate_club_graph()
120120
orc = OllivierRicci(G, exp_power=1, alpha=0.5)
121121
cut, clustering = orc.ricci_community()
122-
cut_ans = 1.1573696696487015
123-
clustering_ans = {0: 0, 1: 0, 2: 0, 3: 0, 7: 0, 9: 0, 11: 0, 12: 0, 13: 0, 17: 0, 19: 0, 21: 0, 4: 1,
124-
5: 1, 6: 1, 10: 1, 16: 1, 8: 2, 30: 2, 32: 3, 33: 3, 14: 3, 15: 3, 18: 3, 20: 3, 22: 3,
125-
23: 4, 24: 4, 25: 4, 26: 4, 27: 4, 28: 4, 29: 4, 31: 4}
122+
cut_ans = 1.2613588421005884
123+
clustering_ans = {0: 0, 1: 0, 2: 0, 3: 0, 7: 0, 9: 0, 11: 0, 12: 0, 13: 0, 17: 0, 19: 0, 21: 0, 4: 1, 5: 1,
124+
6: 1, 10: 1, 16: 1, 8: 2, 30: 2, 32: 3, 33: 3, 14: 3, 15: 3, 18: 3, 20: 3, 22: 3, 23: 4,
125+
24: 4, 25: 4, 26: 4, 27: 4, 28: 4, 29: 4, 31: 4}
126+
126127

127128
npt.assert_array_almost_equal(cut, cut_ans)
128129
assert clustering == clustering_ans

0 commit comments

Comments
 (0)