pub fn simulate_kuramoto(
h: &Hypergraph,
k2: f64,
k3: f64,
omega: Option<Vec<f64>>,
theta: Option<Vec<f64>>,
timesteps: usize,
dt: f64,
seed: Option<u64>,
) -> (Vec<Vec<f64>>, Vec<f64>)Available on crate feature
dynamics only.Expand description
Simulate the Kuramoto model on a hypergraph (pairwise + triangle coupling).
XGI parity: xgi.simulate_kuramoto (dynamics/synchronization.py:18-118). Integrates
the phase ODE via the explicit Euler method over timesteps steps of size dt.
Returns (theta_time, times) where theta_time[t][n] is node n’s phase at step t.
Node indices follow h.node_ids() insertion order. links are size-2 edges and
triangles are size-3 edges (other sizes do not contribute — matching XGI’s
filterby("size", 2 | 3)). Defaulted omega ~ N(0,1) (Box–Muller) and
theta ~ U[0,2π) are drawn from a seeded Pcg64Mcg; supply both for exact
determinism independent of the RNG.