Skip to content

Commit

Permalink
added seed to test_richclub_normalized (networkx#7355)
Browse files Browse the repository at this point in the history
added seed to test_richclub_normalized
  • Loading branch information
Schefflera-Arboricola authored Mar 17, 2024
1 parent 984f737 commit dd7f549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx/algorithms/tests/test_richclub.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_richclub_seed():

def test_richclub_normalized():
G = nx.Graph([(0, 1), (0, 2), (1, 2), (1, 3), (1, 4), (4, 5)])
rcNorm = nx.richclub.rich_club_coefficient(G, Q=2)
rcNorm = nx.richclub.rich_club_coefficient(G, Q=2, seed=42)
assert rcNorm == {0: 1.0, 1: 1.0}


Expand Down

0 comments on commit dd7f549

Please sign in to comment.