Skip to content

Commit

Permalink
Update xgi/generators/random.py
Browse files Browse the repository at this point in the history
Co-authored-by: Maxime Lucas <[email protected]>
  • Loading branch information
nwlandry and maximelucas authored Oct 16, 2024
1 parent 390e997 commit 57c1a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xgi/generators/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def fast_random_hypergraph(n, ps, order=None, seed=None):
H.add_nodes_from(nodes)

for d, p in zip(order, ps):
if p == 1.0:
if p == 1:
H.add_edges_from([e for e in combinations(nodes, d + 1)])
elif p > 0:
r = random.random()
Expand Down

0 comments on commit 57c1a29

Please sign in to comment.