Hyperbolicity Computation through Dominating Sets

David Coudert, André Nusser, Laurent ViennotarXiv 2021

Abstract

Gromov hyperbolicity is a fundamental metric for characterizing the tree-like structure of complex networks, yet its computation for large-scale graphs has historically been hindered by prohibitive time and memory requirements. This paper introduces a novel exact algorithm that utilizes a hierarchy of distance-$k$ dominating sets to prune the search space of node quadruples. By integrating hub labeling to bypass the $O(n^2)$ memory bottleneck of distance matrices, the proposed method enables the computation of hyperbolicity for graphs with over a million nodes. Experimental results demonstrate speedups of up to 1,000x and memory reductions of over 20x compared to existing state-of-the-art techniques.

Introduction

Hyperbolicity (specifically Gromov hyperbolicity) is a crucial parameter for understanding the "democracy" of a network, routing efficiency, and the behavior of complex systems like the Internet, social networks, and biological pathways. It measures how much a graph resembles a tree in terms of its internal distances.

The challenge in computing hyperbolicity lies in the mathematical definition, which requires checking a "4-point condition" across every possible quadruple of nodes. For a graph with $n$ nodes, a brute-force approach takes $\Theta(n^4)$ time. Even the most advanced theoretical algorithms hover around $O(n^{3.69})$, making them impractical for massive datasets. Furthermore, previous practical algorithms often hit a "memory bottleneck," requiring $O(n^2)$ space to store distance matrices, which quickly exhausts the RAM of modern servers when dealing with millions of nodes.

Methodology

The authors propose a significant leap in computational efficiency by moving away from brute-force comparisons toward a clever hierarchical pruning strategy. The methodology rests on three primary pillars:

1. Hierarchical Distance-$k$ Dominating Sets

A distance-$k$ dominating set is a subset of nodes $D$ such that every node in the graph is within distance $k$ of at least one node in $D$. The algorithm constructs a hierarchy of these sets, starting with a large $k$ (providing a coarse, high-level view of the graph) and progressively moving toward $k=0$ (the original graph).

2. Recursive Pruning and Bounding

Instead of scanning all quadruples in the full graph, the algorithm starts by scanning quadruples in the smallest, coarsest dominating set. Using a series of new technical lemmas, the authors establish upper bounds on the possible hyperbolicity of the nodes "hidden" behind a dominator. If the current best-found value is already higher than the potential value of a dominated group, the algorithm skips that entire branch of the search. This "zoom-in" effect identifies interesting regions of high hyperbolicity and ignores the rest.

3. Hub Labeling

To solve the memory bottleneck, the authors utilize hub labeling (also known as 2-hop labeling). This data structure allows for near-instant distance queries between any two nodes without the need to store a full $n \times n$ distance matrix. This integration is what truly enables the transition to million-node graph processing.

Experimental Results

The algorithm was evaluated on a diverse range of large-scale real-world and synthetic graphs, including web graphs (up to 490k nodes), road networks (up to 1.2M nodes), and 3D meshes.

Key findings include:

  • Unprecedented Scale: The authors computed the hyperbolicity of the California road network (t.CAL) with 1,267,004 nodes—the first time a graph of this size has been processed for this parameter.
  • Massive Speedups: On the web-BerkStan graph, the new approach was 1,104 times faster than the previous state-of-the-art practical algorithm.
  • Dramatic Memory Savings: For the same web-BerkStan graph, memory usage dropped from 76.93 GB to 3.33 GB, a factor of 23 reduction.
  • Efficiency: For many graphs, the algorithm found the exact hyperbolicity in seconds or minutes, whereas previous methods either timed out after 60 hours or crashed due to memory limits.

Discussion and Limitations

Despite its success, the algorithm performs less effectively on grid-like graphs. Previous algorithms utilized a concept called "far-apart pairs" which is highly efficient for grids; the current dominating set approach does not yet incorporate this optimization. Additionally, the algorithm currently requires manual tuning of the initial domination distance $k$ and the reduction ratio $r$.

Future research will focus on automating parameter selection based on graph features and developing hybrid approaches that combine the dominating set hierarchy with "far-apart pair" pruning to create a universal hyperbolicity solver.

Summary updated

BibTeX
@misc{coudert2021hyperbolicity,
  author = {David Coudert and André Nusser and Laurent Viennot},
  title = {{Hyperbolicity Computation through Dominating Sets}},
  year = {2021},
  eprint = {2111.08520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.08520},
}
Figure