hatvis.metrics.simpliciality#
- hatvis.metrics.simpliciality(H, min_size=2, max_size=None)[source]#
Simpliciality measures of Landry, Young and Eikmeier (2024).
Only hyperedges with \(|e|\ge\)
min_sizeare considered (singletons are ignored by default) and repeated hyperedges are merged.simplicial fraction – fraction of hyperedges of size \(\ge\)
min_size + 1whose every sub-face of size \(\ge\)min_sizeis itself a hyperedge;edit simpliciality – \(|E|/|\bar E|\), where \(\bar E\) is the smallest simplicial complex (restricted to sizes \(\ge\)
min_size) containing \(E\): the fraction of the closure that is present;face edit simpliciality – the mean, over the maximal hyperedges, of the fraction of their sub-faces that are present.
All three are 1 for a simplicial complex and close to 0 for a hypergraph without inclusions.