English

Linear Time Subgraph Counting, Graph Degeneracy, and the Chasm at Size Six

Data Structures and Algorithms 2019-12-02 v2

Abstract

We consider the problem of counting all kk-vertex subgraphs in an input graph, for any constant kk. This problem (denoted sub-cntk_k) has been studied extensively in both theory and practice. In a classic result, Chiba and Nishizeki (SICOMP 85) gave linear time algorithms for clique and 4-cycle counting for bounded degeneracy graphs. This is a rich class of sparse graphs that contains, for example, all minor-free families and preferential attachment graphs. The techniques from this result have inspired a number of recent practical algorithms for sub-cntk_k. Towards a better understanding of the limits of these techniques, we ask: for what values of kk can sub-cntk_k be solved in linear time? We discover a chasm at k=6k=6. Specifically, we prove that for k<6k < 6, sub-cntk_k can be solved in linear time. Assuming a standard conjecture in fine-grained complexity, we prove that for all k6k \geq 6, sub-cntk_k cannot be solved even in near-linear time.

Keywords

Cite

@article{arxiv.1911.05896,
  title  = {Linear Time Subgraph Counting, Graph Degeneracy, and the Chasm at Size Six},
  author = {Suman K. Bera and Noujan Pashanasangi and C. Seshadhri},
  journal= {arXiv preprint arXiv:1911.05896},
  year   = {2019}
}

Comments

The previous version did not handle the case of k=8. We corrected that in this version

R2 v1 2026-06-23T12:15:18.421Z