Lune

STOC2023Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Homomorphism Counts as Structural Encodings for Graph Learning cites Homomorphism Counts for Graph Neural Networks: All About That Basis
  • Exact and Approximate Pattern Counting in Degenerate Graphs: New Algorithms, Hardness Results, and Complexity Dichotomies cites When is approximate counting for conjunctive queries tractable?
  • Exact and Approximate Pattern Counting in Degenerate Graphs: New Algorithms, Hardness Results, and Complexity Dichotomies cites Near-Linear Time Homomorphism Counting in Bounded Degeneracy Graphs: The Barrier of Long Induced Cycles
  • Counting Homomorphic Cycles in Degenerate Graphs cites Near-Linear Time Homomorphism Counting in Bounded Degeneracy Graphs: The Barrier of Long Induced Cycles
  • The Parameterised Complexity of Counting Small Sub-Hypergraphs cites Counting small induced subgraphs with hereditary properties
  • The Parameterised Complexity of Counting Small Sub-Hypergraphs cites Exact and Approximate Pattern Counting in Degenerate Graphs: New Algorithms, Hardness Results, and Complexity Dichotomies
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Homomorphism Counts for Graph Neural Networks: All About That BasisEmily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan, Matthias LanzingerICML 2024 · 23 citations
  2. The Parameterised Complexity of Counting Small Sub-HypergraphsMarco Bressan, Julian Christoph Brinkmann, Holger Dell, Marc Roth et al.SODA 2026 · 3 citations
  3. Homomorphism Counts as Structural Encodings for Graph LearningLinus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan et al.ICLR 2025

Builds on5

  1. Counting small induced subgraphs with hereditary propertiesJacob Focke, Marc RothSTOC 2022 · 8 citations
  2. Exact and Approximate Pattern Counting in Degenerate Graphs: New Algorithms, Hardness Results, and Complexity DichotomiesMarco Bressan, Marc RothFOCS 2021 · 8 citations
  3. Near-Linear Time Homomorphism Counting in Bounded Degeneracy Graphs: The Barrier of Long Induced CyclesSuman K. Bera, Noujan Pashanasangi, C. SeshadhriSODA 2021 · 7 citations
  4. When is approximate counting for conjunctive queries tractable?Marcelo Arenas, Luis Alberto Croquevielle, Rajesh Jayaram, Cristian RiverosSTOC 2021 · 1 citation
  5. Counting Homomorphic Cycles in Degenerate GraphsLior Gishboliner, Yevgeny Levanzov, Asaf Shapira, Raphael YusterSODA 2022 · 1 citation

Related papers

  1. Counting and Finding Homomorphisms is Universal for Parameterized Complexity TheoryMarc Roth, Philip WellnitzSODA 2020 · 8 citations
  2. Count on CFI graphs for #P-hardnessRadu CurticapeanSODA 2024 · 2 citations
  3. Counting Small Induced Subgraphs Satisfying Monotone PropertiesMarc Roth, Johannes Schmitt, Philip WellnitzFOCS 2020 · 4 citations
  4. Detecting and counting small patterns in planar graphs in subexponential parameterized timeJesper NederlofSTOC 2020 · 1 citation
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines