Linear Time Subgraph Counting, Graph Degeneracy, and the Chasm at Size Six
arXiv:1911.05896
Abstract
We consider the problem of counting all -vertex subgraphs in an input graph, for any constant . This problem (denoted sub-cnt) 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-cnt. Towards a better understanding of the limits of these techniques, we ask: for what values of can sub-cnt be solved in linear time? We discover a chasm at . Specifically, we prove that for , sub-cnt can be solved in linear time. Assuming a standard conjecture in fine-grained complexity, we prove that for all , sub-cnt cannot be solved even in near-linear time.
The previous version did not handle the case of k=8. We corrected that in this version