English

Fully Dynamic Four-Vertex Subgraph Counting

Data Structures and Algorithms 2022-03-18 v3

Abstract

This paper presents a comprehensive study of algorithms for maintaining the number of all connected four-vertex subgraphs in a dynamic graph. Specifically, our algorithms maintain the number of paths of length three in deterministic amortized O(m12)\mathcal{O}(m^\frac{1}{2}) update time, and any other connected four-vertex subgraph which is not a clique in deterministic amortized update time O(m23)\mathcal{O}(m^\frac{2}{3}). Queries can be answered in constant time. We also study the query times for subgraphs containing an arbitrary edge that is supplied only with the query as well as the case where only subgraphs containing a vertex ss that is fixed beforehand are considered. For length-3 paths, paws, 44-cycles, and diamonds our bounds match or are not far from (conditional) lower bounds: Based on the OMv conjecture we show that any dynamic algorithm that detects the existence of paws, diamonds, or 44-cycles or that counts length-33 paths takes update time Ω(m1/2δ)\Omega(m^{1/2-\delta}). Additionally, for 44-cliques and all connected induced subgraphs, we show a lower bound of Ω(m1δ)\Omega(m^{1-\delta}) for any small constant δ>0\delta > 0 for the amortized update time, assuming the static combinatorial 44-clique conjecture holds. This shows that the O(m)\mathcal{O}(m) algorithm by Eppstein at al. for these subgraphs cannot be improved by a polynomial factor.

Keywords

Cite

@article{arxiv.2106.15524,
  title  = {Fully Dynamic Four-Vertex Subgraph Counting},
  author = {Kathrin Hanauer and Monika Henzinger and Qi Cheng Hua},
  journal= {arXiv preprint arXiv:2106.15524},
  year   = {2022}
}

Comments

A short version is to appear at SAND'22

R2 v1 2026-06-24T03:43:35.732Z