Regular Path Query Evaluation Sharing a Reduced Transitive Closure Based on Graph Reduction
Inju Na, Yang-Sae Moon, Ilyeop Yi, Kyu-Young Whang, Soon J. Hyun
Abstract
Regular path queries (RPQs) find pairs of vertices of paths satisfying given regular expressions on an edge-labeled, directed multigraph. When evaluating an RPQ, the evaluation of a Kleene closure (i.e., Kleene plus or Kleene star) is very expensive. Furthermore, when multiple RPQs include a Kleene closure as a common sub-query, repeated evaluations of the common sub-query cause serious performance degradation. In this paper, we present a novel concept of RPQ-based graph reduction, which significantly simplifies the original graph through edge-level and vertex-level reductions. Interestingly, RPQ-based graph reduction can replace the evaluation of the Kleene closure on the large original graph to that of the transitive closure to the small reduced graph. We then propose a reduced transitive closure (RTC) as a lightweight structure for efficiently sharing the result of a Kleene closure. We also present an RPQ evaluation algorithm, RTCSharing, which treats each clause in the disjunctive normal form of the given RPQ as a batch unit. If the batch units include a Kleene closure as a common sub-query, we share the lightweight RTC instead of the heavyweight result of the Kleene closure. RPQ-based graph reduction further enables us to formally represent the result of an RPQ including a Kleene closure as a relational algebra expression including the RTC. Through the formal expression, we optimize the evaluation of the batch unit by eliminating useless and redundant operations of the previous method. Experiments show that RTCSharing improves the performance significantly by up to 73.86 times compared with existing methods in terms of query response time.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 84c6dd4d-02e7-40f1-a40d-f4be413e222cCited by top-tier papers5
- LM-SRPQ: Efficiently Answering Regular Path Query in Streaming GraphsXiangyang Gou, Xinyi Ye, Lei Zou, Jeffrey Xu YuVLDB 2024 · 8 citations
- Integrating Connection Search in Graph QueriesAngelos-Christos G. Anadiotis, Ioana Manolescu, Madhulika MohantyICDE 2023 · 8 citations
- Efficient Regular Simple Path Queries under Transitive Restricted ExpressionsQi Liang, Dian Ouyang, Fan Zhang, Jianye Yang et al.VLDB 2024 · 4 citations
- cuRPQ: A High-Performance GPU-Based Framework for Processing Regular and Conjunctive Regular Path QueriesSungwoo Park, Seohyeon Kim, Min-Soo KimSIGMOD 2026 · 1 citation
- DRPQ: Distributed Evaluation of Regular Path Queries On Streaming GraphsSiyuan Zhang, Kai Zhang, Zhenying He, Yinan Jing et al.SIGMOD 2026
Builds on1
Related papers
- Materialized View Selection & View-Based Query Planning for Regular Path QueriesYue Pang, Lei Zou, Jeffrey Xu Yu, Linglin YangSIGMOD 2024 · 7 citations
- A Reachability Index for Recursive Label-Concatenated Graph QueriesChao Zhang, Angela Bonifati, Hugo Kapp, Vlad Ioan Haprian et al.ICDE 2023 · 7 citations
- MWP: Multi-Window Parallel Evaluation of Regular Path Queries on Streaming GraphsSiyuan Zhang, Zhenying He, Yinan Jing, Kai Zhang et al.SIGMOD 2024 · 2 citations
- Answering Regular Path Queries through ExemplarsKomal Chauhan, Kartik Jain, Sayan Ranu, Srikanta Bedathur et al.VLDB 2022 · 7 citations
- Making Graphs Compact by Lossless ContractionWenfei Fan, Yuanhao Li, Muyang Liu, Can LuSIGMOD 2021 · 14 citations
