Abstract
Shortest path (SP) computation is the fundamental operation in various networks such as urban networks, logistic networks, communication networks, social networks, etc. With the development of technology and societal expansions, those networks tend to be massive. This, in turn, causes deteriorated performance of SP computation, and graph partitioning is commonly leveraged to scale up the SP algorithms. However, the partitioned shortest path (PSP) index has never been systematically investigated and theoretically analyzed, and there is a lack of experimental comparison among different PSP indexes. Moreover, few studies have explored PSP index maintenance in dynamic networks. Therefore, in this paper, we systematically analyze the dynamic PSP index by proposing a universal scheme for it. Specifically, we first propose two novel partitioned shortest path strategies (No-boundary and Post-boundary strategies) to improve the performance of PSP indexes and design the corresponding index maintenance approaches to deal with dynamic scenarios. Then we categorize the partition methods from the perspective of partition structure to facilitate the selection of partition methods in the PSP index. Furthermore, we propose a universal scheme for designing the PSP index by coupling its three dimensions (i.e. PSP strategy, partition structure, and SP algorithm). Based on this scheme, we propose five new PSP indexes with prominent performance in either query or update efficiency. Lastly, extensive experiments are implemented to demonstrate the effectiveness of the proposed PSP scheme, with valuable guidance provided on the PSP index design.
Introduction
Finding the shortest path between two points is a cornerstone of modern digital infrastructure, powering everything from GPS navigation to social network analysis. As networks grow to encompass billions of edges, standard algorithms like Dijkstra’s become computationally infeasible for real-time applications. To address this, researchers often employ Graph Partitioning to decompose massive networks into smaller, manageable subgraphs.
Despite its popularity, the field of Partitioned Shortest Path (PSP) indexes has historically suffered from ad-hoc designs, a lack of theoretical unification, and a primary focus on static networks. This paper addresses these gaps by introducing a "Universal Scheme" for PSP index design, specifically targeting the challenges of dynamic networks where edge weights change frequently.
Methods and the Universal Scheme
The authors deconstruct the PSP index into a three-dimensional design space:
- Shortest Path (SP) Algorithm: The underlying engine, such as Contraction Hierarchies (CH) or Tree Decomposition (TD).
- Partition Method: Categorized by structure into Planar, Core-Periphery, and Hierarchical.
- PSP Strategy: The logic governing how the index is queried and updated.
The fundamental workflow involves partitioning the original graph and constructing an overlay graph to handle inter-partition queries, as illustrated below:
To handle dynamic updates efficiently, the authors introduce two novel strategies:
- No-boundary: This strategy skips the expensive pre-computation of all-pair boundary distances, enabling extremely fast index updates by calculating necessary distances on-the-fly.
- Post-boundary: A balanced approach that repairs partition indexes after updates to maintain high query speeds while remaining significantly faster to maintain than traditional methods.
Key Insights: Structure-Algorithm Fit
A major contribution of this work is the realization that graph topology dictates the optimal indexing strategy. Road networks, which have low "treewidth," perform best with Planar or Hierarchical partitions. Conversely, complex networks like social or web graphs have high treewidth and require Core-Periphery partitioning to remain computationally feasible.
The trade-offs between different indexing approaches are summarized in the conceptual framework below:
Partitioning serves as a crucial middle ground. While it may result in slightly slower query times than monolithic indexes like Hub Labels (HL), it offers significantly lower indexing time and storage overhead, enabling the processing of graphs that would otherwise be too large to index.
Experimental Results
The scheme was evaluated on eight real-life datasets, ranging from New York City road networks to the 65-million-vertex Friendster social graph.
- Update Efficiency: The No-boundary strategy achieved update speeds up to 185x faster for CH-based indexes and 5358x faster for Tree Decomposition-based indexes compared to traditional methods.
- Scalability: On the massive Friendster dataset, only the Core-Periphery "Sketch" method could successfully complete the indexing process, proving that structure-aware partitioning is essential at scale.
- New Benchmarks: The authors developed five new PSP indexes (e.g., N-CH-P, P-PT-CP) that outperformed state-of-the-art methods in specific categories like update efficiency or index size.
Conclusion
This paper provides a systematic framework for designing and maintaining Partitioned Shortest Path indexes. By introducing the Universal Scheme and novel update strategies, the authors provide a roadmap for building scalable, dynamic pathfinding systems. Future work will focus on extending these methods to distributed systems and automating the selection of index parameters using AI.
Summary updated