{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,16]],"date-time":"2026-06-16T21:52:00Z","timestamp":1781646720768,"version":"3.54.5"},"reference-count":43,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2026,6,16]],"date-time":"2026-06-16T00:00:00Z","timestamp":1781568000000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,6,16]],"date-time":"2026-06-16T00:00:00Z","timestamp":1781568000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"DOI":"10.13039\/501100021856","name":"Ministero dell\u2019Universit\u00c3 e della Ricerca","doi-asserted-by":"publisher","award":["National Centre for HPC, Big Data and Quantum Computing\u201d project, CN00000013"],"award-info":[{"award-number":["National Centre for HPC, Big Data and Quantum Computing\u201d project, CN00000013"]}],"id":[{"id":"10.13039\/501100021856","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100003500","name":"Universit\u00e0 degli Studi di Padova","doi-asserted-by":"crossref","id":[{"id":"10.13039\/501100003500","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Knowl Inf Syst"],"published-print":{"date-parts":[[2026,12]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    In this work, we present the first efficient and practical algorithms for estimating the number of triangles in a graph stream using\n                    <jats:italic>predictions<\/jats:italic>\n                    . Our algorithms combine waiting room sampling and uniform sampling schemes with a\n                    <jats:italic>predictor<\/jats:italic>\n                    for the\n                    <jats:italic>heaviness<\/jats:italic>\n                    of edges, that is, the number of triangles in which an edge is involved. As a result, our algorithms are fast, provide guarantees on the amount of memory used, and exploit the additional information provided by the predictor to produce highly accurate estimates. We also propose a simple and domain-independent predictor, based on the degree of nodes, that can be easily computed with one pass on a stream of edges when the stream is available beforehand. Our analytical results show that, when the predictor provides useful information on the heaviness of edges, it leads to estimates with reduced variance compared to the state-of-the-art, even when the predictions are far from perfect. Our experimental results show that, when analyzing a single graph stream, our algorithms are faster than the state-of-the-art for a given memory budget, while providing significantly more accurate estimates. Even more interestingly, when sequences of hundreds of graph streams are analyzed, our algorithm significantly outperforms the state-of-the-art using our simple degree-based predictor built by analyzing only the first graph of the sequence. We also present a method to dynamically update the degree-based predictor to maintain high-quality predictions as the streams in the sequence are processed, leading to improved estimates.\n                  <\/jats:p>","DOI":"10.1007\/s10115-026-02702-8","type":"journal-article","created":{"date-parts":[[2026,6,16]],"date-time":"2026-06-16T20:54:58Z","timestamp":1781643298000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Fast and accurate triangle counting in graph streams using predictions"],"prefix":"10.1007","volume":"68","author":[{"given":"Cristian","family":"Boldrin","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Nikola","family":"Bulat","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Fabio","family":"Vandin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,6,16]]},"reference":[{"issue":"5","key":"2702_CR1","doi-asserted-by":"publisher","DOI":"10.1103\/PhysRevE.83.056119","volume":"83","author":"JW Berry","year":"2011","unstructured":"Berry JW, Hendrickson B, LaViolette RA, Phillips CA (2011) Tolerating the community detection resolution limit with edge weighting. Phys Rev E 83(5):056119","journal-title":"Phys Rev E"},{"issue":"3","key":"2702_CR2","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/1839490.1839494","volume":"4","author":"L Becchetti","year":"2010","unstructured":"Becchetti L, Boldi P, Castillo C, Gionis A (2010) Efficient algorithms for large-scale local triangle counting. ACM Trans Knowl Discov Data (TKDD) 4(3):1\u201328","journal-title":"ACM Trans Knowl Discov Data (TKDD)"},{"key":"2702_CR3","doi-asserted-by":"crossref","unstructured":"Lim Y, Kang U (2015) Mascot: memory-efficient and accurate sampling for counting local triangles in graph streams. In: Proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining, pp 685\u2013694","DOI":"10.1145\/2783258.2783285"},{"issue":"5594","key":"2702_CR4","doi-asserted-by":"publisher","first-page":"824","DOI":"10.1126\/science.298.5594.824","volume":"298","author":"R Milo","year":"2002","unstructured":"Milo R, Shen-Orr S, Itzkovitz S, Kashtan N, Chklovskii D, Alon U (2002) Network motifs: simple building blocks of complex networks. Science 298(5594):824\u2013827","journal-title":"Science"},{"issue":"4","key":"2702_CR5","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3059194","volume":"11","author":"LD Stefani","year":"2017","unstructured":"Stefani LD, Epasto A, Riondato M, Upfal E (2017) TRIEST: counting local and global triangles in fully dynamic streams with fixed memory size. ACM Trans Knowl Discov Data (TKDD) 11(4):1\u201350","journal-title":"ACM Trans Knowl Discov Data (TKDD)"},{"key":"2702_CR6","doi-asserted-by":"crossref","unstructured":"Shin K (2017) WRS: waiting room sampling for accurate triangle counting in real graph streams. In: ICDM. IEEE, pp 1087\u20131092","DOI":"10.1109\/ICDM.2017.143"},{"issue":"7","key":"2702_CR7","doi-asserted-by":"publisher","first-page":"33","DOI":"10.1145\/3528087","volume":"65","author":"M Mitzenmacher","year":"2022","unstructured":"Mitzenmacher M, Vassilvitskii S (2022) Algorithms with predictions. Commun ACM 65(7):33\u201335","journal-title":"Commun ACM"},{"key":"2702_CR8","unstructured":"Chen JY, Eden T, Indyk P, Lin H, Narayanan S, Rubinfeld R, Silwal S, Wagner T, Woodruff DP, Zhang M (2022) Triangle and four cycle counting with predictions in graph streams. arXiv preprint arXiv:2203.09572"},{"key":"2702_CR9","doi-asserted-by":"crossref","unstructured":"Tsourakakis CE, Kang U, Miller GL, Faloutsos C (2009) Doulion: counting triangles in massive graphs with a coin. In: Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 837\u2013846","DOI":"10.1145\/1557019.1557111"},{"issue":"6","key":"2702_CR10","doi-asserted-by":"publisher","first-page":"703","DOI":"10.7155\/jgaa.00245","volume":"15","author":"CE Tsourakakis","year":"2011","unstructured":"Tsourakakis CE, Kolountzakis MN, Miller GL (2011) Triangle sparsifiers J Graph Algorithms Appl 15(6):703\u2013726","journal-title":"Triangle sparsifiers J Graph Algorithms Appl"},{"key":"2702_CR11","doi-asserted-by":"crossref","unstructured":"Kane DM, Mehlhorn K, Sauerwald T, Sun H (2012) Counting arbitrary subgraphs in data streams. In: Automata, languages, and programming: 39th international colloquium, ICALP 2012, Warwick, UK, July 9-13, 2012, Proceedings, Part II 39:598\u2013609. Springer, Berlin","DOI":"10.1007\/978-3-642-31585-5_53"},{"key":"2702_CR12","doi-asserted-by":"crossref","unstructured":"Manjunath M, Mehlhorn K, Panagiotou K, Sun H (2011) Approximate counting of cycles in streams. In: Algorithms\u2013ESA 2011: 19th Annual European Symposium, Saarbr\u00fccken, Germany, September 5\u20139, 2011. Proceedings 19, 677\u2013688. Springer, Berlin","DOI":"10.1007\/978-3-642-23719-5_57"},{"key":"2702_CR13","unstructured":"Jayaram R, Kallaugher J (2021) An optimal algorithm for triangle counting in the stream. arXiv preprint arXiv:2105.01785"},{"key":"2702_CR14","doi-asserted-by":"crossref","unstructured":"McGregor A, Vorotnikova S, Vu HT (2016) Better algorithms for counting triangles in data streams. In: Proceedings of the 35th ACM SIGMOD-SIGACT-SIGAI symposium on principles of database systems, pp 401\u2013411","DOI":"10.1145\/2902251.2902283"},{"issue":"7","key":"2702_CR15","doi-asserted-by":"publisher","first-page":"277","DOI":"10.1016\/j.ipl.2011.12.007","volume":"112","author":"R Pagh","year":"2012","unstructured":"Pagh R, Tsourakakis CE (2012) Colorful triangle counting and a MapReduce implementation. Inf Process Lett 112(7):277\u2013281","journal-title":"Inf Process Lett"},{"key":"2702_CR16","doi-asserted-by":"crossref","unstructured":"Park H-M, Silvestri F, Kang U, Pagh R (2014) Mapreduce triangle enumeration with guarantees. In: Proceedings of the 23rd ACM international conference on conference on information and knowledge management, pp 1739\u20131748","DOI":"10.1145\/2661829.2662017"},{"key":"2702_CR17","doi-asserted-by":"crossref","unstructured":"Park H-M, Chung C-W (2013) An efficient MapReduce algorithm for counting triangles in a very large graph. In: Proceedings of the 22nd ACM international conference on information and knowledge management, pp 539\u2013548","DOI":"10.1145\/2505515.2505563"},{"key":"2702_CR18","doi-asserted-by":"crossref","unstructured":"Park H-M, Myaeng S-H, Kang U (2016) PTE: enumerating trillion triangles on distributed systems. In: Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pp 1115\u20131124","DOI":"10.1145\/2939672.2939757"},{"key":"2702_CR19","doi-asserted-by":"crossref","unstructured":"Suri S, Vassilvitskii S (2011) Counting triangles and the curse of the last reducer. In: Proceedings of the 20th international conference on world wide web, pp 607\u2013614","DOI":"10.1145\/1963405.1963491"},{"issue":"1\u20133","key":"2702_CR20","doi-asserted-by":"publisher","first-page":"458","DOI":"10.1016\/j.tcs.2008.07.017","volume":"407","author":"M Latapy","year":"2008","unstructured":"Latapy M (2008) Main-memory triangle computations for very large (sparse (power-law)) graphs. Theor Comput Sci 407(1\u20133):458\u2013473","journal-title":"Theor Comput Sci"},{"issue":"2","key":"2702_CR21","doi-asserted-by":"publisher","first-page":"1226","DOI":"10.1002\/widm.1226","volume":"8","author":"M Al Hasan","year":"2018","unstructured":"Al Hasan M, Dave VS (2018) Triangle counting in large networks: a review. Wiley Interdiscip Rev Data Min Knowl Discov 8(2):1226","journal-title":"Wiley Interdiscip Rev Data Min Knowl Discov"},{"key":"2702_CR22","doi-asserted-by":"crossref","unstructured":"Buriol LS, Frahling G, Leonardi S, Marchetti-Spaccamela A, Sohler C (2006) Counting triangles in data streams. In: Proceedings of the twenty-fifth ACM SIGMOD-SIGACT-SIGART symposium on principles of database systems, pp 253\u2013262","DOI":"10.1145\/1142351.1142388"},{"issue":"14","key":"2702_CR23","doi-asserted-by":"publisher","first-page":"1870","DOI":"10.14778\/2556549.2556569","volume":"6","author":"A Pavan","year":"2013","unstructured":"Pavan A, Tangwongsan K, Tirthapura S, Wu K-L (2013) Counting and sampling triangles from a graph stream. Proc VLDB Endow 6(14):1870\u20131881","journal-title":"Proc VLDB Endow"},{"key":"2702_CR24","doi-asserted-by":"crossref","unstructured":"Jha M, Seshadhri C, Pinar A (2013) A space efficient streaming algorithm for triangle counting using the birthday paradox. In: Proceedings of the 19th ACM SIGKDD international conference on knowledge discovery and data mining, pp 589\u2013597","DOI":"10.1145\/2487575.2487678"},{"issue":"1","key":"2702_CR25","doi-asserted-by":"publisher","first-page":"37","DOI":"10.1145\/3147.3165","volume":"11","author":"JS Vitter","year":"1985","unstructured":"Vitter JS (1985) Random sampling with a reservoir. ACM Trans Math Softw (TOMS) 11(1):37\u201357","journal-title":"ACM Trans Math Softw (TOMS)"},{"key":"2702_CR26","doi-asserted-by":"publisher","first-page":"173","DOI":"10.1007\/s00778-007-0065-y","volume":"17","author":"R Gemulla","year":"2008","unstructured":"Gemulla R, Lehner W, Haas PJ (2008) Maintaining bounded-size sample synopses of evolving datasets. VLDB J 17:173\u2013201","journal-title":"VLDB J"},{"issue":"6","key":"2702_CR27","doi-asserted-by":"publisher","first-page":"1501","DOI":"10.1007\/s00778-020-00624-7","volume":"29","author":"D Lee","year":"2020","unstructured":"Lee D, Shin K, Faloutsos C (2020) Temporal locality-aware sampling for accurate triangle counting in real graph streams. VLDB J 29(6):1501\u20131525","journal-title":"VLDB J"},{"key":"2702_CR28","first-page":"141","volume-title":"Joint European conference on machine learning and knowledge discovery in databases","author":"K Shin","year":"2018","unstructured":"Shin K, Kim J, Hooi B, Faloutsos C (2018) Think before you discard: accurate triangle counting in graph streams with deletions. Joint European conference on machine learning and knowledge discovery in databases. Springer, Berlin, pp 141\u2013157"},{"issue":"2","key":"2702_CR29","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3375392","volume":"14","author":"K Shin","year":"2020","unstructured":"Shin K, Oh S, Kim J, Hooi B, Faloutsos C (2020) Fast, accurate and provable triangle counting in fully dynamic graph streams. ACM Trans Knowl Discov Data (TKDD) 14(2):1\u201339","journal-title":"ACM Trans Knowl Discov Data (TKDD)"},{"key":"2702_CR30","doi-asserted-by":"crossref","unstructured":"Mitzenmacher M (2018) A model for learned bloom filters and optimizing by sandwiching. Advances in neural information processing systems 31","DOI":"10.1007\/978-1-4614-8265-9_751"},{"key":"2702_CR31","unstructured":"Khalil E, Dai H, Zhang Y, Dilkina B, Song L (2017) Learning combinatorial optimization algorithms over graphs. Advances in neural information processing systems 30"},{"key":"2702_CR32","unstructured":"Hsu C-Y, Indyk P, Katabi D, Vakilian A (2019) Learning-based frequency estimation algorithms. In: International conference on learning representations"},{"key":"2702_CR33","doi-asserted-by":"crossref","unstructured":"Rossi RA, Ahmed NK (2015) The network data repository with interactive graph analytics and visualization. In: AAAI. https:\/\/networkrepository.com","DOI":"10.1609\/aaai.v29i1.9277"},{"key":"2702_CR34","doi-asserted-by":"crossref","unstructured":"Kunegis J (2013) KONECT \u2013 The Koblenz Network Collection. In: Proceedings of the 26th international conference on world wide web companion, pp 1343\u20131350. http:\/\/dl.acm.org\/citation.cfm?id=2488173","DOI":"10.1145\/2487788.2488173"},{"key":"2702_CR35","unstructured":"Leskovec J, Krevl A (2014) SNAP datasets: Stanford large network dataset collection. http:\/\/snap.stanford.edu\/data"},{"key":"2702_CR36","doi-asserted-by":"publisher","DOI":"10.3386\/w8498","volume-title":"The NBER patent citation data file: lessons, insights and methodological tools","author":"BH Hall","year":"2001","unstructured":"Hall BH, Jaffe AB, Trajtenberg M (2001) The NBER patent citation data file: lessons, insights and methodological tools. Mass, USA, National Bureau of Economic Research Cambridge"},{"key":"2702_CR37","doi-asserted-by":"crossref","unstructured":"Boldi P, Rosa M, Santini M, Vigna S (2011) Layered label propagation: a multiresolution coordinate-free ordering for compressing social networks. In: Proceedings of the 20th international conference on world wide web, pp 587\u2013596","DOI":"10.1145\/1963405.1963488"},{"key":"2702_CR38","doi-asserted-by":"publisher","unstructured":"Kwak H, Lee C, Park H, Moon S (2010) What is Twitter, a social network or a news media? In: WWW \u201910: proceedings of the 19th international conference on world wide web. ACM, New York, NY, USA, pp 591\u2013600. https:\/\/doi.org\/10.1145\/1772690.1772751","DOI":"10.1145\/1772690.1772751"},{"key":"2702_CR39","doi-asserted-by":"crossref","unstructured":"Spearman C (1961) The proof and measurement of association between two things","DOI":"10.1037\/11491-005"},{"key":"2702_CR40","doi-asserted-by":"crossref","unstructured":"Ting D (2018) Data sketches for disaggregated subset sum and frequent item estimation. In: Proceedings of the 2018 international conference on management of data, pp 1129\u20131140","DOI":"10.1145\/3183713.3183759"},{"issue":"4","key":"2702_CR41","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/1852102.1852106","volume":"28","author":"W Webber","year":"2010","unstructured":"Webber W, Moffat A, Zobel J (2010) A similarity measure for indefinite rankings. ACM Trans Inf Syst (TOIS) 28(4):1\u201338","journal-title":"ACM Trans Inf Syst (TOIS)"},{"issue":"5","key":"2702_CR42","doi-asserted-by":"publisher","first-page":"1697","DOI":"10.1007\/s00778-024-00869-6","volume":"33","author":"Z Liu","year":"2024","unstructured":"Liu Z, Dong F, Liu C, Deng X, Yang T, Zhao Y, Li J, Cui B, Zhang G (2024) WavingSketch: an unbiased and generic sketch for finding top-k items in data streams. VLDB J 33(5):1697\u20131722","journal-title":"VLDB J"},{"issue":"1","key":"2702_CR43","doi-asserted-by":"publisher","first-page":"3","DOI":"10.1007\/s00778-009-0172-z","volume":"19","author":"G Cormode","year":"2010","unstructured":"Cormode G, Hadjieleftheriou M (2010) Methods for finding frequent items in data streams. VLDB J 19(1):3\u201320","journal-title":"VLDB J"}],"container-title":["Knowledge and Information Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10115-026-02702-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10115-026-02702-8","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10115-026-02702-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,16]],"date-time":"2026-06-16T20:55:09Z","timestamp":1781643309000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10115-026-02702-8"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,16]]},"references-count":43,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2026,12]]}},"alternative-id":["2702"],"URL":"https:\/\/doi.org\/10.1007\/s10115-026-02702-8","relation":{},"ISSN":["0219-1377","0219-3116"],"issn-type":[{"value":"0219-1377","type":"print"},{"value":"0219-3116","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,16]]},"assertion":[{"value":"9 August 2025","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"24 December 2025","order":2,"name":"revised","label":"Revised","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"6 February 2026","order":3,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"16 June 2026","order":4,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare no competing interests.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Competing interests"}}],"article-number":"189"}}