paper

Finding Small Complete Subgraphs Efficiently

arXiv:2308.11146

Abstract

(I) We revisit the algorithmic problem of finding all triangles in a graph with vertices and edges. According to a result of Chiba and Nishizeki (1985), this task can be achieved by a combinatorial algorithm running in time, where is the graph arboricity. We provide a new very simple combinatorial algorithm for finding all triangles in a graph and show that is amenable to the same running time analysis. We derive these worst-case bounds from first principles and with very simple proofs that do not rely on classic results due to Nash-Williams from the 1960s. Our experimental results show that our simple algorithm for triangle listing is substantially faster in practice than that of Chiba and Nishizeki on all examples of real-world graphs we tried. (II) We extend our arguments to the problem of finding all small complete subgraphs of a given fixed size. We show that the dependency on and in the running time of the algorithm of Chiba and Nishizeki for listing all copies of , where , is asymptotically tight. (III) We give improved arboricity-sensitive running times for counting and/or detection of copies of , for small . A key ingredient in our algorithms is, once again, the algorithm of Chiba and Nishizeki. Our new algorithms are faster than all previous algorithms in certain high-range arboricity intervals for every .

16 pages, 1 figure, 3 tables. Small updates in Section 4. arXiv admin note: text overlap with arXiv:2105.01265

Finding Small Complete Subgraphs Efficiently · wovepaper