pub fn hypergraph_random_walk<R: Rng>(
hg: &IndexedHypergraph,
start: usize,
n_steps: usize,
rng: &mut R,
) -> Result<Vec<usize>>Expand description
Perform a random walk on an IndexedHypergraph.
At each step the walker at node v:
- Selects a hyperedge
econtainingvwith probability ∝w_e / deg_w(v). - Moves uniformly to one of the other nodes in
e(stays if singleton).
Returns the visited node sequence of length n_steps + 1.