Lune

VLDB2023Top-tier venue

Representing Paths in Graph Database Pattern Matching

Wim Martens, Matthias Niewerth, Tina Popp, Carlos Rojas, Stijn Vansummeren, Domagoj Vrgoc

Abstract

Modern graph database query languages such as GQL, SQL/PGQ, and their academic predecessor G-Core promote paths to first-class citizens in the sense that paths that match regular path queries can be returned to the user. This brings a number of challenges in terms of efficiency, caused by the fact that graphs can have a huge amount of paths between a given node pair. We introduce the concept of path multiset representations (PMRs), which can represent multisets of paths in an exponentially succinct manner. After exploring fundamental problems such as minimization and equivalence testing of PMRs, we explore how their use can lead to significant time and space savings when executing query plans. We show that, from a computational complexity point of view, PMRs seem especially well-suited for representing results of regular path queries and extensions thereof involving counting, random sampling, unions, and joins.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. LLMLog: Advanced Log Template Generation via LLM-driven Multi-Round AnnotationFei Teng, Haoyang Li, Lei ChenVLDB 2025 · 2 citations
  2. DRPQ: Distributed Evaluation of Regular Path Queries On Streaming GraphsSiyuan Zhang, Kai Zhang, Zhenying He, Yinan Jing et al.SIGMOD 2026

Builds on1

  1. Optimal Algorithms for Ranked Enumeration of Answers to Full Conjunctive QueriesNikolaos Tziavelis, Deepak Ajwani, Wolfgang Gatterbauer, Mirek Riedewald et al.VLDB 2020 · 45 citations

Related papers

  1. GQL and SQL/PGQ: Theoretical Models and Expressive PowerAmélie Gheerbrant, Leonid Libkin, Liat Peterfreund, Alexandra RogovaVLDB 2025 · 16 citations
  2. A Unified Query Planning Framework for Conjunctive Regular Path QueriesYue Pang, Lei Zou, Angela Bonifati, M. Tamer Özsu et al.VLDB 2026
  3. Efficient Regular Simple Path Queries under Transitive Restricted ExpressionsQi Liang, Dian Ouyang, Fan Zhang, Jianye Yang et al.VLDB 2024 · 4 citations
  4. Language-aware Indexing for Conjunctive Path QueriesYuya Sasaki, George Fletcher, Makoto OnizukaICDE 2022 · 1 citation
  5. Dangers of List Processing in Querying Property GraphsAmélie Gheerbrant, Leonid Libkin, Alexandra RogovaSIGMOD 2025 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines