{"title":"Enumerating Graphlets with Amortized Time Complexity Independent of Graph Size","authors":"Alessio Conte, Roberto Grossi, Yasuaki Kobayashi, Kazuhiro Kurita, Davide Rucci, Takeaki Uno, Kunihiro Wasa","doi":"10.1007/s00453-025-01312-0","DOIUrl":null,"url":null,"abstract":"<div><p>Graphlets of order <i>k</i> in a graph <i>G</i> are connected subgraphs induced by <i>k</i> nodes (called <i>k</i>-graphlets) or by <i>k</i> edges (called edge <i>k</i>-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 amortized time complexity of such algorithms typically depends on the size of the graph <i>G</i>, or its maximum degree. In real networks, even the latter can be in the order of millions, whereas <i>k</i> is typically required to be a small value. In this paper we provide the first algorithm to list all graphlets of order <i>k</i> in a graph <span>\\(G=(V,E)\\)</span> with an amortized time complexity depending <i>solely</i> on the order <i>k</i>, contrarily to previous approaches where the cost depends <i>also</i> on the size of <i>G</i> or its maximum degree. Specifically, we show that it is possible to list <i>k</i>-graphlets in <span>\\(O(k^2)\\)</span> time per solution, and to list edge <i>k</i>-graphlets in <i>O</i>(<i>k</i>) time per solution. Furthermore we show that, if the input graph has bounded degree, then the amortized time for listing <i>k</i>-graphlets is reduced to <i>O</i>(<i>k</i>). Whenever <span>\\(k = O(1)\\)</span>, as it is often the case in practical settings, these algorithms are the first to achieve constant time per solution.</p></div>","PeriodicalId":50824,"journal":{"name":"Algorithmica","volume":"87 9","pages":"1247 - 1273"},"PeriodicalIF":0.7000,"publicationDate":"2025-05-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://link.springer.com/content/pdf/10.1007/s00453-025-01312-0.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithmica","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s00453-025-01312-0","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
Graphlets of order k in a graph G are connected subgraphs induced by k nodes (called k-graphlets) or by k edges (called edge k-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 amortized time complexity of such algorithms typically depends on the size of the graph G, or its maximum degree. In real networks, even the latter can be in the order of millions, whereas k is typically required to be a small value. In this paper we provide the first algorithm to list all graphlets of order k in a graph \(G=(V,E)\) with an amortized time complexity depending solely on the order k, contrarily to previous approaches where the cost depends also on the size of G or its maximum degree. Specifically, we show that it is possible to list k-graphlets in \(O(k^2)\) time per solution, and to list edge k-graphlets in O(k) time per solution. Furthermore we show that, if the input graph has bounded degree, then the amortized time for listing k-graphlets is reduced to O(k). Whenever \(k = O(1)\), as it is often the case in practical settings, these algorithms are the first to achieve constant time per solution.
期刊介绍:
Algorithmica is an international journal which publishes theoretical papers on algorithms that address problems arising in practical areas, and experimental papers of general appeal for practical importance or techniques. The development of algorithms is an integral part of computer science. The increasing complexity and scope of computer applications makes the design of efficient algorithms essential.
Algorithmica covers algorithms in applied areas such as: VLSI, distributed computing, parallel processing, automated design, robotics, graphics, data base design, software tools, as well as algorithms in fundamental areas such as sorting, searching, data structures, computational geometry, and linear programming.
In addition, the journal features two special sections: Application Experience, presenting findings obtained from applications of theoretical results to practical situations, and Problems, offering short papers presenting problems on selected topics of computer science.