Enumeration Problems for Regular Path Queries
Wim Martens, Tina Trautner

TL;DR
This paper studies the enumeration of paths matching regular path queries in graphs, analyzing different semantics and their computational complexities, and provides practical insights into feasible cases for common RPQs.
Contribution
It introduces a parameterized complexity analysis for RPQ enumeration, establishing dichotomies for simple and trail path semantics, and highlights practical tractability for most common RPQs.
Findings
Polynomial delay enumeration for arbitrary and shortest paths.
Intractability of simple and trail paths in general, with exceptions in practical cases.
W[1]-hardness of the disjoint paths problem when parameterized by path length.
Abstract
Evaluation of regular path queries (RPQs) is a central problem in graph databases. We investigate the corresponding enumeration problem, that is, given a graph and an RPQ, enumerate all paths in the graph that match the RPQ. We consider several versions of this problem, corresponding to different semantics of RPQs that have recently been considered: arbitrary paths, shortest paths, simple paths, and trails. Whereas arbitrary and shortest paths can be enumerated in polynomial delay, the situation is much more intricate for simple paths and trails. For instance, already the question if a given graph contains a simple path or trail of a certain length has cases with highly non-trivial solutions and cases that are long-standing open problems. In this setting, we study RPQ evaluation from a parameterized complexity perspective. We define a class of simple transitive expressions that is…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
