hatvis.representations.laplacian#

hatvis.representations.laplacian(H, kind='normalized', dense=True)[source]#

Hypergraph Laplacian matrices (vertex space, \(n\times n\)).

kind

  • "normalized" (Zhou, Huang and Schölkopf 2006): \(\mathbf{L}=\mathbf{I}-\mathbf{D}_v^{-1/2}\mathbf{B}\mathbf{W}\mathbf{D}_e^{-1}\mathbf{B}^\mathsf{T}\mathbf{D}_v^{-1/2}\);

  • "randomwalk": \(\mathbf{I}-\mathbf{D}_v^{-1}\mathbf{B}\mathbf{W}\mathbf{D}_e^{-1}\mathbf{B}^\mathsf{T}\);

  • "bolla" (Bolla 1993): \(\mathbf{D}_v-\mathbf{B}\mathbf{W}\mathbf{D}_e^{-1}\mathbf{B}^\mathsf{T}\);

  • "clique" (Rodríguez 2002): \(\mathbf{D}_A-\mathbf{A}\) of the clique expansion with "count" weights.

Here \(d_i=\sum_e w_e b_{ie}\) and \(\delta_e=\sum_i b_{ie}\). Isolated vertices get a zero row and column (they form their own component).