PathEnum: Towards Real-Time Hop-Constrained s-t Path Enumeration

Shixuan Sun, Yuhang Chen, Bingsheng He, Bryan Hooi
3/20/2021
cs.DB

Official code: Xtra-Computing/PathEnum (17 stars, C++, MIT, last commit 2021-03-23).

Abstract

We study the hop-constrained s-t path enumeration (HcPE) problem, which takes a graph $G$, two distinct vertices $s,t$ and a hop constraint $k$ as input, and outputs all paths from $s$ to $t$ whose length is at most $k$. The state-of-the-art algorithms suffer from severe performance issues caused by the costly pruning operations during enumeration for the workloads with the large search space.

Show full abstract

Consequently, these algorithms hardly meet the real-time constraints of many online applications. In this paper, we propose PathEnum, an efficient index-based algorithm towards real-time HcPE. For an input query, PathEnum first builds a light-weight index aiming to reduce the number of edges involved in the enumeration, and develops efficient index-based approaches for enumeration, one based on depth-first search and the other based on joins. We further develop a query optimizer based on a join-based cost model to optimize the search order. We conduct experiments with 15 real-world graphs. Our experiment results show that PathEnum outperforms the state-of-the-art approaches by orders of magnitude in terms of the query time, throughput and response time.

View on arXivView PDF

Code Implementations(1)

MIT

Source code of "PathEnum: Towards Real-Time Hop-Constrained s-t Path Enumeration", published in SIGMOD'2021 - By Shixuan Sun, Yuhang Chen, Bingsheng He, and Bryan Hooi

173C++, CMar 19, 20215 years agoMIT

Similar Papers

Cite this paper

@article{sun2021pathenum,
  title  = {PathEnum: Towards Real-Time Hop-Constrained s-t Path Enumeration},
  author = {Shixuan Sun and Yuhang Chen and Bingsheng He and Bryan Hooi},
  year   = {2021},
  eprint = {2103.11137},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.11137}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.11137.svg)](https://codeofpaper.com/paper/2103.11137)

Discussion