Efficient shortest paths on massive social graphs

Xiaohan Zhao, Alessandra Sala, Haitao Zheng, Ben Y. Zhao

Introduction

In the era of massive social networks like Facebook and Twitter, traditional graph algorithms face significant scalability challenges. Finding the shortest path between two users in a graph with 40 million nodes and a billion edges using standard Breadth-First Search (BFS) can take a minute or more. This latency is prohibitive for real-time applications such as social search, "people you may know" recommendations, and community detection, which require thousands of queries per second.

Rigel addresses this by functioning as a "graph coordinate system" (GCS). It maps massive social networks into a hyperbolic space, enabling near-instant distance and shortest-path queries. By leveraging hyperbolic geometry and a highly parallelizable embedding process, Rigel achieves significantly higher accuracy and speed than previous Euclidean or sketch-based approaches.

Conceptual overview of graph embedding into a coordinate system where graph distances are approximated by coordinate distances.

Methods

Rigel is built upon three key pillars:

1. Hyperbolic Embedding

Unlike previous systems that mapped nodes into "flat" Euclidean space, Rigel embeds the graph into a hyperbolic space (specifically the Hyperboloid model). Social networks typically exhibit a "small-world" topology with a hierarchical structure and power-law degree distribution. Hyperbolic geometry is naturally "roomier" at its edges, which better captures these structural properties, reducing distance distortion by approximately 30% compared to Euclidean models.

2. Parallelized Bootstrapping

Embedding a graph with tens of millions of nodes is computationally intensive. Rigel employs a landmark-based approach: it selects a small set of high-degree nodes as "landmarks," computes their exact distances via BFS, and uses them as anchors for the rest of the graph. The authors developed Parallel Rigel, which distributes the bootstrapping and coordinate optimization across a compute cluster. This parallelization reduces the embedding time for a 43-million-node graph from 10 days to just 9 hours.

3. Rigel Paths

Most coordinate systems only provide a distance estimate. Rigel introduces a heuristic to reconstruct the actual sequence of nodes in a path. It uses coordinates as a directional guide: starting from node A, the system examines neighbors and moves toward the one whose coordinates are closest to the destination B in hyperbolic space.

Key Results

The researchers evaluated Rigel on seven diverse social graph datasets, including Facebook regional networks and massive platforms like Renren (43.2M nodes, 1B edges).

Accuracy and Speed

Rigel answers distance queries in 10–30 microseconds, five orders of magnitude faster than traditional BFS. As shown in Figure 4, Rigel consistently outperforms Euclidean systems like Orion in accuracy across various path lengths on Facebook datasets.

Comparison of average absolute error between Rigel (hyperbolic) and Orion (Euclidean) systems across different path lengths.

Pathfinding Efficiency

When finding actual paths, Rigel is 3 to 18 times faster than state-of-the-art sketch-based systems while maintaining comparable or superior accuracy. In social search tasks, Rigel achieved 70% accuracy in ranking top results, whereas Euclidean systems managed only 40%.

Scalability

The system successfully processed the 43M-node Renren graph, demonstrating its capability to scale to the size of modern, real-world social platforms.

Conclusion

Rigel demonstrates that the geometry of the embedding space is crucial for modeling social networks. By aligning the "core-and-fringe" structure of these graphs with the curvature of hyperbolic space, Rigel provides a highly efficient and accurate solution for navigating massive social graphs at scale.

Summary updated

BibTeX
@inproceedings{zhao2011efficient,
  author = {Xiaohan Zhao and Alessandra Sala and Haitao Zheng and Ben Y. Zhao},
  title = {{Efficient shortest paths on massive social graphs}},
  booktitle = {CollaborateCom},
  year = {2011},
  doi = {10.4108/icst.collaboratecom.2011.247162},
}
Figure