hatvis.representations.adjacency_tensor#
- hatvis.representations.adjacency_tensor(H)[source]#
Adjacency tensor of a \(k\)-uniform hypergraph (Cooper and Dutle 2012).
\(\mathcal{A}_{i_1\dots i_k}=w_e/(k-1)!\) if \(\{i_1,\dots,i_k\}=e\in E\), zero otherwise. The tensor has \(n^k\) entries, so this function is meant for small hypergraphs;
tensor_apply()evaluates \(\mathcal{A}\mathbf{x}^{k-1}\) without forming it.