paper

Listing 4-Cycles

arXiv:2211.10022

Abstract

In this note we present an algorithm that lists all -cycles in a graph in time where is their number. Notably, this separates -cycle listing from triangle-listing, since the latter has a lower bound under the -SUM Conjecture. Our upper bound is conditionally tight because (1) is the best known bound for detecting if the graph has any -cycle, and (2) it matches a recent -SUM lower bound for enumeration algorithms. The latter lower bound was proved very recently by Abboud, Bringmann, and Fischer [arXiv, 2022] and independently by Jin and Xu [arXiv, 2022]. In an independent work, Jin and Xu [arXiv, 2022] also present an algorithm with the same time bound.