Algorithm Support for Graph Databases, Done Right

📅 2026-01-10
🏛️ arXiv.org
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of efficiently expressing complex graph algorithms such as PageRank in existing graph query languages, which struggle to balance expressiveness, performance, and usability. To bridge this gap, we propose GraphAlg, a linear algebra–based domain-specific language for graph algorithms that uniquely integrates intuitive matrix operations with relational algebra and compiles seamlessly into standard query processing pipelines. GraphAlg introduces aggressive optimizations—including sparsity-aware analysis, loop-invariant code motion, and in-place aggregation—implemented within the AvantGraph system. Experimental evaluation demonstrates that GraphAlg substantially reduces code complexity compared to SQL/Python and Pregel implementations while achieving superior performance on the LDBC Graphalytics benchmark suite.

Technology Category

Application Category

📝 Abstract
Graph database query languages cannot express algorithms like PageRank, forcing costly data wrangling, while existing solutions such as algorithm libraries, vertex-centric APIs, and recursive CTEs lack the necessary combination of expressiveness, performance, and usability. We present GraphAlg: a domain-specific language for graph algorithms that compiles to relational algebra, enabling seamless integration with query processing pipelines. Built on linear algebra foundations, GraphAlg provides intuitive matrix operations that are amenable to aggressive optimization including sparsity analysis, loop-invariant code motion, and in-place aggregation. Our implementation in AvantGraph demonstrates significant code complexity reduction compared to SQL/Python and Pregel while achieving excellent performance on LDBC Graphalytics benchmarks. GraphAlg establishes that graph databases can serve as unified platforms for both queries and analytics.
Problem

Research questions and friction points this paper is trying to address.

graph databases
graph algorithms
query languages
expressiveness
usability
Innovation

Methods, ideas, or system contributions that make the work stand out.

GraphAlg
graph algorithms
relational algebra compilation
linear algebra
query optimization
🔎 Similar Papers
No similar papers found.
D
Daan de Graaf
Eindhoven University of Technology, Eindhoven, Netherlands
R
R. Brijder
Eindhoven University of Technology, Eindhoven, Netherlands
Soham Chakraborty
Soham Chakraborty
Student, Indian Institute of Technology, Kharagpur
mmWave sensingPrivacyEavesdropping
G
George H. L. Fletcher
Eindhoven University of Technology, Eindhoven, Netherlands
B
Bram Van De Wall
Eindhoven University of Technology, Eindhoven, Netherlands
N
N. Yakovets
Eindhoven University of Technology, Eindhoven, Netherlands