Skip to main content
QUICK REVIEW

[Paper Review] A Geometric Distance Oracle for Large Real-World Graphs

Deepak Ajwani, W. Sean Kennedy|arXiv (Cornell University)|Apr 20, 2014
Complexity and Algorithms in GraphsComputer Science36 references4 citations
TL;DR

This paper proposes a novel geometric distance oracle for large real-world graphs that leverages the hyperbolic core and spanning trees rooted in high-betweenness nodes to enable fast, accurate distance approximation. By prioritizing nodes with high degree and betweenness centrality, the method achieves sub-quadratic preprocessing and query times with significantly lower estimation error than prior tree-based or embedding-based oracles.

ABSTRACT

Many graph processing algorithms require determination of shortest-path distances between arbitrary numbers of node pairs. Since computation of exact distances between all node-pairs of a large graph, e.g., 10M nodes and up, is prohibitively expensive both in computational time and storage space, distance approximation is often used in place of exact computation. In this paper, we present a novel and scalable distance oracle that leverages the hyperbolic core of real-world large graphs for fast and scalable distance approximation. We show empirically that the proposed oracle significantly outperforms prior oracles on a random set of test cases drawn from public domain graph libraries. There are two sets of prior work against which we benchmark our approach. The first set, which often outperforms other oracles, employs embedding of the graph into low dimensional Euclidean spaces with carefully constructed hyperbolic distances, but provides no guarantees on the distance estimation error. The second set leverages Gromov-type tree contraction of the graph with the additive error guaranteed not to exceed $2δ\log{n}$, where $δ$ is the hyperbolic constant of the graph. We show that our proposed oracle 1) is significantly faster than those oracles that use hyperbolic embedding (first set) with similar approximation error and, perhaps surprisingly, 2) exhibits substantially lower average estimation error compared to Gromov-like tree contractions (second set). We substantiate our claims through numerical computations on a collection of a dozen real world networks and synthetic test cases from multiple domains, ranging in size from 10s of thousand to 10s of millions of nodes.

Motivation & Objective

  • To address the computational and storage bottleneck of exact shortest-path distance computation in large-scale graphs with up to millions of nodes.
  • To develop a distance oracle that balances low preprocessing cost, minimal storage, fast query response, and high fidelity in distance estimation.
  • To bridge the gap between theoretically grounded tree approximations and empirically accurate heuristic oracles by exploiting the hyperbolic structure of real-world graphs.
  • To demonstrate that spanning trees rooted in the hyperbolic core yield superior approximation accuracy compared to existing methods, even without explicit hyperbolic embedding or Gromov-type labeling.

Proposed method

  • The method constructs a breadth-first search (BFS) spanning tree prioritized by nodal betweenness centrality, approximated via node degree, to target the hyperbolic core of the graph.
  • It uses the intrinsic hyperbolicity of real-world graphs—where a fixed fraction of shortest paths traverse a small core set of nodes—to ensure that most distances are preserved exactly in the tree.
  • The tree height is bounded by O(log n), enabling distance queries in O(log n) time using O(n log n) bits of storage to encode path lengths.
  • The approach avoids hyperbolic embedding and Gromov-type tree contraction, instead relying on a geometric intuition rooted in negative curvature and core-based tree approximation.
  • It combines multiple BFS trees from diverse high-centrality seeds and Gromov trees to tighten the approximation range, using min/max bounds to refine estimates.
  • The oracle supports O(log n) query time and O(n log n) preprocessing time, making it scalable for dynamic graphs.

Experimental results

Research questions

  • RQ1Can a distance oracle based on spanning trees rooted in the hyperbolic core of real-world graphs achieve both low preprocessing cost and high accuracy?
  • RQ2How does the approximation error of a core-rooted BFS tree compare to that of hyperbolic embedding or Gromov-type tree contractions in real-world graphs?
  • RQ3To what extent does using node degree as a proxy for betweenness centrality improve the robustness and accuracy of tree-based distance oracles?
  • RQ4Can combining multiple BFS trees and Gromov trees yield a tighter approximation range with minimal overhead?
  • RQ5Does the geometric structure of δ-hyperbolic graphs inherently support better distance approximation than heuristic or embedding-based methods?

Key findings

  • The proposed oracle significantly outperforms hyperbolic embedding-based oracles in both speed and approximation error, despite similar error levels.
  • It achieves substantially lower average estimation error than Gromov-type tree contractions, even though the latter guarantees a theoretical additive error bound of 2δ log n.
  • On real-world graphs ranging from tens of thousands to tens of millions of nodes, the method achieves fast O(log n) query times with O(n log n) preprocessing and storage.
  • Using just 10 Hyper-BFS trees and 20 Gromov trees, the approximation range width is drastically reduced, as shown on the SantaBarbara Facebook graph.
  • The method is highly efficient for dynamic graphs due to low preprocessing cost, outperforming oracles like Rigel in update frequency scenarios.
  • The success of the method is empirically linked to the hyperbolic core and the strong correlation between node degree and betweenness centrality in real-world networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.