Tunnels: Compressing the Solution Subgraph of Regular Path Queries
Adri\'an G\'omez-Brand\'on, Gonzalo Navarro
Key points
From the paper's conclusion- We formalize this as \emph{tunnels}: regions of $\Hs$ that are re-expanded from a stored entry point with a bounded amount of extra work, either an absolute budget or one proportional to the output produced.
Abstract
Regular path queries (RPQs) are increasingly expected to return the paths that match them, not only their endpoints. Since the number of matching paths can be exponential or infinite, a standard way to deliver them (PMR) is the subgraph $\Hs$ of the product between the graph and the query automaton that contains exactly the nodes lying on some solution path. We show that $\Hs$ can be compressed much further when the graph is available to the decoder: most of $\Hs$ can be regenerated by re-running small parts of the traversal, and only the places where the traversal would waste significant effort on dead branches need to be stored. We formalize this as \emph{tunnels}: regions of $\Hs$ that are re-expanded from a stored entry point with a bounded amount of extra work, either an absolute budget or one proportional to the output produced. We handle the three classes of RPQs: constant-to-variable, constant-to-constant, and variable-to-variable. In the latter, we study the combination of tunnels with cutting the query at a selective articulation point of the automaton and encoding the answer as a union of Cartesian products of leftward and rightward traversals. Our experimental results show improvements of 2 to 3 orders of magnitude over the baseline space of PMR, for an acceptable increase in traversal time.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Resilience for Regular Path Queries: Towards a Complexity ClassificationACM Transactions on Database Systems · 2026
- H-BRICK: Hierarchical Boundary Reachability Index with Compressed Kleene Closure for Directed Grid GraphsarXiv · 2026
- H-BRICK: Hierarchical Boundary Reachability Index with Compressed Kleene Closure for Directed Grid GraphsMathematics · 2026
- ArcRAG: Agentic Compositional Retrieval over Knowledge GraphsarXiv · 2026
- GraphRAGProv: GraphRAG Meets How-ProvenancearXiv · 2026
- Tree Covers for Directed Graphs: Distance Oracles, Routing Schemes and SpannersarXiv · 2026