PathFinder: Returning Paths in Graph Queries

Farías, B; Martens W.; Rojas, C.; Vrgoc, D

Abstract

Path queries are a central feature of all modern graph query languages and standards, such as SPARQL, Cypher, SQL/PGQ, and GQL. While SPARQL returns endpoints of path queries, it is possible in Cypher, SQL/PGQ, and GQL to return entire paths. In this paper, we present the first framework for returning paths that match regular path queries under all fifteen modes in the SQL/PGQ and GQL standards. At the core of our approach is the product graph construction combined with a way to compactly represent a potentially exponential number of results that can match a path query. Throughout the paper we describe how this approach operates on a conceptual level and provide runtime guarantees for evaluating path queries. We also develop a reference implementation on top of an existing open-source graph processing engine, and perform a detailed analysis of path querying over Wikidata to gauge the usefulness of our methods in a real world scenario. Compared to several modern graph engines, we obtain order-of-magnitude speedups and remarkably stable performance, even for theoretically intractable queries. © The Author(s), under exclusive license to Springer Nature Switzerland AG 2025.

Más información

Título según WOS: PathFinder: Returning Paths in Graph Queries
Título de la Revista: Lecture Notes in Computer Science
Volumen: 15232 LNCS
Editorial: Springer Science and Business Media Deutschland GmbH
Fecha de publicación: 2025
Página de inicio: 135
Página final: 154
Idioma: English
DOI:

10.1007/978-3-031-77850-6_8

Notas: ISI