Testing Graph Isomorphism in Parallel by Playing a Game

Martin Grohe, Oleg Verbitsky

Introduction

The Graph Isomorphism (GI) problem—determining whether two graphs are structurally identical—occupies a unique position in computational complexity. While it is known to be in NP, its exact status (whether it is in P or NP-complete) remains a subject of intense study. Parallelizing GI testing is even more challenging. This research bridges mathematical logic and parallel computing to show that the classic Weisfeiler-Lehman (WL) algorithm can solve GI for specific graph classes in highly efficient parallel time, specifically within the $TC^1$ and $AC^1$ complexity classes.

The Weisfeiler-Lehman Algorithm and Descriptive Complexity

The core of this approach is the Weisfeiler-Lehman (WL) algorithm, a combinatorial "color refinement" technique. The algorithm iteratively colors vertices based on their local neighborhoods; if two graphs result in different color distributions, they are guaranteed to be non-isomorphic.

The authors link the efficiency of the WL algorithm to Descriptive Complexity, which measures the complexity of a formal logic required to define a mathematical object. Specifically, they utilize $k$-variable logic with counting quantifiers ($C^k$). The number of rounds required for the WL algorithm to stabilize corresponds directly to the "quantifier depth" of a first-order logic formula needed to distinguish the graphs.

The Game of Distinguishability

To prove these logical bounds, the researchers employ Ehrenfeucht-Fraïssé games, specifically a "pebble game" played between two players: the Spoiler and the Duplicator.

  • The Spoiler attempts to prove the graphs are different.
  • The Duplicator attempts to prove they are the same.

If the Spoiler has a winning strategy using a constant number of pebbles ($k$) within a logarithmic number of rounds ($O(\log n)$), it implies that the graphs can be distinguished by a fast parallel algorithm. The paper demonstrates that $r$ rounds of the $k$-dimensional WL algorithm can be implemented as a $TC$ circuit of depth $O(r)$ and size $O(r \cdot n^{3k})$.

Key Results and Complexity Bounds

The research provides significant improvements for several graph classes by showing that their structural complexity is "logically simple":

  • Bounded Treewidth: For graphs with treewidth $k$ (graphs that are "tree-like"), the authors proved that isomorphism is testable in $TC^1$. This improves upon the previous $AC^2$ bound and resolves a long-standing question in the field.
  • Rotation Systems: These are combinatorial descriptions of graph embeddings on surfaces. The paper shows that isomorphism for these systems is in $AC^1$.
  • Planar Graphs: By integrating their findings with existing techniques, the authors derived a new $AC^1$ algorithm for planar graph isomorphism.

Insights and Implications

A primary insight of this work is that the WL algorithm—a heuristic developed in the 1960s—is essentially an optimal parallel algorithm for these complex graph classes when the dimension $k$ is chosen correctly. It establishes that the parallel time complexity of identifying a graph is fundamentally tied to its "logical simplicity." If a graph's unique structure can be described with a "shallow" logical formula, its isomorphism can be tested rapidly in parallel.

Limitations and Future Work

Despite the theoretical efficiency (polylogarithmic time), practical implementation remains a challenge. The dimension $k$ of the WL algorithm appears in the exponent of the circuit size ($n^{3k}$). For even moderately large $k$, the computational resources required become prohibitive for real-world engineering. Furthermore, while this provides a path for specific classes, the general Graph Isomorphism problem remains one of the "Holy Grails" of the field, as this logic-based approach does not yet extend to all graph types.

Summary updated

BibTeX
@inproceedings{grohe2006testing,
  author = {Martin Grohe and Oleg Verbitsky},
  title = {{Testing Graph Isomorphism in Parallel by Playing a Game}},
  booktitle = {ICALP},
  year = {2006},
  doi = {10.1007/11786986\_2},
}
Figure