English

A Fine-grained Classification of Subquadratic Patterns for Subgraph Listing and Friends

Data Structures and Algorithms 2024-04-09 v1

Abstract

In an mm-edge host graph GG, all triangles can be listed in time O(m1.5)O(m^{1.5}) [Itai, Rodeh '78], and all kk-cycles can be listed in time O(m21/k/2+t)O(m^{2-1/{\lceil k/2 \rceil}} + t) where tt is the output size [Alon, Yuster, Zwick '97]. These classic results also hold for the colored problem variant, where the nodes of the host graph GG are colored by nodes in the pattern graph HH, and we are only interested in subgraphs of GG that are isomorphic to the pattern HH and respect the colors. We study the problem of listing all HH-subgraphs in the colored setting, for fixed pattern graphs HH. As our main result, we determine all pattern graphs HH such that all HH-subgraphs can be listed in subquadratic time O(m2ε+t)O(m^{2-\varepsilon} + t), where tt is the output size. Moreover, for each such subquadratic pattern HH we determine the smallest exponent c(H)c(H) such that all HH-subgraphs can be listed in time O(mc(H)+t)O(m^{c(H)} + t). This is a vast generalization of the classic results on triangles and cycles. To prove this result, we design new listing algorithms and prove conditional lower bounds based on standard hypotheses from fine-grained complexity theory. In our algorithms, we use a new ingredient that we call hyper-degree splitting, where we split tuples of nodes into high degree and low degree depending on their number of common neighbors. We also show the same results for two related problems: finding an HH-subgraph of minimum total edge-weight in time O(mc(H))O(m^{c(H)}), and enumerating all HH-subgraphs in O(mc(H))O(m^{c(H)}) preprocessing time and constant delay. Again we determine all pattern graphs HH that have complexity c(H)<2c(H) < 2, and for each such subquadratic pattern we determine the optimal complexity c(H)c(H).

Keywords

Cite

@article{arxiv.2404.04369,
  title  = {A Fine-grained Classification of Subquadratic Patterns for Subgraph Listing and Friends},
  author = {Karl Bringmann and Egor Gorbachev},
  journal= {arXiv preprint arXiv:2404.04369},
  year   = {2024}
}