hypersynchronization.rhs_23_sym#

hypersynchronization.rhs_23_sym(t, theta, omega, k1, k2, links, triangles)[source]#

Right-hand side of the ODE for any hypergraph with links and triangles.

Coupling functions: sin(theta_j - theta_i) and sin(theta_j + theta_k - 2*theta_i). Normalised by mean pairwise degree and mean triadic degree.

Parameters:
tfloat

Time (unused, present for compatibility with integrators).

thetanumpy.ndarray

Phases of the oscillators at time t.

omegafloat or numpy.ndarray

Natural frequencies of the oscillators.

k1float

Pairwise coupling strength.

k2float

Triadic coupling strength.

linkslist of tuples

Pairwise edges, each as a tuple/list/set of two node indices.

triangleslist of tuples

Triadic edges, each as a tuple/list/set of three node indices.

Returns:
dthetanumpy.ndarray of shape (N,)

Rate of change of phases.