Single-Source Regular Path Querying in Terms of Linear Algebra

Georgiy Belyanin,Semyon Grigoriev
2024-12-14
Abstract:A given edge-labelled graph two-way regular path queries (2-RPQs) allow one to use regular languages over labelled edges and inverted edges to constraint paths of interest. 2-RPQs are (partially) adopted in different real-world graph analysis systems and are a part of the GQL ISO standard. But the performance of 2-RPQs on real-world graphs is still a bottleneck for wider adoption. A new single-source 2-RPQ algorithm based on linear algebra is proposed. Utilization 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. Our implementation demonstrates better performance on average on Wikidata and the respective query log in comparison with MillenniumDB, FalkorDB, and the algorithm of Diego Arroyuelo et al.
Data Structures and Algorithms
What problem does this paper attempt to address?