arXiv:2611.01399cs.DSNov 2026

Manuscript Offprint

arXiv:2611.01399

Deterministic nO(log⁡n)n^{O(\log n)} Graph Isomorphism Algorithm via Inherited Decompositions

MohammadTaghi Hajiaghayi, Mahdi JafariRaviz

Abstract

We give a deterministic nO(log⁡n)n^{O(\log n)}-time algorithm for graph isomorphism. To our knowledge, this is the first proof of such a worst-case bound for general graphs. The algorithm uses the local-certificate and color-refinement steps of Babai's quasipolynomial algorithm, but retains the decomposition of each recursive instance when it solves an auxiliary coloring problem. There are two reasons for retaining this information. First, a local test can make progress without removing many vertices: it can eliminate a layer of permutation symmetry. A logarithmic bound on the total weight of these layers allows tests of constant size. Second, the auxiliary bipartite graphs arising in the symmetry-breaking step can be represented inside the current instance, after retaining a row decomposition when necessary. These recursive calls inherit the progress already made. The analysis gives a recurrence with quadratic logarithmic cost and a fixed power decrease in every fresh recursive call, improving the explicit cubic logarithmic exponent in the analysis of the corrected Luks–Babai algorithm. We present the algorithm through colorings, partitions, and bipartite graphs, and collect the permutation-group ingredients in one appendix. The result extends to string isomorphism and returns one isomorphism and generators for the full automorphism group.

1 Introduction

Graph isomorphism asks whether two graphs differ only in the names of their vertices. Given graphs XX and YY on nn vertices, we seek a bijection π:V(X)→V(Y)\pi: V(X) \to V(Y) such that

uv∈E(X)⟺π(u)π(v)∈E(Y).uv \in E(X) \quad \Longleftrightarrow \quad \pi(u)\pi(v) \in E(Y).

The definition is elementary, but the worst-case complexity of finding such a bijection has resisted a general polynomial-time algorithm. The difficulty is not usually a lack of local information. Degree sequences, neighborhood colors, and repeated refinement often identify many vertices. The difficult instances are those in which large sets of vertices remain indistinguishable under the available information.

Luks's algorithm for bounded-degree graphs introduced a way to describe and restrict the remaining vertex permutations without listing them individually [21]. Babai's quasipolynomial algorithm combines this approach with local certificates and a combinatorial analysis of highly symmetric auxiliary structures [2, 4]. Helfgott's detailed exposition of the corrected algorithm gives the explicit bound

exp⁡(O((log⁡n)3)).(1)\exp(O((\log n)^3)). \tag{1}

*University of Maryland. Email: hajiaghayi@gmail.com.

†University of Maryland. Email: mahdijafariraviz@gmail.com.

See Appendix A of [16] for this explicit estimate. The running-time analysis, including the treatment of auxiliary recursive calls, is part of the difficulty: Babai's correction of Split-or-Johnson was necessary to obtain the quasipolynomial bound [3, 16].

We refine both the recursive reductions and their analysis to obtain the bound

exp⁡(O((log⁡n)2))=nO(log⁡n).(2)\exp(O((\log n)^2))=n^{O(\log n)}. \tag{2}

To our knowledge, this is the first proof of an nO(log⁡n)n^{O(\log n)} worst-case bound for general graph isomorphism. The improvement comes from changing which auxiliary instances are solved, which decompositions they inherit, and what is charged when a recursive call keeps almost all of the current domain. Du [11] previously stated the same bound; Appendix B explains why that argument does not establish it.