Papers
Topics
Authors
Recent
2000 character limit reached

Graph Isomorphism Problem

Updated 20 November 2025
  • Graph isomorphism is the challenge of determining whether two graphs can be perfectly mapped via a vertex bijection that preserves edge connectivity.
  • Diverse algorithmic paradigms—including combinatorial, group-theoretic, spectral, and quantum approaches—offer distinct insights but face challenges with highly symmetric graphs.
  • Recent advances such as Babai’s quasi-polynomial algorithm and emerging quantum methods are reshaping practical solutions and theoretical understanding of the problem.

The graph isomorphism problem (GI) is the algorithmic question of determining whether there exists a bijection between the vertex sets of two given graphs that preserves adjacency. This problem occupies a unique complexity-theoretic intermediate position: although it lies in NP, it is not known to be either NP-complete or solvable in polynomial time for all general graphs. Graph isomorphism has achieved particular prominence due to its role in combinatorics, theoretical computer science, quantum computation, group theory, and numerous practical domains spanning chemistry to social network analysis. Over decades, diverse algorithmic paradigms—combinatorial, group-theoretic, spectral, optimization-based, and quantum—have been developed, each bringing fundamentally distinct insights and partial breakthroughs to the structural theory and practical solvability of GI.

1. Formal Problem Statement and Mathematical Framework

Given two simple undirected graphs G=(V,E)G=(V,E) and H=(U,F)H=(U,F), with V=U=n|V| = |U| = n, the graphs are isomorphic (denoted GHG \cong H) if there exists a bijection f:VUf: V \rightarrow U such that

{v,w}E    {f(v),f(w)}Fv,wV.\{v, w\} \in E \iff \{f(v), f(w)\} \in F \quad \forall\, v, w \in V.

Equivalently, for their adjacency matrices AG,AHRn×nA_G, A_H \in \mathbb{R}^{n \times n}, we have AH=PAGPA_H = P A_G P^\top for some permutation matrix PP. Thus, testing isomorphism is tantamount to checking whether AGA_G and AHA_H are permutation-similar. This permutation-matrix formulation underpins most optimization, spectral, and algebraic approaches (Klus et al., 2023, Takapoui et al., 2016, Farhadian, 2018, Klus et al., 2014).

2. Combinatorial and Group-Theoretic Algorithms

Classical combinatorial algorithms often operate via vertex and edge invariants, canonical labeling, or refinement of colorings (partitions) on the vertex set. The Weisfeiler–Lehman (WL) color refinement hierarchy is the central technique here: the dd-dimensional WL algorithm successively refines colorings of dd-tuples, with power increasing in dd, but does not solve the general problem due to known indistinguishable (CFI) counterexamples (Derksen, 2010).

Group-theoretic methods, notably the Babai–Luks framework, leverage permutation group decomposition, composition series, and setwise stabilizer computations, with sub-exponential worst-case time 2O(nlogn)2^{O(\sqrt{n \log n})} for bounded-degree graphs, and Babai’s 2016 quasi-polynomial breakthrough for general graphs (Derksen, 2010, Neuen, 2016). For unit square graphs, a reduction to bounded-degree quotients and Luks-style recursion yields polynomial time despite NP-hardness of geometric recognition (Neuen, 2016).

The uniqueness tree method generates a leveled tree rooted at each vertex, encoding iterative propagation of vertex uniqueness along neighborhoods, and compares these structures with worst-case O(n7)O(n^7) but much better average scaling (Gorard, 2016).

Classes with strong local structural uniqueness admit specialized polynomial algorithms. For example, when every pair of immediate neighbors have distinct local degree-profiles (as formalized via neighborhood-degree lists), a unique invariant signature (“UID”) can be derived in O(n4)O(n^4) time (Patel, 2017).

3. Spectral, Linear, and Semidefinite Relaxation Methods

Spectral methods exploit the adjacency spectrum and eigenstructure: isomorphic graphs are cospectral, but not all cospectral graphs are isomorphic. For “friendly” graphs (distinct eigenvalues, nonzero sum eigenvectors), the isomorphism reduces to a linear assignment via matching eigenvectors, yielding polynomial time, and the approach extends to arbitrary graphs via handling eigenspace symmetries using eigenpolytopes, cost matrices, and iterative symmetry-breaking perturbations (Klus et al., 2014). Linear programming and convex relaxations (LP, SDP) further generalize these ideas: under certain combinatorial reductions (such as the auxiliary compatibility or “clique” graph), a single SDP’s optimum reveals whether the original graphs are isomorphic, and rounding recovers the bijection. The recent claim of a strict polynomial-time SDP for GI, if fully substantiated, would place GI ∈ P (Nikolentzos et al., 2019).

Randomized determinant-based fingerprinting, as introduced in (Farhadian, 2018), compares the determinants of masked random polynomial functions of the adjacency matrices. For nearly all pairs, this Monte Carlo test identifies isomorphism in O(n2.373)O(n^{2.373}) time, with negligible failure probability for all but a measure-zero set of highly symmetric pairs.

