hatvis.spectral#
Random walks and spectral methods.
Random walks on hypergraphs differ in how the walker moves through a hyperedge. The Zhou walk (Zhou, Huang and Schölkopf 2006) picks a hyperedge and then a vertex uniformly; the edge-dependent walk uses vertex weights that depend on the hyperedge (Chitra and Raphael 2019); the higher-order walk of Carletti et al. (2020) favours large hyperedges. Spectral embeddings and spectral clustering use the eigenvectors of the hypergraph Laplacian.
Transition matrices, stationary distributions, spectral embedding and clustering.
Functions#
|
Row-stochastic transition matrix of a random walk on the vertices. |
|
Stationary distribution \(\boldsymbol{\pi}=\boldsymbol{\pi}\mathbf{P}\) of a random walk. |
|
Spectral embedding of the vertices (Zhou et al. 2006). |
|
Spectral clustering of the vertices with the hypergraph Laplacian (Zhou et al. 2006). |
|
Eigenvector of the second smallest Laplacian eigenvalue (sign fixed: first entry non-negative). |
|
Second smallest Laplacian eigenvalue (zero iff the hypergraph is disconnected). |