hatvis.motifs#

Higher-order motifs.

  • h-motifs (Lee, Ko and Shin 2020) describe how three connected hyperedges overlap: each of the seven regions of their Venn diagram is empty or not. Up to the order of the hyperedges, 26 patterns are possible for distinct hyperedges in which at least two pairs intersect.

  • node motifs of order 3 (after Lotito et al. 2022) describe which hyperedges of size two and three live inside a triple of vertices.

Counts become informative when compared with a null model (motif_zscores()).

h-motifs, node motifs of order three, motif z-scores.

Functions#

h_motif_catalog()

The 26 h-motifs: canonical region patterns and a short description.

h_motif_pattern(a, b, c)

h-motif identifier of three hyperedges (sets of vertices).

h_motifs(H)

Number of instances of every h-motif among the connected triples of distinct hyperedges.

node_motifs(H)

Counts of the six connected node motifs of order three.

motif_zscores(H[, counter, n_samples, null, ...])

Compare motif counts with a null model.