Closed doabell closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.16%. Comparing base (
b717e4b
) to head (a286f66
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Resolved these comments, could you take another look? Thanks.
Looks great! Thanks so much! Merging now.
This PR implements
random_edge_shuffle
for hypergraphs, as described in Configuration models of random hypergraphs, Philip S C., 2020.Given two edges, the existing
double_edge_swap
swaps two nodes, whereasrandom_edge_shuffle
puts all nodes in a bucket and shuffles them. This preserves the edge sizes and node degrees. If the same node appears in both hyperedges, then this is still true after reshuffling.The user can also use this to shuffle two randomly selected hyperedges, if no edge IDs are specified.