Enumeration Problems for Regular Path Queries

10/06/2017
by   Wim Martens, et al.
0

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 prominent in practice and for which we can prove two dichotomy-like results: one for simple paths and one for trails paths. We observe that, even though simple path semantics and trail semantics are intractable for RPQs in general, they are feasible for the vast majority of the kinds of RPQs that users use in practice. At the heart of this study is a result of independent interest on the parameterized complexity of finding disjoint paths in graphs: the two disjoint paths problem is W[1]-hard if parameterized by the length of one of the two paths.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/15/2023

Long Directed Detours: Reduction to 2-Disjoint Paths

We study an "above guarantee" version of the Longest Path problem in dir...
research
03/01/2019

A Trichotomy for Regular Trail Queries

Regular path queries (RPQs) are an essential component of graph query la...
research
04/23/2022

Evaluating regular path queries under the all-shortest paths semantics

The purpose of this report is to explain how the textbook breadth-first ...
research
06/03/2023

Evaluating Regular Path Queries in GQL and SQL/PGQ: How Far Can The Classical Algorithms Take Us?

We tackle the problem of answering regular path queries over graph datab...
research
10/12/2017

Querying Best Paths in Graph Databases

Querying graph databases has recently received much attention. We propos...
research
05/03/2019

Most vital segment barriers

We study continuous analogues of "vitality" for discrete network flows/p...
research
02/11/2020

Modular Path Queries with Arithmetic

We propose a new approach to querying graph databases. Our approach bala...

Please sign up or login with your details

Forgot password? Click here to reset