Skip to content

Commit

Permalink
Update xgi/generators/uniform.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 10, 2024
1 parent 505f093 commit 5a4bf69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xgi/generators/uniform.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ def uniform_erdos_renyi_hypergraph(n, m, p, p_type="prob", multiedges=False, see
-----
Because XGI only stores edges as sets, if self-loops are allowed,
for example, the edge (0, 0, 0) will be mapped to {0}. However,
because this is explicitly a *uniform* method, we discard these edges
so that this is the case. For sparse networks, this is a rare
because this is explicitly a *uniform* method, we discard these edges.
For sparse networks, this is a rare
occurrence and this method offers an order of magnitude speedup,
so while it is not the default behavior, this option is exposed to
the users by setting `multiedges=True`.
Expand Down

0 comments on commit 5a4bf69

Please sign in to comment.