Abstract
This paper introduces the first dynamic algorithm for maintaining 2-edge-connectivity in directed graphs. We present an incremental algorithm, SCInc2ECB, that handles a sequence of $m$ edge insertions in $O(mn)$ total time. The algorithm allows for constant-time connectivity queries and can produce a witness edge in $O(1)$ time if two vertices are not 2-edge-connected.
Introduction
In graph theory, 2-edge-connectivity is a critical measure of network resilience, determining if communication between two points can persist despite a single link failure. While this is a well-studied problem for undirected graphs, it is significantly more complex in directed graphs (digraphs), such as the World Wide Web or one-way street systems.
In a digraph, two vertices $u$ and $v$ are 2-edge-connected if there are at least two edge-disjoint paths from $u$ to $v$ and two edge-disjoint paths from $v$ to $u$.
Maintaining these relationships in a dynamic setting—where edges are added over time—is notoriously difficult. Previous approaches required recomputing the entire connectivity structure from scratch after every update, which is computationally prohibitive for large, evolving networks.
Methodology
The authors propose the SCInc2ECB algorithm, which bridges several advanced graph-theoretic concepts to maintain 2-edge-connected blocks (2ECBs) efficiently:
- Dominator Trees: These structures are used to identify "strong bridges"—edges whose removal increases the number of strongly connected components (SCCs).
- Bridge Decomposition and Auxiliary Graphs: The algorithm decomposes the graph into smaller, manageable auxiliary graphs that preserve the 2-connectivity properties of the original graph.
- Incremental SCC Maintenance: It utilizes an
IncSCCdata structure to track how strongly connected components merge as new edges are added. - 2ECB Labeling: A novel labeling scheme assigns a tuple-based label to each vertex. Two vertices are 2-edge-connected if and only if their labels match.
When a new edge is inserted, the algorithm identifies affected vertices and "canceled" bridges. Instead of a total recomputation, it selectively updates the dominator trees and auxiliary graphs, ensuring the labels remain accurate.
Key Insights and Results
The authors highlight that 2-connectivity in digraphs is "much richer and more complicated" than in undirected graphs. Crucially, the edge-disjoint paths that make two vertices 2-edge-connected might pass through vertices outside of their specific 2-edge-connected block.
By bypassing the need for Depth-First Search (DFS) trees—which are difficult to maintain incrementally—the authors achieved an $O(mn)$ total time complexity. This matches the best-known bounds for simpler problems like incremental transitive closure.
Key performance results include:
- Total Update Time: $O(mn)$ for $m$ insertions and $n$ vertices.
- Query Time: $O(1)$ to test if two vertices are 2-edge-connected.
- Reporting Time: $O(n)$ to list all 2-edge-connected blocks.
- Witness Generation: Constant-time generation of a "witness" edge proving a lack of 2-edge-connectivity.
Conclusion
This work provides the first dynamic algorithm for 2-connectivity problems on directed graphs. While currently limited to incremental updates (insertions only), it establishes a framework for future research into fully dynamic algorithms and 2-vertex-connectivity. Extending these results to handle edge deletions remains a significant open challenge in the field.
Summary updated