On Pairwise Spanners

Marek Cygan, Fabrizio Grandoni, Telikepalli Kavitha

Abstract

This paper explores the construction of pairwise spanners—subgraphs that approximate distances for a specific subset of node pairs $\mathcal{P}$ rather than the entire graph. By relaxing the requirement from all-pairs to pairwise approximation, the authors develop a two-phase algorithmic framework involving clustering and a novel "path-buying" strategy. This approach yields significantly sparser subgraphs with small additive or near-additive stretch, outperforming traditional all-pairs spanners and exact pairwise preservers. Key results include a $+2$ additive spanner of size $O(n\sqrt{|S|})$ for subsetwise pairs and a $(1+\epsilon, 4)$ spanner of size $O(n|\mathcal{P}|^{1/4} \sqrt{\log n/\epsilon})$ for general pairs.

Introduction

In graph theory, a spanner is a sparse subgraph $H$ of a graph $G$ that preserves distances between nodes within a certain "stretch" factor. While traditional research focuses on all-pairs spanners, many practical applications—such as network routing between specific nodes—only require distance preservation for a subset of pairs $\mathcal{P}$. Pairwise preservers maintain exact distances but are often dense. This work addresses whether allowing a small approximation error (stretch) for only the pairs of interest can lead to significantly sparser subgraphs.

Methods

The authors propose a two-phase algorithmic framework for constructing these spanners:

  1. Clustering Phase: A subset of nodes is partitioned into clusters with a small diameter (at most 2). Edges incident to unclustered nodes and intra-cluster edges are added to the spanner to handle local connectivity efficiently.
  2. Path-Buying Strategy: The core innovation is a greedy optimization approach. The algorithm iterates through shortest paths for the target pairs. For each path, it evaluates the cost (new edges required) versus the value (improvement in distance approximation). In subsetwise cases, a path is added if its value is at least half its cost. For more complex cases, an iterative refinement is used: if a shortest path is too expensive, the algorithm searches for a slightly longer path that is "cheaper" because it shares more edges with the existing spanner.
Illustration of the path-buying strategy: a shortest path between $u_i$ and $v_i$ may be replaced by a slightly longer path (dashed) that utilizes existing edges to minimize the cost of adding new edges to the spanner.

Key Results

The paper establishes several new upper bounds for pairwise spanners in undirected, unweighted graphs:

  • Subsetwise ($S \times S$): A spanner with additive stretch $+2$ and size $O(n\sqrt{|S|})$. This generalizes the famous $O(n^{3/2})$ result for all-pairs additive spanners.
  • Sourcewise ($S \times V$): A $(1, 2k)$ spanner. For $k = \log n$, this achieves size $O(n\sqrt{|S|} \log n)$.
  • General Pairwise ($\mathcal{P}$): A near-additive $(1+\epsilon, 4)$ spanner of size $O(n|\mathcal{P}|^{1/4} \sqrt{\log n/\epsilon})$.

All proposed spanners are constructible in polynomial time, demonstrating the power of specificity in graph sparsification.

Conclusion and Future Work

By decoupling spanner density from the total number of nodes $n$ and tying it to the size of the pair set $|\mathcal{P}|$, the authors demonstrate a clear trade-off between stretch and sparsity. While these results provide impressive upper bounds for unweighted graphs, several challenges remain. Extending these "path-buying" techniques to weighted graphs and establishing lower bounds to determine the fundamental limits of pairwise approximation are key areas for future investigation.

Summary updated

BibTeX
@inproceedings{cygan2013pairwise,
  author = {Marek Cygan and Fabrizio Grandoni and Telikepalli Kavitha},
  title = {{On Pairwise Spanners}},
  booktitle = {STACS},
  year = {2013},
  doi = {10.4230/lipics.stacs.2013.209},
}
Figure