Fully Dynamic Effective Resistances

David Durfee, Yu Gao, Gramoz Goranci, Richard PengarXiv 2018

Abstract

Effective resistance is a fundamental metric in graph theory, capturing the "distance" between nodes by accounting for all possible paths and their respective capacities. While efficient algorithms exist for static graphs, maintaining these values in dynamic environments—where edges are frequently inserted or deleted—has historically been computationally expensive. This paper introduces the first sub-linear time algorithm for maintaining $(1 \pm \epsilon)$-approximate effective resistances in general undirected graphs, achieving an expected amortized update and query time of $\tilde{O}(m^{4/5} \epsilon^{-4})$.

Introduction

In spectral graph theory, the effective resistance $R_{eff}(u, v)$ between two vertices $u$ and $v$ is defined as the voltage difference induced between them when a unit current is injected at $u$ and extracted at $v$. This metric is more robust than the shortest-path distance, as it incorporates the global structure of the graph, making it a critical primitive for applications ranging from spectral clustering and graph sparsification to solving complex combinatorial optimization problems like the Traveling Salesperson Problem.

Despite its utility, the dynamic maintenance of effective resistance has remained a significant algorithmic challenge. Real-world networks, such as social graphs and routing tables, are rarely static. Previous research into dynamic effective resistance was largely confined to specific graph classes, such as planar or minor-free graphs. For general graphs, the best-known methods often defaulted to recomputing values from scratch or using heavy algebraic machinery that failed to achieve sub-linear performance. This work bridges that gap by providing a general-purpose, sub-linear dynamic algorithm.

Methodology: The Schur Complement and Random Walks

The authors' approach centers on the Schur complement, a technique used to reduce a graph's size while preserving the effective resistances between a subset of "terminal" vertices. Traditionally, the Schur complement is derived through the Gaussian elimination of non-terminal vertices in the graph's Laplacian matrix. However, updating this algebraic structure dynamically is difficult due to the global impact of local edge changes.

1. A Probabilistic Interpretation

The key innovation in this paper is the transition from an algebraic view of the Schur complement to a probabilistic one based on local random walks. In this framework, an edge in the Schur complement represents a random walk in the original graph that starts at one terminal and ends at another without visiting any intermediate terminals. This shift allows the authors to treat the maintenance of the Schur complement as a sampling problem rather than a matrix inversion problem.

2. Strategic Terminal Selection and Locality

To ensure the efficiency of the sampling, the algorithm must prevent random walks from wandering across the entire graph. The authors achieve this by randomly selecting a subset of vertices to act as terminals with a specific probability $\beta$. This density ensures that any random walk starting at a terminal will likely encounter another terminal within a small number of steps. By bounding the length of these walks, the algorithm ensures that the "influence" of any single edge is localized.

3. Dynamic Maintenance via Rejection Sampling

When an edge is inserted or deleted, only the random walks passing through that specific edge need to be updated. Because the walks are short and the load on any given edge is bounded, the algorithm can use rejection sampling to efficiently resample only the affected walks. This local update mechanism is what allows the data structure to bypass the $O(m)$ bottleneck associated with global recomputation.

4. Spectral Sparsification

To facilitate fast queries, the algorithm maintains a spectral sparsifier of the Schur complement. This ensures that even as the graph changes, $(1 \pm \epsilon)$-approximate resistance queries can be answered rapidly by operating on a much smaller, sparser representation of the terminal set.

Key Results and Complexity

The primary contribution of this work is the establishment of the first sub-linear update and query times for general graphs:

  • General Graphs: The algorithm supports edge updates and resistance queries in $\tilde{O}(m^{4/5} \epsilon^{-4})$ expected amortized time.
  • Simple Dense Graphs: For simple graphs where the number of queries is limited, the performance can be optimized to $\tilde{O}(n^{6/7} \epsilon^{-4})$ per operation.
  • Implicit Connectivity: As a byproduct of maintaining effective resistance (which is finite only if nodes are connected), the data structure implicitly maintains graph connectivity without the need for traditional tree-based structures like Link-Cut trees.

Discussion and Future Directions

By reimagining the Schur complement through the lens of locality and random walks, the authors have broken a long-standing barrier in dynamic graph algorithms. However, several avenues for future research remain. The current time bounds are amortized and expected; developing a deterministic version or achieving worst-case bounds remains an open challenge. Additionally, while $m^{4/5}$ is sub-linear, it remains polynomially far from the ideal polylogarithmic update time. Finally, the authors suggest that this "local representation" of vertex sparsifiers could be adapted to other dynamic problems, such as maximum flow or minimum cut maintenance, potentially leading to a new class of dynamic graph algorithms.

Summary updated

BibTeX
@misc{durfee2018fully,
  author = {David Durfee and Yu Gao and Gramoz Goranci and Richard Peng},
  title = {{Fully Dynamic Effective Resistances}},
  year = {2018},
  eprint = {1804.04038},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.04038},
}
Figure