arXiv:2610.33235cs.DMOct 2026

Manuscript Offprint

arXiv:2610.33235

Subgraph Isomorphism, Integer Linear Programming, and Lattices: A Linear Algebraic Framework

Bryant Gipson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The subgraph isomorphism problem (SGI) asks a deceptively simple question: is a graph B found inside a parent graph A? Famously NP-complete and the subject of volumes of study, attempts to practically solve subgraph problems typically require specialized software or the focused application of problem-specific theoretical knowledge. Here we present a straightforward linear framework that neatly joins SGI to lattice theory and constrained satisfiability and, importantly, yields an easily implemented algorithm that naturally leverages consumer-grade hardware and off-the-shelf libraries to compete with state-of-the-art specialized solvers. We additionally show practical realizations in approachable settings, along with some benchmarks that reduce 6+ hour computations to seconds. Aimed at readability, we develop a series of computable algebraic invariants and demonstrate their application to familiar problems such as the Knight's Tour, with a focus on providing an accessible entry point for researchers in graph theory, abstract algebra, and students in general.

1 Introduction

The subgraph isomorphism (SGI) problem asks an apparently simple question: when is one graph contained inside another? Framed another way, given a pattern graph GBG_B on MM vertices and a target graph GAG_A on N≥MN \geq M vertices, how hard is it to find a copy of GBG_B inside GAG_A—or prove that no such copy exists? Easy to state, subgraph isomorphism is famously NP-complete [1], generalizing both the graph isomorphism problem [2–4] and the Hamiltonian cycle problem, with direct relevance to chemical informatics, circuit layout, computer vision, and network analysis.

While both general and constrained versions of this problem have been extensively studied using deep insights from combinatorics, backtracking search (Ullmann [5], VF2 [6], RI [7], VF3 [8], FASTiso [9]), constraint programming and cutting planes (LAD [10], Glasgow [11–13]), and database indexing (TurboISO [14], DAF [15]), these algorithmic paradigms are typically developed separately from the spectral and Smith normal form (SNF) invariants of algebraic graph theory [16–20]—which, conversely, have historically been restricted to square (M=N)(M = N) graph isomorphism and cospectrality.

This paper bridges these two worlds through the lens of linear algebra, integer linear programming (ILP), and lattice theory. By treating the rectangular matrix commutator PA−BPPA - BP as a global linear operator rather than a collection of decoupled Boolean clauses, we:

  1. unify square graph isomorphism ( M=NM = N) and rectangular subgraph isomorphism ( M≤NM \leq N, both induced and non-induced) in a single MN-variable Kronecker operator framework (Section 2) that naturally exploits modern multi-core CP-SAT and ILP solvers (Sections 6–7);

  2. construct an explicit unimodular cycle basis L for the doubly-stochastic lattice that connects the commutator kernel directly to generalized cospectrality and affine lattice norm minimization (Sections 3–4.3); and

  3. introduce a projection of the rectangular commutator onto the (M−1)(N−1)(M-1)(N-1)-dimensional zero-sum difference lattice LM,N(0)\mathcal{L}_{M,N}^{(0)} that eliminates unmatched vertex asymmetries and boundary edges, yielding a new Subgraph SNF Interlacing Theorem (Theorem 7) and polynomial-time refutation certificates for Kuratowski obstructions, longest cycles, and Knight's Tours (Sections 4.4–5).

Aimed at approachability, the goal is to show how the classical linear commutator of graph isomorphism extends directly to rectangular subgraph isomorphism, offering a clean set of algebraic and computational in-roads to the problem with as simple a presentation as possible.

References (37)