hatvis.representations#
Alternative representations of a hypergraph.
A hypergraph can be expanded into ordinary graphs (clique, star and line graphs), described by matrices (incidence, adjacency, Laplacians) or by tensors (uniform hypergraphs). Every representation answers a different question and loses a different part of the information; Chapter 2 of the book compares them.
Clique and star expansions, s-line graphs, Laplacians, adjacency tensors, uniform layers, simplicial closure.
Functions#
|
Weighted adjacency matrix of the clique expansion (2-section). |
|
Clique expansion as a weighted |
|
Star expansion: the bipartite vertex–hyperedge (Levi / König) graph. |
|
The \(s\)-line graph \(L_s(H)\) of the hyperedges (Aksoy et al. 2020). |
|
\(s\)-line graph of the hyperedges ( |
Hyperedge intersection sizes \(|e\cap f| = (\mathbf{B}^\mathsf{T}\mathbf{B})_{ef}\) (diagonal: sizes). |
|
Number of shared hyperedges \((\mathbf{B}\mathbf{B}^\mathsf{T})_{ij}\) (diagonal: degrees). |
|
|
Hypergraph Laplacian matrices (vertex space, \(n\times n\)). |
Adjacency tensor of a \(k\)-uniform hypergraph (Cooper and Dutle 2012). |
|
Diagonal degree tensor \(\mathcal{D}\) ( |
|
Laplacian tensor \(\mathcal{L}=\mathcal{D}-\mathcal{A}\) of a uniform hypergraph (as in HAT). |
|
|
Tensor–vector product \((\mathcal{A}\mathbf{x}^{k-1})_i=\sum_{e\ni i} w_e\prod_{j\in e\setminus i}x_j\). |
Split a hypergraph into its uniform layers |
|
|
Downward closure: add every non-empty subset of every hyperedge (an abstract simplicial complex). |
|
Hypergraph of the maximal cliques of a graph (a lossy inverse of the clique expansion). |
|
A graph as a 2-uniform hypergraph (one hyperedge per graph edge). |
Incidence list ( |