Lune

SODA2022Top-tier venue

Counting Homomorphic Cycles in Degenerate Graphs

Lior Gishboliner, Yevgeny Levanzov, Asaf Shapira, Raphael Yuster

Abstract

Since counting subgraphs in general graphs is, by and large, a computationally demanding problem, it is natural to try and design fast algorithms for restricted families of graphs. One such family that has been extensively studied is that of graphs of bounded degeneracy (e.g., planar graphs). This line of work, which started in the early 80's, culminated in a recent work of Gishboliner et al., which highlighted the importance of the task of counting homomorphic copies of cycles (i.e., cyclic walks) in graphs of bounded degeneracy.

Our main result in this paper is a surprisingly tight relation between the above task and the well-studied problem of detecting (standard) copies of directed cycles in general directed graphs. More precisely, we prove the following:

• One can compute the number of homomorphic copies of C 2k and C 2k+1 in n-vertex graphs of bounded degeneracy in time Õ(n d k ), where the fastest known algorithm for detecting directed copies of C k in general m-edge digraphs runs in time Õ(m d k ).

• Conversely, one can transform any O(n b k ) algorithm for computing the number of homomorphic copies of C 2k or of C 2k+1 in n-vertex graphs of bounded degeneracy, into an Õ(m b k ) time algorithm for detecting directed copies of C k in general m-edge digraphs.

We emphasize that our first result does not use a black-box reduction (as opposed to the second result which does). Instead, we design an algorithm for computing the number of C k -homomorphisms in degenerate graphs and show that one part of its analysis can be reduced to the analysis of the fastest known algorithm for detecting directed cycles in general digraphs, which was carried out in a recent breakthrough of Dalirrooyfard, Vuong and Vassilevska Williams. As a by-product of our algorithm, we obtain a new algorithm for detecting k-cycles in directed and undirected graphs of bounded degeneracy that is faster than all previously known algorithms for 7 ≤ k ≤ 11, and faster for all k ≥ 7 if the matrix multiplication exponent is 2.

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.

2 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

  • The Complexity of Pattern Counting in Directed Graphs, Parameterised by the Outdegree cites Near-Linear Time Homomorphism Counting in Bounded Degeneracy Graphs: The Barrier of Long Induced Cycles
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. The Complexity of Pattern Counting in Directed Graphs, Parameterised by the OutdegreeMarco Bressan, Matthias Lanzinger, Marc RothSTOC 2023 · 9 citations
  2. Approximating the Arboricity in Sublinear TimeTalya Eden, Saleet Mossel, Dana RonSODA 2022

Builds on2

  1. A Refined Laser Method and Faster Matrix MultiplicationJosh Alman, Virginia Vassilevska WilliamsSODA 2021 · 275 citations
  2. Near-Linear Time Homomorphism Counting in Bounded Degeneracy Graphs: The Barrier of Long Induced CyclesSuman K. Bera, Noujan Pashanasangi, C. SeshadhriSODA 2021 · 7 citations

Related papers

  1. Detecting and counting small patterns in planar graphs in subexponential parameterized timeJesper NederlofSTOC 2020 · 1 citation
  2. Exact and Approximate Pattern Counting in Degenerate Graphs: New Algorithms, Hardness Results, and Complexity DichotomiesMarco Bressan, Marc RothFOCS 2021 · 8 citations
  3. A Dichotomy Hierarchy for Linear Time Subgraph Counting in Bounded Degeneracy GraphsDaniel Paul-Pena, C. SeshadhriSODA 2025 · 1 citation
  4. Near-linear time subhypergraph counting in bounded degeneracy hypergraphsDaniel Paul-Pena, C. SeshadhriSODA 2026
  5. A Truly Subcubic Combinatorial Algorithm for Induced 4-Cycle DetectionAmir Abboud, Shyan Akmal, Nick FischerSODA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines