From primes to paths: Enabling fast multi-relational graph analysis

Multi-relational networks capture intricate relationships in data and have diverse applications across fields such as biomedical, financial, and social sciences. As networks derived from increasingly large datasets become more common, identifying efficient methods for representing and analyzing them becomes crucial. This work extends the Prime Adjacency Matrices (PAMs) framework, which employs prime numbers to represent distinct relations within a network uniquely. This enables a compact representation of a complete multi-relational graph using a single adjacency matrix, which, in turn, facilitates quick computation of multi-hop adjacency matrices. In this work, we enhance the framework by introducing a lossless algorithm for calculating the multi-hop matrices and propose the Bag of Paths (BoP) representation, a versatile feature extraction methodology for various graph analytics tasks, at the node, edge, and graph level. We demonstrate the efficiency of the framework across various tasks and datasets, showing that simple BoP-based models perform comparably to or better than commonly used neural models while improving speed by orders of magnitude.

Authors

Institutions

Publication Details

Journal
Data & Knowledge Engineering
Published
2026-01-07
DOI
https://doi.org/10.1016/j.datak.2026.102554
Primary Topic
Advanced Graph Neural Networks
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

From primes to paths: Enabling fast multi-relational graph analysis

Γεώργιος Παλιούρας, Konstantinos Bougiatiotis
Data & Knowledge Engineering
Advanced Graph Neural Networks
article

From primes to paths: Enabling fast multi-relational graph analysis

Γεώργιος Παλιούρας, Konstantinos Bougiatiotis
article en

Abstract

Multi-relational networks capture intricate relationships in data and have diverse applications across fields such as biomedical, financial, and social sciences. As networks derived from increasingly large datasets become more common, identifying efficient methods for representing and analyzing them becomes crucial. This work extends the Prime Adjacency Matrices (PAMs) framework, which employs prime numbers to represent distinct relations within a network uniquely. This enables a compact representation of a complete multi-relational graph using a single adjacency matrix, which, in turn, facilitates quick computation of multi-hop adjacency matrices. In this work, we enhance the framework by introducing a lossless algorithm for calculating the multi-hop matrices and propose the Bag of Paths (BoP) representation, a versatile feature extraction methodology for various graph analytics tasks, at the node, edge, and graph level. We demonstrate the efficiency of the framework across various tasks and datasets, showing that simple BoP-based models perform comparably to or better than commonly used neural models while improving speed by orders of magnitude.

Data & Knowledge EngineeringVol. 163
National Centre of Scientific Research "Demokritos" (GR), Institute of Informatics of the Slovak Academy of Sciences (SK)
Decent work and economic growth
Openalex Percentile: Top 96%
Advanced Graph Neural Networks
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

From primes to paths: Enabling fast multi-relational graph analysis — Γεώργιος Παλιούρας, Konstantinos Bougiatiotis · Data & Knowledge Engineering (2026) | TGRS Research Map | TGRS