{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:25:26Z","timestamp":1787340326228,"version":"build-2736575974"},"reference-count":61,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"5","funder":[{"DOI":"10.13039\/501100000266","name":"Engineering and Physical Sciences Research Council","doi-asserted-by":"publisher","award":["EP\/V032305\/1"],"award-info":[{"award-number":["EP\/V032305\/1"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2024,10,31]]},"abstract":"<jats:p>Abstract.<\/jats:p>\n                  <jats:p>We study the problems of counting copies and induced copies of a small pattern graph [Formula: see text] in a large host graph [Formula: see text]. Recent work fully classified the complexity of those problems according to structural restrictions on the patterns [Formula: see text]. In this work, we address the more challenging task of analyzing the complexity for restricted patterns and restricted hosts. Specifically, we ask which families of allowed patterns and hosts imply fixed-parameter tractability, i.e., the existence of an algorithm running in time [Formula: see text] for some computable function [Formula: see text]. Our main results present exhaustive and explicit complexity classifications for families that satisfy natural closure properties. Among others, we identify the problems of counting small matchings and independent sets in subgraph-closed graph classes [Formula: see text] as our central objects of study and establish the following crisp dichotomies as consequences of the exponential time hypothesis: (1) Counting [Formula: see text]-matchings in a graph [Formula: see text] is fixed-parameter tractable if and only if [Formula: see text] is nowhere dense. (2) Counting [Formula: see text]-independent sets in a graph [Formula: see text] is fixed-parameter tractable if and only if [Formula: see text] is nowhere dense. Moreover, we obtain almost tight conditional lower bounds if [Formula: see text] is somewhere dense, i.e., not nowhere dense. These base cases of our classifications subsume a wide variety of previous results on the matching and independent set problem, such as counting [Formula: see text]-matchings in bipartite graphs (Curticapean, Marx; FOCS 14), in [Formula: see text]-colorable graphs (Roth, Wellnitz; SODA 20), and in degenerate graphs (Bressan, Roth; FOCS 21), as well as counting [Formula: see text]-independent sets in bipartite graphs (Curticapean et\u00a0al.; Algorithmica 19). At the same time, our proofs are much simpler: using structural characterizations of somewhere dense graphs, we show that a colorful version of a recent breakthrough technique for analyzing pattern counting problems (Curticapean, Dell, Marx; STOC 17) applies to any subgraph-closed somewhere dense class of graphs, yielding a unified view of our current understanding of the complexity of subgraph counting.<\/jats:p>","DOI":"10.1137\/22m1535668","type":"journal-article","created":{"date-parts":[[2024,9,27]],"date-time":"2024-09-27T04:05:36Z","timestamp":1727409936000},"page":"1409-1438","source":"Crossref","is-referenced-by-count":1,"title":["Counting Subgraphs in Somewhere Dense Graphs"],"prefix":"10.1137","volume":"53","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-5211-2264","authenticated-orcid":true,"given":"Marco","family":"Bressan","sequence":"first","affiliation":[{"name":"Department of Computer Science, University of Milan, Milan, Italy."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Leslie","family":"Ann Goldberg","sequence":"additional","affiliation":[{"name":"Department of Computer Science, University of Oxford, Oxford, UK."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5299-3073","authenticated-orcid":true,"given":"Kitty","family":"Meeks","sequence":"additional","affiliation":[{"name":"School of Computing Science, University of Glasgow, Glasgow, UK."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3159-9418","authenticated-orcid":true,"given":"Marc","family":"Roth","sequence":"additional","affiliation":[{"name":"School of Electronic Engineering and Computer Science, Queen Mary University of London, London, UK."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2024,9,27]]},"reference":[{"key":"ref1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ejc.2013.06.048"},{"key":"ref2","doi-asserted-by":"publisher","DOI":"10.1093\/bioinformatics\/btn163"},{"key":"ref3","doi-asserted-by":"publisher","DOI":"10.1145\/210332.210337"},{"key":"ref4","doi-asserted-by":"publisher","DOI":"10.1145\/3520240"},{"key":"ref5","unstructured":"S. K. Bera, N. Pashanasangi, and C. Seshadhri, Linear time subgraph counting, graph degeneracy, and the chasm at size six, in Proceedings of the 11th Conference on Innovations in Theoretical Computer Science (ITCS), Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik, 2020, 38, https:\/\/doi.org\/10.4230\/LIPIcs.ITCS.2020.38."},{"key":"ref6","doi-asserted-by":"crossref","unstructured":"S. K. Bera, N. Pashanasangi, and C. Seshadhri, Near-linear time homomorphism counting in bounded degeneracy graphs: The barrier of long induced cycles, in Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), SIAM, Philadelphia, 2021, pp. 2315\u20132332, https:\/\/doi.org\/10.1137\/1.9781611976465.138.","DOI":"10.1137\/1.9781611976465.138"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1145\/3486655"},{"key":"ref8","unstructured":"M. Bressan, L. A. Goldberg, K. Meeks, and M. Roth, Counting subgraphs in somewhere dense graphs, in 14th Innovations in Theoretical Computer Science Conference, ITCS 2023, LIPIcs 251, Y. T. Kalai, ed. MIT, Cambridge, MA, 2023, 27, Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik, https:\/\/doi.org\/10.4230\/LIPIcs.ITCS.2023.27."},{"key":"ref9","doi-asserted-by":"crossref","unstructured":"M. Bressan and M. Roth, Exact and approximate pattern counting in degenerate graphs: New algorithms, hardness results, and complexity dichotomies, in Proceedings of the 62nd Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2021, pp. 276\u2013285, https:\/\/doi.org\/10.1109\/FOCS52979.2021.00036.","DOI":"10.1109\/FOCS52979.2021.00036"},{"key":"ref10","doi-asserted-by":"crossref","unstructured":"R. Bubley and M. E. Dyer, Path coupling: A technique for proving rapid mixing in Markov chains, in Proceedings of the 38th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 1997, pp. 223\u2013231, https:\/\/doi.org\/10.1109\/SFCS.1997.646111.","DOI":"10.1109\/SFCS.1997.646111"},{"key":"ref11","doi-asserted-by":"crossref","unstructured":"H. Chen and S. Mengel, Counting answers to existential positive queries: A complexity classification, in Proceedings of the 35th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (PODS), 2016, pp. 315\u2013326, https:\/\/doi.org\/10.1145\/2902251.2902279.","DOI":"10.1145\/2902251.2902279"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic.2005.05.001"},{"key":"ref13","doi-asserted-by":"publisher","DOI":"10.1016\/j.jcss.2006.04.007"},{"key":"ref14","doi-asserted-by":"crossref","unstructured":"Y. Chen, M. Thurley, and M. Weyer, Understanding the complexity of induced subgraph isomorphisms, in Proceedings of the 35th International Colloquium on Automata, Languages and Programming (ICALP), Springer, 2008, pp. 587\u2013596, https:\/\/doi.org\/10.1007\/978-3-540-70575-8_48.","DOI":"10.1007\/978-3-540-70575-8_48"},{"key":"ref15","doi-asserted-by":"crossref","unstructured":"R. Curticapean, Counting matchings of size k is W[1]-hard, in Proceedings of the 40th International Colloquium on Automata, Languages, and Programming (ICALP), Springer, 2013, pp. 352\u2013363, https:\/\/doi.org\/10.1007\/978-3-642-39206-1_30.","DOI":"10.1007\/978-3-642-39206-1_30"},{"key":"ref16","unstructured":"R. Curticapean, The Simple, Little and Slow Things Count: On Parameterized Counting Complexity, Ph.D. thesis, Saarland University, 2015, http:\/\/scidok.sulb.uni-saarland.de\/volltexte\/2015\/6217\/."},{"key":"ref17","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-019-00606-4"},{"key":"ref18","doi-asserted-by":"crossref","unstructured":"R. Curticapean, H. Dell, and D. Marx, Homomorphisms are a good basis for counting small subgraphs, in Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing (STOC), 2017, pp. 210\u2013223, https:\/\/doi.org\/10.1145\/3055399.3055502.","DOI":"10.1145\/3055399.3055502"},{"key":"ref19","unstructured":"R. Curticapean, H. Dell, and M. Roth, Counting edge-injective homomorphisms and matchings on restricted graph classes, in Proceedings of the 34th Symposium on Theoretical Aspects of Computer Science (STACS), Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik, 2017, 25, https:\/\/doi.org\/10.4230\/LIPIcs.STACS.2017.25."},{"key":"ref20","doi-asserted-by":"crossref","unstructured":"R. Curticapean and D. Marx, Complexity of counting subgraphs: Only the boundedness of the vertex-cover number counts, in Proceedings of the 55th IEEE Annual Symposium on Foundations of Computer Science (FOCS), 2014, pp. 130\u2013139, https:\/\/doi.org\/10.1109\/FOCS.2014.22.","DOI":"10.1109\/FOCS.2014.22"},{"key":"ref21","doi-asserted-by":"crossref","unstructured":"R. Curticapean and M. Xia, Parameterizing the permanent: Hardness for fixed excluded minors, in Proceedings of the 2022 Symposium on Simplicity in Algorithms, (SOSA), SIAM, Philadelphia, 2022, pp. 297\u2013307, https:\/\/doi.org\/10.1137\/1.9781611977066.23.","DOI":"10.1137\/1.9781611977066.23"},{"key":"ref22","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-21275-3"},{"key":"ref23","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2004.08.008"},{"key":"ref24","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(02)00017-8"},{"key":"ref25","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-53622-3"},{"key":"ref26","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-021-00894-9"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.1145\/2499483"},{"key":"ref28","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539703427203"},{"key":"ref29","series-title":"Texts Theoret. Comput. Sci. EATCS Ser.","volume-title":"Parameterized Complexity Theory","author":"Flum J.","year":"2006"},{"key":"ref30","doi-asserted-by":"crossref","unstructured":"J. Focke and M. Roth, Counting small induced subgraphs with hereditary properties, in Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing (STOC), 2022, pp. 1543\u20131551, https:\/\/doi.org\/10.1145\/3519935.3520008.","DOI":"10.1145\/3519935.3520008"},{"key":"ref31","doi-asserted-by":"crossref","unstructured":"J. Gajarsk\u00fd, P. Hlinen\u00fd, D. Lokshtanov, J. Obdrz\u00e1lek, M. S. R. Sebastian Ordyniak, and S. Saurabh, FO model checking on posets of bounded width, in Proceedings of the 56th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2015, pp. 963\u2013974, https:\/\/doi.org\/10.1109\/FOCS.2015.63.","DOI":"10.1109\/FOCS.2015.63"},{"key":"ref32","doi-asserted-by":"publisher","DOI":"10.1145\/3383206"},{"key":"ref33","first-page":"1","volume":"11","author":"Ganian R.","year":"2015","journal-title":"Log. Methods Comput. Sci."},{"key":"ref34","first-page":"53:1","volume-title":"31st Annual European Symposium on Algorithms (ESA 2023), Leibniz International Proceedings in Informatics (LIPIcs), Volume 274","author":"Geniet C.","year":"2023"},{"key":"ref35","doi-asserted-by":"publisher","DOI":"10.1007\/PL00001601"},{"key":"ref36","doi-asserted-by":"publisher","DOI":"10.1145\/3051095"},{"key":"ref37","doi-asserted-by":"publisher","DOI":"10.1016\/j.jctb.2008.06.004"},{"key":"ref38","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.2000.1727"},{"key":"ref39","doi-asserted-by":"publisher","DOI":"10.1016\/j.jcss.2014.11.015"},{"key":"ref40","doi-asserted-by":"publisher","DOI":"10.1145\/1008731.1008738"},{"key":"ref41","doi-asserted-by":"publisher","DOI":"10.1098\/rsif.2010.0063"},{"key":"ref42","doi-asserted-by":"publisher","DOI":"10.1090\/coll\/060"},{"key":"ref43","doi-asserted-by":"publisher","DOI":"10.4086\/toc.2010.v006a005"},{"key":"ref44","doi-asserted-by":"publisher","DOI":"10.1145\/2535926"},{"key":"ref45","doi-asserted-by":"publisher","DOI":"10.1016\/j.dam.2015.06.019"},{"key":"ref46","doi-asserted-by":"publisher","DOI":"10.1126\/science.298.5594.824"},{"key":"ref47","doi-asserted-by":"publisher","DOI":"10.1126\/science.1089167"},{"key":"ref48","doi-asserted-by":"publisher","DOI":"10.1016\/j.ejc.2011.01.006"},{"key":"ref49","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-27875-4"},{"key":"ref50","first-page":"415","volume":"26","author":"Ne\u0161et\u0159il J.","year":"1985","journal-title":"Comment. Math. Univ. Carolin."},{"key":"ref51","doi-asserted-by":"publisher","DOI":"10.1137\/22M1479804"},{"key":"ref52","doi-asserted-by":"publisher","DOI":"10.1016\/0095-8956(86)90030-4"},{"key":"ref53","unstructured":"M. Roth, Counting Problems on Quantum Graphs: Parameterized and Exact Complexity Classifications, Ph.D. thesis, Saarland University, 2019, https:\/\/scidok.sulb.uni-saarland.de\/bitstream\/20.500.11880\/27575\/1\/thesis.pdf."},{"key":"ref54","series-title":"LIPIcs. Leibniz Int. Proc. Inform., 198","volume-title":"48th International Colloquium on Automata, Languages, and Programming, 108","author":"Roth M.","year":"2021"},{"key":"ref55","doi-asserted-by":"publisher","DOI":"10.1137\/20M1365624"},{"key":"ref56","doi-asserted-by":"crossref","unstructured":"M. Roth and P. Wellnitz, Counting and finding homomorphisms is universal for parameterized complexity theory, in Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (SODA), SIAM, Philadelphia, 2020, pp. 2161\u20132180, https:\/\/doi.org\/10.1137\/1.9781611975994.133.","DOI":"10.1137\/1.9781611975994.133"},{"key":"ref57","doi-asserted-by":"crossref","unstructured":"B. Schiller, S. Jager, K. Hamacher, and T. Strufe, StreaM \u2013 A stream-based algorithm for counting motifs in dynamic graphs, in Proceedings of the 2nd International Conference on Algorithms for Computational Biology (AlCoB), Springer, Cham, 2015, pp. 53\u201367, https:\/\/doi.org\/10.1007\/978-3-319-21233-3_5.","DOI":"10.1007\/978-3-319-21233-3_5"},{"key":"ref58","doi-asserted-by":"publisher","DOI":"10.1002\/jgt.3190120111"},{"key":"ref59","doi-asserted-by":"publisher","DOI":"10.1038\/ncomms3241"},{"key":"ref60","doi-asserted-by":"crossref","unstructured":"C. E. Tsourakakis, J. Pachocki, and M. Mitzenmacher, Scalable motif-aware graph clustering, in Proceedings of the 26th International Conference on World Wide Web (WWW), 2017, pp. 1451\u20131460, https:\/\/doi.org\/10.1145\/3038912.3052653.","DOI":"10.1145\/3038912.3052653"},{"key":"ref61","doi-asserted-by":"publisher","DOI":"10.1137\/0208032"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/22M1535668","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:29:58Z","timestamp":1787336998000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/22M1535668"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,9,27]]},"references-count":61,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2024,10,31]]}},"alternative-id":["10.1137\/22M1535668"],"URL":"https:\/\/doi.org\/10.1137\/22m1535668","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,9,27]]}}}