English

The Complexity of Pattern Counting in Directed Graphs, Parameterised by the Outdegree

Computational Complexity 2022-11-04 v1 Discrete Mathematics

Abstract

We study the fixed-parameter tractability of the following fundamental problem: given two directed graphs H\vec H and G\vec G, count the number of copies of H\vec H in G\vec G. The standard setting, where the tractability is well understood, uses only H|\vec H| as a parameter. In this paper we take a step forward, and adopt as a parameter H+d(G)|\vec H|+d(\vec G), where d(G)d(\vec G) is the maximum outdegree of G|\vec 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 ρ\rho^* and the source number αs\alpha_s. On the one hand we give algorithms with running time f(H,d(G))Gρ ⁣(H)+O(1)f(|\vec H|,d(\vec G)) \cdot |\vec G|^{\rho^*\!(\vec H)+O(1)} and f(H,d(G))Gαs(H)+O(1)f(|\vec H|,d(\vec G)) \cdot |\vec G|^{\alpha_s(\vec H)+O(1)} for counting respectively the copies and induced copies of H\vec H in G\vec G; on the other hand we show that, unless the Exponential Time Hypothesis fails, for any class C\vec C of directed graphs the (induced) counting problem is fixed-parameter tractable if and only if ρ(C)\rho^*(\vec C) (αs(C)\alpha_s(\vec 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.

Keywords

Cite

@article{arxiv.2211.01905,
  title  = {The Complexity of Pattern Counting in Directed Graphs, Parameterised by the Outdegree},
  author = {Marco Bressan and Matthias Lanzinger and Marc Roth},
  journal= {arXiv preprint arXiv:2211.01905},
  year   = {2022}
}

Comments

47 pages, 1 figure, abstract shortened due to arXiv requirements

R2 v1 2026-06-28T05:07:10.650Z