An experimental comparison of tree-data structures for connectivity queries on fully-dynamic undirected graphs (Extended Version)
Qing Chen, Michael H. Böhlen, Sven Helmer
TL;DR
This work tackles the practical performance of data structures for connectivity queries on fully dynamic undirected graphs, an area with rich theoretical results but unclear real-world behavior. The authors implement and benchmark a comprehensive set of approaches, including D-trees, Link-cut Trees, ET-tree-based HK/HKS/HDH variants, and height-bounded structures like ST, LT, and their lazy versions, across real and synthetic graphs. Their findings show that no single solution is robust across workloads: balanced and partitioned methods incur heavy space and maintenance costs, ET-tree-based methods consume substantial memory, and some simple unlevelled trees degenerate on large-diameter graphs. The paper distills practical lessons, highlights the need for standardized benchmarks, and outlines directions toward robust, scalable connectivity data structures suitable for integration into database systems.
Abstract
During the past decades significant efforts have been made to propose data structures for answering connectivity queries on fully dynamic graphs, i.e., graphs with frequent insertions and deletions of edges. However, a comprehensive understanding of how these data structures perform in practice is missing, since not all of them have been implemented, let alone evaluated experimentally. We provide reference implementations for the proposed data structures and experimentally evaluate them on a wide range of graphs. Our findings show that the current solutions are not ready to be deployed in systems as is, as every data structure has critical weaknesses when used in practice. Key limitations that must be overcome are the space and time overhead incurred by balanced data structures, the degeneration of the runtime of space-efficient data structures in worst case scenarios, and the maintenance costs for balanced data structures. We detail our findings in the experimental evaluation and provide recommendations for implementing robust solutions for answering connectivity queries on dynamic graphs.
