Four-set Hypergraphlets for Characterization of Directed Hypergraphs

Heechan Moon, Hyunju Kim, Sunwoo Kim, Kijung Shin · DOI

Abstract

Directed hypergraphs (DHs) are essential for modeling complex group interactions where directionality matters, such as metabolic pathways and financial transactions. However, tools for analyzing their local structural properties have been lacking. This paper introduces Directed Hypergraphlets (DHGs), a set of 91 fundamental building blocks representing all possible non-isomorphic overlaps between two hyperarcs. We propose the CODA algorithm family for efficient DHG counting and sampling. Our experiments show that DHG-based "Characteristic Profiles" act as structural fingerprints, enabling superior performance in domain clustering and hyperarc prediction, with up to a 33% improvement in AUROC over state-of-the-art baselines.

Introduction

Many real-world systems are best represented as directed hypergraphs, where a hyperarc connects a set of tail nodes to a set of head nodes. While graphlets and motifs are well-established for simple graphs, extending these concepts to directed hypergraphs is challenging due to the combinatorial complexity of set-to-set interactions. This work systematically defines 91 unique directed hypergraphlets based on the intersections of two incident hyperarcs, providing a robust framework for local hypergraph analysis.

Methodology: Defining Directed Hypergraphlets

The core of our approach is the identification of 91 unique DHGs. These represent every possible way two hyperarcs, $e_1 = \langle T_1, H_1 \rangle$ and $e_2 = \langle T_2, H_2 \rangle$, can overlap. The relationship is defined by the emptiness or non-emptiness of eight distinct intersection regions formed by the two tail sets ($T_1, T_2$) and two head sets ($H_1, H_2$).

Definition of Directed Hypergraphlets (DHGs) based on eight intersection regions between two hyperarcs.

To quantify these structures in large-scale networks, we developed the CODA algorithm family. While CODA-E provides exact counts, it is computationally expensive for massive graphs. CODA-A employs a novel non-uniform sampling strategy. By prioritizing instances with larger intersections—which often correspond to rare but highly informative "minority" DHG classes—CODA-A achieves significant speedups while maintaining high accuracy for downstream tasks.

Experimental Results

We evaluated our framework on 11 real-world datasets across five domains, including metabolic networks, email communications, and Bitcoin transactions.

Structural Fingerprints and Domain Clustering

A key finding is that hypergraphs within the same domain exhibit highly similar DHG distributions, forming a unique "Characteristic Profile" (CP). These profiles allow for nearly perfect clustering of hypergraphs by their functional domain.

Log-count distributions of the 91 DHGs across different domains, illustrating domain-specific structural fingerprints.

Performance and Scalability

DHG-based features significantly enhance machine learning tasks. In hyperarc prediction, our method improved AUROC by up to 33% compared to node2vec and undirected hypergraph motifs (h-motifs). Furthermore, DHG-based characterization improved hypergraph clustering by 12% in terms of Normalized Mutual Information (NMI).

In terms of efficiency, CODA-A is up to 32× faster than existing sampling methods. It successfully processed networks with over 10 million hyperarcs, whereas exact counting methods and other baselines failed due to memory constraints on networks 140× smaller.

Conclusion

Directed Hypergraphlets provide a powerful new lens for understanding the local "DNA" of group interactions. By preserving directionality and set-based semantics, DHGs capture critical structural information that traditional graph-based methods miss. Future work will explore higher-order interactions involving three or more hyperarcs and the temporal evolution of these local patterns.

Summary updated

BibTeX
@article{moon2026four,
  author = {Heechan Moon and Hyunju Kim and Sunwoo Kim and Kijung Shin},
  title = {{Four-set Hypergraphlets for Characterization of Directed Hypergraphs}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2026},
  doi = {10.1109/tkde.2026.3677137},
}
Figure