Continuous relaxations replace the discrete permutation polytope with the set of orthogonal or doubly-stochastic matrices. By penalizing non-permutation solutions, Frank–Wolfe or conditional gradient algorithms efficiently converge to isomorphisms in practice, especially on highly symmetric graphs (Klus et al., 2023).

4. Algebraic, Category-Theoretic, and Canonical Forms

Algebraic approaches recast isomorphism as orbit equivalence under the action of SnS_n on adjacency matrices: GI becomes an instance of the general orbit problem—testing G-orbit equivalence in a representation VV (Derksen, 2010). Approximating this with finite “approximate categories” Cd(V)C_d(V), one obtains a hierarchy strictly refining the Weisfeiler–Lehman algorithms, distinguishing otherwise undetectable pairs (e.g., Cai–Fürer–Immerman graphs) in polynomial time for each fixed dd. The unresolved question is whether bounded dd suffices for all graphs, which would imply GI ∈ P.

Graph canonization seeks unique (often order-invariant) representations of each isomorphism class. For certain structural classes (e.g., the “permissible” graphs of (Patel, 2017)), UID traversals give such canonical forms in polynomial time. For general graphs, canonical forms via spectral or algebraic invariants encounter challenges from symmetries and isospectral non-isomorphic cases (Klus et al., 2014, Oktar, 2021).

Foundational work also connects vertex graphs and edge graphs via duality and matrix canonicalization, reducing GI to checking equality of canonical adjacency forms after prescribed normalization transformations (Malinin et al., 2010).

5. Quantum and Quantum-Inspired Algorithms

Quantum algorithms for GI have pursued three primary directions:

  • Quantum Annealing: Encoding the adjacency structure into an Ising Hamiltonian and reading out global quantum observables (energy, spin-glass order parameter, etc.) yields “graph fingerprints”; numerical evidence shows that even strongly regular, cospectral graph pairs are distinguished by these signatures (Hen et al., 2012).
  • Adiabatic and Variational Quantum Algorithms: Encoding GI as a quadratic unconstrained binary optimization (QUBO) instance (with n2n^2 variables), one can use adiabatic evolution or Quantum Approximate Optimization Algorithm (QAOA) or Variational Quantum Eigensolver (VQE). Isomorphic pairs display clustering in the variational energy landscape, allowing isomorphism detection even in small systems (Gaitan et al., 2013, Chatterjee et al., 2021).
  • Quantum Invariant Extraction: Quantum circuits compute graph invariants unavailable to classical spectral methods. Notably, the histogram of induced-subgraph edge counts obtained via phase estimation on graph-encoded unitaries distinguishes more strongly regular graph pairs than spectrum alone, and is invariant under isomorphism. However, some non-isomorphic pairs remain indistinguishable, so completeness remains open (Cruz et al., 2022).

Quantum computation thus introduces new invariants and practical algorithms that, within current limits, surpass classical invariants in discriminatory power for small graphs and strongly regular families.

6. Extensions, Limitations, and Open Problems

Numerous special cases admit polynomial-time algorithms: planar graphs, graphs of bounded degree or treewidth, and intersection graphs of specific geometric classes (e.g., unit-square graphs) (Neuen, 2016). However, for general graphs, Babai’s quasi-polynomial algorithm remains the most general deterministic guarantee (Derksen, 2010). Many theoretically powerful relaxations—SDP, LP, spectral, and categories—achieve polynomial time only under additional algebraic/spectral hypotheses or for fixed hierarchy depth.

Several limitations remain:

The frontier continues to shift: fundamental open problems include whether the graph isomorphism problem is in P, whether category-theoretic or SDP-based relaxations are universally complete, and what the ultimate power of quantum invariants and algorithms is for this archetypal problem.


Table: Algorithmic Paradigms for GI

Paradigm Worst-case Complexity Completeness/Remarks
Weisfeiler–Lehman Poly(nn) for fixed dd Fails for CFI graphs unless d=Ω(n)d = \Omega(n)
Babai–Luks Quasi-polynomial [Babai '16] Deterministic, general graphs
Spectral Assignment Poly(nn) for friendly/compact Breaks down for high symmetry; heuristic extensions
LP/SDP Relaxation Poly(nn) (size-dependent) Claimed for full GI in (Nikolentzos et al., 2019); scale limits
Quantum Invariant Poly(nn), O(n4n^4) Strictly refines spectrum; not universally complete
Annealing/QAOA/VQE Poly(nn) (small nn) Empirical clustering in small instances

References: (Derksen, 2010, Neuen, 2016, Gorard, 2016, Klus et al., 2014, Nikolentzos et al., 2019, Farhadian, 2018, Klus et al., 2023, Takapoui et al., 2016, Cruz et al., 2022, Gaitan et al., 2013, Chatterjee et al., 2021, Hen et al., 2012, Patel, 2017, Malinin et al., 2010, Du, 2017, Oktar, 2021)

Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Graph Isomorphism Problem.