hatvis.dynamics.diffusion#

hatvis.dynamics.diffusion(H, x0, times, kind='randomwalk')[source]#

Linear diffusion \(\dot{\mathbf{x}}=-\mathbf{L}\mathbf{x}\) with a hypergraph Laplacian.

kind="randomwalk" uses \(\mathbf{I}-\mathbf{D}_v^{-1}\mathbf{B}\mathbf{W}\mathbf{D}_e^{-1}\mathbf{B}^\mathsf{T}\) (averaging dynamics: every vertex moves towards the mean of its hyperedges); "bolla" conserves the total mass. Returns a DataFrame (time x vertices).

Examples using hatvis.dynamics.diffusion#

Diffusion and group consensus

Diffusion and group consensus