English

From Primes to Paths: Enabling Fast Multi-Relational Graph Analysis

Machine Learning 2024-11-19 v1 Social and Information Networks

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 offering improved speed and interpretability.

Keywords

Cite

@article{arxiv.2411.11149,
  title  = {From Primes to Paths: Enabling Fast Multi-Relational Graph Analysis},
  author = {Konstantinos Bougiatiotis and Georgios Paliouras},
  journal= {arXiv preprint arXiv:2411.11149},
  year   = {2024}
}

Comments

35 pages: 28 main, 7 appendix; 6 figures. Submitted to ECML PKDD 2025 Journal Track for Data Mining and Knowledge Discovery. For the code accompanying the paper see http://github.com/kbogas/PAM_BoP . For a demo app on relation prediction on HetioNet using BoP representations see http://143.233.226.63:5000

R2 v1 2026-06-28T20:02:52.295Z