NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fully Dynamic Algorithms for Transitive Reduction

Gramoz Goranci, Adam Karczmarz, Ali Momeni, Nikos ParotsidisICALP 2025

Abstract

This paper presents the first fully dynamic algorithms for maintaining the transitive reduction of a directed graph. A transitive reduction is the sparsest subgraph that preserves the reachability properties of the original graph. By introducing both combinatorial and algebraic approaches, the authors provide near-optimal amortized update times for sparse graphs and strong worst-case guarantees for general graphs, effectively closing a 30-year gap in dynamic graph sparsification research.

Introduction

Graph sparsification involves removing redundant edges while maintaining specific structural or mathematical properties. In directed graphs, the most critical property is often reachability—the ability to traverse from vertex $A$ to vertex $B$. The transitive reduction (TR) represents the minimal "skeleton" of a graph that perfectly preserves this reachability. While static algorithms for TR are well-understood, real-world graphs (such as social networks, biological pathways, or database schemas) are dynamic, with edges and vertices constantly being added or removed.

Historically, maintaining a TR in a dynamic environment required recomputing the structure from scratch after every update, a process taking $O(nm)$ or $O(n^\omega)$ time. While dynamic transitive closure (answering reachability queries) has seen significant progress, maintaining the reduction itself under both insertions and deletions remained an open challenge since the late 1980s. This work bridges that gap with two distinct algorithmic frameworks.

The Challenge of SCC Volatility

A primary hurdle in dynamic graph algorithms is the behavior of Strongly Connected Components (SCCs). In a Directed Acyclic Graph (DAG), updates are relatively contained. However, in general directed graphs, a single edge deletion can cause a large SCC to "shatter" into $O(n)$ smaller components. This volatility often breaks traditional dynamic data structures. The authors address this by decoupling the problem: they use fast static algorithms to handle the volatile internal edges of SCCs and specialized dynamic structures to manage the edges connecting different SCCs.

Methodological Frameworks

1. Combinatorial Approach (Amortized Efficiency)

The combinatorial algorithm focuses on achieving high efficiency over a sequence of updates. For DAGs, the authors utilize a series of graph "snapshots" maintained via decremental single-source reachability trees. For general graphs, the algorithm isolates SCCs and separates the workload into intra-SCC and inter-SCC maintenance. This approach is robust enough to handle "extended updates," such as inserting a star of edges around a vertex or deleting an arbitrary set of edges, within the same amortized time bounds.

2. Algebraic Approach (Worst-Case Guarantees)

To provide strict worst-case bounds, the authors employ an algebraic strategy. They reduce the TR problem to maintaining the inverse of a symbolic adjacency matrix. To avoid the computational overhead of large polynomials, the matrices are evaluated over a random finite field using the Schwartz-Zippel lemma. By classifying SCCs as "heavy" or "light" and utilizing a randomized "hitting set" of vertices, the algorithm maintains sub-quadratic update times even in the face of complex graph changes.

Key Results and Complexity

The paper establishes new benchmarks for dynamic transitive reduction, summarized by the following performance metrics:

  • Combinatorial Performance: Achieves $O(m)$ amortized update time for DAGs and $O(m + n \log n)$ for general graphs. This is considered near-optimal for sparse graph architectures.
  • Algebraic Performance: Provides a worst-case update time of $O(n^2)$ for vertex updates. For single-edge updates, it achieves $O(n^{1.528} + m)$ in DAGs and $O(n^{1.585} + m)$ in general graphs.
  • Space Complexity: Both approaches require $O(n^2)$ space to explicitly maintain the transitive reduction.

Discussion and Future Work

While this research marks a significant milestone, several challenges remain. All proposed structures require $O(n^2)$ space; breaking this quadratic barrier for all-pairs reachability problems is a classic open problem in theoretical computer science. Additionally, there remains a small performance gap between the edge-update times for DAGs and general graphs in the algebraic model ($O(n^{1.528})$ vs $O(n^{1.585})$). Closing this gap and exploring whether the amortized combinatorial bounds can be converted into worst-case bounds without significant loss of efficiency are primary directions for future study.

Summary updated

BibTeX
@inproceedings{goranci2025fully,
  author = {Gramoz Goranci and Adam Karczmarz and Ali Momeni and Nikos Parotsidis},
  title = {{Fully Dynamic Algorithms for Transitive Reduction}},
  booktitle = {ICALP},
  year = {2025},
  doi = {10.4230/lipics.icalp.2025.92},
}
Figure