ShareDP: Finding k Disjoint Paths for Multiple Vertex Pairs

Zhiqiu Yuan, Youhuan Li, Lei Zou, Linglin Yang

Abstract

Finding $k$ vertex-disjoint paths (kDP) is a fundamental problem in network reliability and routing. While efficient algorithms exist for single-pair queries, modern network infrastructures frequently require processing thousands of such requests simultaneously. Traditional approaches process these queries independently, leading to significant computational redundancy and high memory overhead due to the need for query-specific graph transformations. This paper introduces ShareDP, a novel framework designed to solve the batch kDP problem by merging individual query structures and sharing search operations. By utilizing a merged split-graph representation and tagged traversals, ShareDP achieves up to 16x speedup over state-of-the-art baselines on massive real-world graphs.

Introduction

In modern network systems, such as ISP backbones and cloud data centers, ensuring connection reliability is paramount. The standard solution is to identify $k$ vertex-disjoint paths between a source and a target, ensuring that no single node failure can sever the connection. However, as network scales grow, the demand for these paths often comes in large batches.

The technical challenge in batching kDP queries lies in the "split-graph" transformation required to enforce vertex constraints. In a standard kDP algorithm, each node is split into "in" and "out" versions to ensure it is only used once. Because each query involves different sources, targets, and previously discovered paths, each query effectively operates on a unique logical graph. Processing these queries one-by-one is computationally expensive and fails to exploit the structural overlap inherent in large-scale networks.

The ShareDP Framework

ShareDP addresses the inefficiencies of independent query processing through two primary innovations: the Merged Split-Graph Representation and Tagged Shared Traversals.

1. Merged Split-Graph Representation

Rather than physically constructing a separate split-graph for every query—which would be memory-prohibitive for large batches—ShareDP employs an implicit, unified structure. The framework tracks the state of each query (e.g., which edges are reversed or which nodes are currently split) using metadata. This allows the algorithm to simulate the union of all individual split-graphs on the fly, representing the necessary transformations without duplicating the underlying graph data.

2. Shared Traversals with Tagged Data

The core of the ShareDP algorithm is a batch bidirectional Breadth-First Search (BFS). During the search expansion, the algorithm does not search for a single query at a time. Instead, it carries a "tag"—a set of query IDs—at each frontier vertex. When multiple queries reach the same node, ShareDP processes them in a single step. This approach "collapses" the search space, transforming thousands of independent searches into a single, coordinated traversal. The algorithm proceeds iteratively: it identifies the first path for all queries in the batch, updates the merged split-graph, and then proceeds to find subsequent paths until the requirement $k$ is met for all pairs.

Experimental Evaluation

The authors evaluated ShareDP across 12 diverse real-world datasets, including social networks (twitter-social, flickr), web graphs (web-google, uk-2005), and infrastructure maps (skitter). These datasets range in scale from 6,300 nodes to over 42 million nodes and 1.5 billion edges.

Key Insights

  • High Redundancy Exploitation: Analysis revealed that in large batches, over 60% of vertex explorations are redundant across queries. In certain search levels, this overlap exceeds 80%. ShareDP successfully captures this wasted computation.
  • Efficiency through Scale: A notable finding is that the average runtime per query decreases as the batch size increases. This demonstrates the effectiveness of the tagged traversal mechanism; as more work is added, the algorithm becomes more efficient at sharing the computational load.
  • Performance and Scalability: ShareDP consistently outperformed traditional maxflow approaches and dissimilarity-based heuristics. On the uk-2005 dataset with $k=10$, ShareDP was approximately 16 times faster than standard methods. Unlike dissimilarity-based methods, which often suffer from factorial complexity and time out on large graphs, ShareDP maintains linear-time complexity relative to graph size.

Conclusion and Future Work

ShareDP represents a significant advancement in batch graph processing, proving that the overhead of vertex-disjoint path finding can be drastically reduced through shared state and traversals. While the current framework focuses on vertex-disjointness in static graphs, future research may extend these techniques to native edge-disjoint optimizations and highly dynamic network environments where topology changes frequently. Additionally, applying the "tagged traversal" logic to related problems, such as finding multiple independent spanning trees, remains a promising avenue for further study.

Summary updated

BibTeX
@inproceedings{yuan2025sharedp,
  author = {Zhiqiu Yuan and Youhuan Li and Lei Zou and Linglin Yang},
  title = {{ShareDP: Finding k Disjoint Paths for Multiple Vertex Pairs}},
  booktitle = {DASFAA},
  year = {2025},
}
Figure