Distance-preserving graph contractions

Karl Däubel, Yann Disser, Max Klimm, Torsten Mütze, Frieder Smolny

TL;DR

This paper introduces a new framework for "distance-preserving graph contractions," which merge vertices to create smaller, sparser graphs while trying to maintain original distances. They provide a comprehensive analysis of the problem's complexity, offering efficient algorithms for trees and proving hardness results for more general graphs, particularly for affine distance distortion functions.

What Problem Does This Paper Address?

In the age of massive networks (social media, the internet, biological systems), efficiently analyzing and processing these graphs is crucial. Compression and sparsification techniques aim to reduce graph size while preserving essential properties. While "spanners" offer a way to create sparser subgraphs that approximate distances, they don't reduce the number of vertices. This paper tackles the problem of graph contraction, where vertices are merged into "super-vertices" to achieve a more significant reduction in graph size, with the specific goal of preserving pairwise distances as much as possible. The challenge lies in finding the optimal way to contract edges to maximize this compression while ensuring that distances between merged vertices don't distort too much, defined by a "tolerance function."

Methods

The authors introduce a formal model for distance-preserving graph contractions, defining a "$\varphi$-contraction" where distances between super-vertices are at least $\varphi(d)$ for original distances $d$. They focus on affine tolerance functions of the form $\varphi(x) = x/\alpha - \beta$.

Key algorithmic contributions include:

  • Greedy Algorithms: Linear-time greedy algorithms are developed for paths and cycles with unit edge lengths, and for trees with unit lengths and $\alpha=1$.
  • Dynamic Programming: Efficient dynamic programming algorithms are presented for computing optimal contractions on trees, achieving $O(n^3)$ for general contractions and $O(n^5)$ for "weak" contractions (where distances within a super-vertex are not guaranteed).

On the hardness side, they establish:

  • NP-Hardness: The problem is shown to be NP-hard on cycles for additive tolerance functions ($\alpha=1$).
  • Inapproximability: They prove hardness results for approximating contractions, showing that for certain tolerance functions, it's impossible to achieve a good approximation within polynomial time.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic complexity on general graph structures rather than specific real-world datasets.

Key Insights and Ideas

  • Contraction vs. Spanners: Contractions offer a complementary approach to spanners. While spanners preserve distances by adding edges (implicitly setting removed edge lengths to infinity), contractions preserve distances by merging vertices (implicitly setting contracted edge lengths to zero). This can lead to a more significant reduction in graph size.
  • Affine Distortion is Key: The complexity of the problem hinges on the parameters $\alpha$ and $\beta$ in the affine tolerance function $\varphi(x) = x/\alpha - \beta$. Different combinations lead to vastly different algorithmic solutions and hardness results.
  • Trees are Tractable: For trees, especially with unit edge lengths and specific distortion parameters, efficient polynomial-time algorithms (greedy and dynamic programming) can find optimal contractions.
  • Cycles are Hard: As soon as cycles are introduced, the problem becomes NP-hard, even for simple additive distortions. This highlights a critical transition in complexity.
  • Asymptotic Guarantees: Despite hardness results for optimal solutions, the paper provides efficient algorithms for computing non-optimal contractions that still offer strong asymptotic guarantees on the number of edges or vertices in the contracted graph. This is crucial for practical applications where a near-optimal solution is sufficient.

Key Results

  • Polynomial-time algorithms for distance-preserving contractions on trees (with specific conditions on $\alpha$ and $\beta$).
  • NP-hardness for contractions on cycles for additive tolerance functions ($\alpha=1$).
  • Inapproximability results showing that finding near-optimal contractions is hard for certain graph classes and tolerance functions.
  • Efficient algorithms for asymptotic bounds: For any $k \geq 1$, a $(2k-1, 1)$-contraction can be computed in $O(m)$ time, resulting in a graph with at most $n^{1+1/k}$ edges.
  • Vertex Reduction: For graphs with minimum degree $D$, a $(5,1)$-contraction can reduce the number of vertices to $O(n/D)$.

Limitations and Future Work

  • Erdős' Girth Conjecture: The lower bound for multiplicative contractions (Theorem 15) relies on the unproven Erdős' girth conjecture.
  • General Multiplicative Tolerance: While hardness results are shown for $\varphi(x) = x/2$ (WEAK CONTRACTION), the question of hardness for other fixed multiplicative values of $\alpha$ remains open.
  • Optimal Contractions on General Graphs: The paper focuses on trees and cycles for exact solutions, leaving the complexity of finding optimal contractions on general graphs largely open, with hardness results suggesting it's difficult.
  • Practical Performance: While theoretical bounds are established, empirical performance of the proposed algorithms on real-world large-scale networks would be a valuable next step.
  • Combining Contractions and Spanners: The authors suggest that combining spanners and contractions could be a powerful strategy for graph compression, but a deeper analysis of their interplay is left for future work.

Summary updated

BibTeX
@article{daubel2019distance,
  author = {Karl Däubel and Yann Disser and Max Klimm and Torsten Mütze and Frieder Smolny},
  title = {{Distance-preserving graph contractions}},
  journal = {SIAM J. Discret. Math.},
  year = {2019},
  url = {https://openreview.net/forum?id=WhIqzlhz2q},
}
Figure