[Paper Review] Faster Fully Dynamic Transitive Closure in Practice
This paper proposes a family of simple, space-efficient algorithms for fully dynamic transitive closure that leverage supportive vertices and strongly connected components (SCCs) to accelerate reachability queries. Unlike prior dynamic algorithms, the proposed methods—especially SV(1) and SV(2)—achieve orders-of-magnitude speedups over static BFS/DFS and state-of-the-art dynamic algorithms on both synthetic and real-world graphs, even at low query ratios.
The fully dynamic transitive closure problem asks to maintain reachability information in a directed graph between arbitrary pairs of vertices, while the graph undergoes a sequence of edge insertions and deletions. The problem has been thoroughly investigated in theory and many specialized algorithms for solving it have been proposed in the last decades. In two large studies [Frigioni ea, 2001; Krommidas and Zaroliagis, 2008], a number of these algorithms have been evaluated experimentally against simple static algorithms for graph traversal, showing the competitiveness and even superiority of the simple algorithms in practice, except for very dense random graphs or very high ratios of queries. A major drawback of those studies is that only small and mostly randomly generated graphs are considered. In this paper, we engineer new algorithms to maintain all-pairs reachability information which are simple and space-efficient. Moreover, we perform an extensive experimental evaluation on both generated and real-world instances that are several orders of magnitude larger than those in the previous studies. Our results indicate that our new algorithms outperform all state-of-the-art algorithms on all types of input considerably in practice.
Motivation & Objective
- To address the gap in practical performance of dynamic transitive closure algorithms on large-scale graphs, especially where prior studies only evaluated small, randomly generated instances.
- To engineer efficient, simple-to-implement algorithms for fully dynamic all-pairs reachability that outperform both static graph traversal and complex dynamic algorithms in practice.
- To evaluate the proposed algorithms on large-scale real-world and synthetic graphs, including Kronecker and Konect instances, to demonstrate robust performance across diverse graph types and update patterns.
- To investigate the impact of supportive vertex selection and periodic SCC recomputation on performance, particularly in comparison to classic dynamic and static algorithms.
Proposed method
- Design a family of dynamic transitive closure algorithms based on maintaining a small set of supportive vertices per vertex, enabling constant-time reachability queries via reachability checks to these vertices.
- Use strongly connected components (SCCs) implicitly to guide supportive vertex selection—especially in dense or highly cyclic graphs—without explicitly recomputing them at every update.
- Introduce variants: SV(1) uses one supportive vertex per vertex; SV(2) uses two; SVA(1, k) periodically picks new supportive vertices; SVC(c, k) recomputes SCCs at intervals and uses their representatives as supportive vertices.
- Optimize query time by checking reachability from the source to the supportive vertex and from the supportive vertex to the target, enabling constant-time answers when both are true.
- Implement bidirectional BFS (BiBFS) as a strong baseline, and compare against standard BFS and DFS to establish performance baselines.
- Use real-world update sequences from Konect and synthetic Kronecker graphs to simulate realistic dynamic workloads, avoiding artificial update patterns.
Experimental results
Research questions
- RQ1Can simple dynamic algorithms based on supportive vertices and implicit SCC usage outperform classic static algorithms (BFS/DFS) on large-scale dynamic graphs?
- RQ2How does the choice of supportive vertices (single vs. multiple) affect performance across different graph types and densities?
- RQ3Does periodic recomputation of SCCs or dynamic selection of supportive vertices improve performance on real-world graphs compared to static or heuristic choices?
- RQ4How do the proposed algorithms scale on real-world graphs with billions of edges and complex update sequences, especially when static algorithms fail to complete within reasonable time?
Key findings
- SV(1), the simplest variant using a single supportive vertex per vertex, outperformed all other algorithms—including static BFS/DFS and complex dynamic algorithms—on the majority of real-world and synthetic graphs.
- SV(2), which uses two supportive vertices per vertex, reduced total operation time by over 50% on some graphs (e.g., bio-proteins) compared to SV(1), particularly when query costs were high.
- On real-world instances like DE and FR from Konect, SV(1) and SV(2) completed all operations within 6 hours, while BFS and DFS timed out after 24 hours on the largest graphs.
- The use of SCC representatives as supportive vertices (SVC(c, k)) provided marginal improvements on random graphs but did not yield consistent gains on real-world graphs, where static or heuristic supportive vertex selection was superior.
- Bidirectional BFS (BiBFS) was faster than standard BFS/DFS but still significantly outperformed by SV(1) and SV(2), which achieved speedups of multiple orders of magnitude.
- On Kronecker graphs with power-law degree distributions, SV(1) was the fastest on 13 out of 20 instances, and SV(2) further improved performance by reducing query time, especially on dense graphs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.