hatvis.similarity.hypergraph_distance#
- hatvis.similarity.hypergraph_distance(H1, H2, kind='jaccard')[source]#
Distance between two hypergraphs.
kind"jaccard": \(1-|E_1\cap E_2|/|E_1\cup E_2|\) on the sets of hyperedges (as vertex sets; multiplicities ignored);"hamming": normalized Hamming distance of the clique-expansion adjacency patterns on the union of the vertex sets;"spectral": Euclidean distance between the sorted spectra of the normalized Laplacians, padded to equal length (cf. Surana, Chen and Rajapakse 2023);"degree": \(\ell_1\) distance of the normalized degree distributions.