The Complexity of Pattern Counting in Directed Graphs, Parameterised by the Outdegree
Marco Bressan, Matthias Lanzinger, Marc Roth
Abstract
We study the fixed-parameter tractability of the following fundamental problem: given two directed graphs H and G, count the number of copies of H in G. The standard setting, where the tractability is well understood, uses only | H| as a parameter. In this paper we take a step forward, and adopt as a parameter | H|+d( G), where d( G) is the maximum outdegree of | G|. Under this parameterization, we completely characterize the fixed-parameter tractability of the problem in both its non-induced and induced versions through two novel structural parameters, the fractional cover number ρ * and the source number α s . On the one hand we give algorithms with running time +O(1) for counting respectively the copies and induced copies of H in G; on the other hand we show that, unless the Exponential Time Hypothesis fails, for any class C of directed graphs the (induced) counting problem is fixed-parameter tractable if and only if ρ * ( C) (α s ( C)) is bounded. These results explain how the orientation of the pattern can make counting easy or hard, and prove that a classic algorithm by Chiba and Nishizeki and its extensions (Chiba, Nishizeki SICOMP 85; Bressan Algorithmica 21) are optimal unless ETH fails. Our proofs consist of several layers of parameterized reductions that preserve the outdegree of the host graph. To start with, we establish a tight connection between counting homomorphisms from H to G to #CSP, the problem of counting solutions of constraint satisfactions problems, for special classes of patterns that we call canonical DAGs. To lift these results from canonical DAGs to arbitrary directed graphs, we exploit a combination of several ingredients: existing results for #CSPs (Marx JACM 13; Grohe, Marx TALG 14), an extension of graph motif parameters (Curticapean, Dell, Marx STOC 17) to our setting, the introduction of what we call monotone reversible minors, and careful analysis of quotients of directed graphs in order to relate their adaptive width and fractional hypertree width as a function to our novel parameters. Along the route we establish a novel bound of the integrality gap for the fractional independence number of hypergraphs based on adaptive width, which might be of independent interest.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 9fb025be-5ee9-41e0-a5c1-7bb7d6c69b70Cited by top-tier papers3
- Homomorphism Counts for Graph Neural Networks: All About That BasisEmily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan, Matthias LanzingerICML 2024 · 23 citations
- The Parameterised Complexity of Counting Small Sub-HypergraphsMarco Bressan, Julian Christoph Brinkmann, Holger Dell, Marc Roth et al.SODA 2026 · 3 citations
- Homomorphism Counts as Structural Encodings for Graph LearningLinus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan et al.ICLR 2025
Builds on5
- Counting small induced subgraphs with hereditary propertiesJacob Focke, Marc RothSTOC 2022 · 8 citations
- Exact and Approximate Pattern Counting in Degenerate Graphs: New Algorithms, Hardness Results, and Complexity DichotomiesMarco Bressan, Marc RothFOCS 2021 · 8 citations
- Near-Linear Time Homomorphism Counting in Bounded Degeneracy Graphs: The Barrier of Long Induced CyclesSuman K. Bera, Noujan Pashanasangi, C. SeshadhriSODA 2021 · 7 citations
- When is approximate counting for conjunctive queries tractable?Marcelo Arenas, Luis Alberto Croquevielle, Rajesh Jayaram, Cristian RiverosSTOC 2021 · 1 citation
- Counting Homomorphic Cycles in Degenerate GraphsLior Gishboliner, Yevgeny Levanzov, Asaf Shapira, Raphael YusterSODA 2022 · 1 citation
Related papers
- Counting and Finding Homomorphisms is Universal for Parameterized Complexity TheoryMarc Roth, Philip WellnitzSODA 2020 · 8 citations
- Count on CFI graphs for #P-hardnessRadu CurticapeanSODA 2024 · 2 citations
- Counting Small Induced Subgraphs Satisfying Monotone PropertiesMarc Roth, Johannes Schmitt, Philip WellnitzFOCS 2020 · 4 citations
- Detecting and counting small patterns in planar graphs in subexponential parameterized timeJesper NederlofSTOC 2020 · 1 citation
- How Hard Is It to Rig a Tournament When Few Players Can Beat or Be Beaten by the Favorite?Zhonghao Wang, Junqiang Peng, Yuxi Liu, Mingyu XiaoAAAI 2026 · 1 citation
