Introduction
Shortest path search (SPS) is a cornerstone of graph analysis, with applications ranging from network routing and social network analysis to biological modeling. While classical algorithms like Dijkstra’s and A* provide exact solutions, they often struggle with scalability in massive graphs. Conversely, modern learning-based approaches offer significant speedups but frequently rely on domain-specific spatial features (e.g., GPS coordinates), limiting their utility for generic, non-spatial graphs like web topologies or gene networks.
This paper introduces a novel, versatile framework that bridges this gap. By constructing a "skeleton graph" to capture multi-level topological information, the authors enable a Skeleton Graph Neural Network (SGNN) to predict path distances and hop lengths accurately. These predictions guide a specialized search algorithm, achieving high speed and near-perfect accuracy on any generic graph.
Methodology
The proposed framework consists of four primary components: skeleton graph construction, the SGNN architecture, multi-task prediction, and the search algorithms (LSearch and HLSearch).
Skeleton Graph Construction
To help neural networks understand complex topologies without deep, over-smoothed layers, the authors introduce the Skeleton Graph. For each node, reachable vertices are grouped into multi-tier "hop buckets" that scale exponentially (e.g., 1-hop, 3-hops, 9-hops).
This structure allows the model to represent both local and distant relationships compactly. By linking these buckets, the skeleton graph provides a shortcut for message passing across long topological distances.
Skeleton Graph Neural Network (SGNN) and Multi-Task Prediction
Standard Graph Neural Networks (GNNs) often fail to capture long-range dependencies due to over-smoothing. SGNN addresses this by performing message passing directly on the skeleton graph. This allows the network to aggregate information from distant nodes in fewer steps. The resulting node embeddings are processed by a Multi-Task Prediction (MTP) module, which jointly estimates both the shortest distance and the hop length (number of edges) between node pairs.
Search Algorithms: LSearch and HLSearch
The framework utilizes two search strategies:
- LSearch: An A*-like algorithm that uses SGNN predictions to prune unpromising paths via a "Vertex Skip" strategy. To maintain accuracy, an "Early Stage Protection" heuristic prevents premature pruning of potentially optimal paths.
- HLSearch: Designed for massive graphs, HLSearch employs a divide-and-conquer approach. It partitions the graph, trains localized SGNNs, and uses a hierarchical index to coordinate searches across partitions.
Experimental Evaluation
Datasets
The framework was evaluated on five diverse real-world datasets to prove its generality across both spatial and non-spatial domains:
- Brain: A brain neuronetwork (503 vertices).
- Bio: Gene functional associations (1,999 vertices).
- Web: Web page links (4,253 vertices).
- Power: US Western States Power Grid topology (4,941 vertices).
- Road-NA: North America road network (175,813 vertices).
Key Results
- Accuracy: SGNN consistently outperformed baselines like Node2Vec. On the Brain dataset, it achieved a Mean Absolute Percentage Error (MAPE) of 6.13%, significantly better than standard GNNs (10.20%).
- Efficiency: LSearch demonstrated remarkable speedups. On the Power dataset, it was over 10x faster than Dijkstra’s algorithm (22ms vs. 280ms) while maintaining a ~99% distance accuracy.
- Scalability: On the large-scale Road-NA dataset, HLSearch maintained high hit rates (>80%) and near 100% distance accuracy, outperforming Dijkstra in both query time and memory efficiency for long-distance queries.
Conclusion and Future Work
The skeleton-guided learning framework provides a scalable and generalizable solution for SPS on generic graphs. By leveraging multi-tier topological information, it overcomes the limitations of traditional GNNs and spatial-dependent models. Future research will focus on adapting the framework for dynamic graphs where edges and weights change over time, and establishing formal theoretical error bounds for learned search heuristics.
Summary updated