English

Subgraph Isomorphism: Prolog vs. Conventional

Logic in Computer Science 2026-01-14 v2 Data Structures and Algorithms

Abstract

Subgraph Isomorphism uses a small graph as a pattern to identify within a larger graph a set of vertices that have matching edges. This paper addresses a logic program written in Prolog for a specific relatively complex graph pattern for which multiple conventional implementations (including parallel) exist. The goal is to understand the complexity differences between programming logically and programming conventionally. Discussion includes the process of converting the graph pattern into logic statements in Prolog, and the resulting characteristics as the size of the graph increased. The analysis shows that using a logic paradigm is an efficient way to attack complex graph problems.

Keywords

Cite

@article{arxiv.2511.13600,
  title  = {Subgraph Isomorphism: Prolog vs. Conventional},
  author = {Claire Y. Yin and Peter M. Kogge},
  journal= {arXiv preprint arXiv:2511.13600},
  year   = {2026}
}
R2 v1 2026-07-01T07:41:35.848Z