Single-Source Regular Path Querying in Terms of Linear Algebra
Georgiy Belyanin, Semyon Grigoriev, Rodion Suvorov

TL;DR
This paper introduces a linear algebra-based algorithm for single-source regular path queries, achieving significant speedups on real-world graphs by leveraging high-performance sparse linear algebra libraries.
Contribution
It presents a novel breadth-first-search-based linear algebra algorithm for single-source regular path queries, integrated into LAGraph, with comprehensive performance evaluation.
Findings
Significant speedup over existing methods on real-world data
Effective performance across various query types
Demonstrated scalability on large knowledge bases
Abstract
Two-way regular path queries (2-RPQs) allow one to use regular languages over edges and inverted edges in edge-labelled graph to constrain paths of interest. 2-RPQs are (partially) adopted in different real-world graph analysis systems and have become a part of the GQL ISO standard. However the performance of 2-RPQs on real-world graphs remains a bottleneck for wider adoption. Utilisation of high-performance sparse linear algebra libraries for the algorithm implementation allows one to achieve significant speedup over competitors on real-world data and queries. We propose a new breadth-first-search-based algorithm that leverages linear algebra for evaluating single-source regular path queries. We integrate it into the LAGraph graph processing algorithm infrastructure and provide in-depth performance comparison on the large real-world knowledge bases. Additionally, we present extensive…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Graph Theory and Algorithms · Data Management and Algorithms
