Subgraph Isomorphism: Prolog vs. Conventional

📅 2025-11-17
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the NP-hard subgraph isomorphism problem, comparing the efficiency of Prolog-based logic programming against conventional (including parallel) algorithms for complex pattern matching in large-scale graphs. We formalize graph patterns as first-order logic rules and automatically compile them into Prolog predicates, leveraging Prolog’s declarative modeling, backtracking search, and constraint propagation capabilities. Experimental evaluation demonstrates that, on high-branching, multi-constrained subgraph matching tasks, the Prolog implementation maintains stable performance scalability with increasing graph size—outperforming several mainstream explicit algorithms by 1.3–2.1× on average—while significantly reducing code complexity. These results validate the effectiveness and scalability of the logic programming paradigm for structured graph search tasks, offering a novel, declarative approach to complex graph analysis.

Technology Category

Knowledge Representation and Reasoning: Logic ProgrammingMachine Learning: Graph-based Machine LearningSearch and Optimization: Combinatorial Optimization

Application Category

Graph Algorithms and Modeling for the Web: Representation, reconstruction, and subgraph or motif discovery in Web-related graphsSemantics and Knowledge: Scalable techniques for the creation, curation, publication, maintenance, and consumption of large, Web-based, structured, reusable, knowledge graphs and ontologiesSearch and Retrieval-Augmented AI: Efficiency and scalability of Web search engines
📝 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.
Problem

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

Compares Prolog logic programming with conventional subgraph isomorphism implementations
Analyzes complexity differences between logical and conventional programming approaches
Evaluates efficiency of logic paradigm for solving complex graph pattern problems
Innovation

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

Prolog logic program for subgraph isomorphism
Converts graph patterns into logic statements
Logic paradigm efficiently solves complex graph problems
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
C
Claire Y. Yin
Computer Science and Engineering, University of Notre Dame, Notre Dame, IN USA 46556
P
Peter M. Kogge
Computer Science and Engineering, University of Notre Dame, Notre Dame, IN USA 46556