paper

Space-Efficient Depth-First Search via Augmented Succinct Graph Encodings

arXiv:2504.19547

Abstract

We call a graph separable if a balanced separator can be computed for of size with . Many real-world graphs are separable such as graphs of bounded genus, graphs of constant treewidth, and graphs excluding a fixed minor . In particular, the well-known planar graphs are separable. We present a succinct encoding of separable graphs such that any number of depth-first searches DFS can be performed, from any given start vertex, each in time with additional bits. After the execution of a DFS, the succinct encoding of is augmented such that the DFS tree is encoded inside the encoding. Afterward, the encoding provides common DFS-related queries in constant time. These queries include queries such as lowest-common ancestor of two given vertices in the DFS tree or queries that output the lowpoint of a given vertex in the DFS tree. Furthermore, for planar graphs, we show that the succinct encoding can be computed in bits and expected linear time, and a compact variant can be constructed in time and bits.