English

Counting Subgraphs in Degenerate Graphs

Computational Complexity 2021-12-10 v2 Data Structures and Algorithms Combinatorics

Abstract

We consider the problem of counting the number of copies of a fixed graph HH within an input graph GG. This is one of the most well-studied algorithmic graph problems, with many theoretical and practical applications. We focus on solving this problem when the input GG has bounded degeneracy. This is a rich family of graphs, containing all graphs without a fixed minor (e.g. planar graphs), as well as graphs generated by various random processes (e.g. preferential attachment graphs). We say that HH is easy if there is a linear-time algorithm for counting the number of copies of HH in an input GG of bounded degeneracy. A seminal result of Chiba and Nishizeki from '85 states that every HH on at most 4 vertices is easy. Bera, Pashanasangi, and Seshadhri recently extended this to all HH on 5 vertices, and further proved that for every k>5k > 5 there is a kk-vertex HH which is not easy. They left open the natural problem of characterizing all easy graphs HH. Bressan has recently introduced a framework for counting subgraphs in degenerate graphs, from which one can extract a sufficient condition for a graph HH to be easy. Here we show that this sufficient condition is also necessary, thus fully answering the Bera--Pashanasangi--Seshadhri problem. We further resolve two closely related problems; namely characterizing the graphs that are easy with respect to counting induced copies, and with respect to counting homomorphisms.

Keywords

Cite

@article{arxiv.2010.05998,
  title  = {Counting Subgraphs in Degenerate Graphs},
  author = {Suman K. Bera and Lior Gishboliner and Yevgeny Levanzov and C. Seshadhri and Asaf Shapira},
  journal= {arXiv preprint arXiv:2010.05998},
  year   = {2021}
}
R2 v1 2026-06-23T19:17:31.106Z