English

Enumerating Graphlets with Amortized Time Complexity Independent of Graph Size

Data Structures and Algorithms 2025-05-15 v2

Abstract

Graphlets of order kk in a graph GG are connected subgraphs induced by kk nodes (called kk-graphlets) or by kk edges (called edge kk-graphlets). They are among the interesting subgraphs in network analysis to get insights on both the local and global structure of a network. While several algorithms exist for discovering and enumerating graphlets, the cost per solution of such algorithms typically depends on the size of the graph GG, or its maximum degree. In real networks, even the latter can be in the order of millions, whereas kk is typically required to be a small value. In this paper we provide the first algorithm to list all graphlets of order kk in a graph G=(V,E)G=(V,E) with an amortized cost per solution depending \emph{solely} on the order kk, contrarily to previous approaches where the cost depends \emph{also} on the size of GG or its maximum degree. Specifically, we show that it is possible to list kk-graphlets in O(k2)O(k^2) time per solution, and to list edge kk-graphlets in O(k)O(k) time per solution. Furthermore we show that, if the input graph has bounded degree, then the cost per solution for listing kk-graphlets is reduced to O(k)O(k). Whenever k=O(1)k = O(1), as it is often the case in practical settings, these algorithms are the first to achieve constant time per solution.

Keywords

Cite

@article{arxiv.2405.13613,
  title  = {Enumerating Graphlets with Amortized Time Complexity Independent of Graph Size},
  author = {Alessio Conte and Roberto Grossi and Yasuaki Kobayashi and Kazuhiro Kurita and Davide Rucci and Takeaki Uno and Kunihiro Wasa},
  journal= {arXiv preprint arXiv:2405.13613},
  year   = {2025}
}

Comments

This is the accepted version of the paper at Algorithmica (2025), after peer review

R2 v1 2026-06-28T16:35:40.784Z