Abstract
Graph analysis is a critical component of applications such as online social networks, protein interactions in biological networks, and Internet traffic analysis. The arrival of massive graphs with hundreds of millions of nodes presents a unique challenge to graph analysis applications. Most of these applications rely on computing distances between node pairs, which for large graphs can take minutes to compute using traditional algorithms such as breadth-first-search (BFS). In this paper, we study ways to enable scalable graph processing on today's massive graphs. We explore the design space of graph coordinate systems, a new approach that accurately approximates node distances in constant time by embedding graphs into coordinate spaces. We show that a hyperbolic embedding produces relatively low distortion error, and propose Rigel, a hyperbolic graph coordinate system that lends itself to efficient parallelization across a compute cluster. Rigel produces significantly more accurate results than prior systems and is naturally parallelizable, allowing it to provide accurate results for graphs up to 43 million nodes. Finally, we show that Rigel's functionality can be easily extended to locate (near-) shortest paths between node pairs. After a one-time preprocessing cost, Rigel answers node-distance queries in 10's of microseconds, and also produces shortest path results up to 18 times faster than prior shortest-path systems with similar levels of accuracy.
Introduction
Many critical graph analysis tasks—such as calculating user centrality, detecting communities, or powering social searches—rely on a fundamental primitive: the shortest path distance between two nodes. On modern massive graphs, traditional algorithms like Breadth-First Search (BFS) or Dijkstra’s algorithm are too slow, often taking minutes to resolve a single query.
Previous attempts to solve this used "Graph Coordinate Systems" (GCS), which map nodes to points in a geometric space so that distance can be calculated in constant time ($O(1)$). However, these earlier systems suffered from high error rates (15-20%), lacked parallelization, and could only estimate the length of a path, not provide the actual sequence of nodes.
Methods
The authors introduce Rigel, which improves upon previous GCS designs in several major ways:
- Hyperbolic Embedding: Unlike Euclidean space, hyperbolic space (specifically the Hyperboloid model) has a "tightly connected core." This geometry naturally mirrors the structure of social networks, where a few highly connected hubs link disparate communities.
- Landmark-Based Bootstrapping: To compute coordinates, Rigel selects a small set of high-degree "landmark" nodes. It calculates the true BFS distance from these landmarks to all other nodes. It then uses the Simplex method to find coordinates for every node such that their geometric distance in hyperbolic space closely matches these known BFS distances.
- Parallel Rigel: The embedding process is computationally expensive. The authors developed a distributed version that parallelizes the BFS landmark calculations and the coordinate optimization across a cluster of servers.
- Rigel Paths: To find the actual path, the authors propose a heuristic search. Starting from node A, Rigel uses the coordinate system as a "compass" to evaluate which neighbor is geometrically closest to the destination node B, iteratively building a near-shortest path.
Datasets
The authors evaluated Rigel using seven anonymized social graph datasets, including Facebook regional networks (Egypt, Norway, LA), large-scale OSNs (Flickr, Orkut, LiveJournal), and Renren, a massive snapshot of the Chinese social network containing 43.2 million nodes and over 1 billion edges.
Key Insights and Results
- Geometry is Destiny: The choice of coordinate space matters immensely. Social networks are essentially "curved" in a way that Euclidean geometry cannot capture. Moving to hyperbolic space reduced distance estimation errors by 30% compared to Euclidean systems.
- Local Knowledge Fixes Global Errors: GCS typically struggle with very close nodes (1-2 hops away). Rigel fixes this by augmenting the coordinate system with a quick look-up of local adjacency lists, effectively eliminating errors for nearby node pairs.
- Accuracy and Speed: Rigel's average relative error is roughly 0.1 (10%), a significant improvement over the 15-20% seen in prior work. Once embedded, Rigel answers distance queries in 10–30 microseconds.
- Scalability: Using a cluster of 50 machines, the authors embedded the 43M-node Renren graph in about 9 hours. A single-machine approach would have taken over 10 days.
- Coordinates as a Compass: Using $O(1)$ distance estimates to guide a path-finding heuristic makes path-finding 3x to 18x faster than previous state-of-the-art "Sketch" based algorithms.
Limitations and Future Work
While Rigel provides a powerful tool for massive graph analysis, challenges remain. The evaluation focuses on static snapshots; in dynamic networks where edges change constantly, the cost of coordinate maintenance is a factor. Additionally, Rigel Paths provides "near-shortest" paths without a mathematical guarantee of absolute optimality. Finally, while parallelized, the system requires a significant one-time preprocessing investment before it can answer queries.
Summary updated