Abstract
This paper establishes a profound connection between the combinatorial theory of graph homomorphisms and the Weisfeiler-Leman (WL) algorithm. By proving that $k$-WL indistinguishability is equivalent to having identical homomorphism counts from graphs of tree width at most $k$, the authors unify logic, linear programming, and structural graph theory into a single framework.
Introduction
The Graph Isomorphism (GI) problem—determining if two graphs are structurally identical—is a classic challenge in computer science. While its exact complexity remains an open question, researchers frequently employ the Weisfeiler-Leman (WL) algorithm as a powerful heuristic. In a parallel development, László Lovász proved in the 1960s that a graph is uniquely determined by the number of homomorphisms it receives from all other graphs. This paper bridges these two worlds, characterizing exactly what structural information the $k$-WL hierarchy captures.
The Tree Width Characterization of $k$-WL
The central insight of this work is that the $k$-WL algorithm acts as a "tree width $k$ detector." Specifically, two graphs $G$ and $H$ are indistinguishable by $k$-WL if and only if they yield the same homomorphism counts from every graph $F$ with tree width at most $k$.
This equivalence provides a structural explanation for the limitations of color refinement (1-WL). Since 1-WL corresponds to counting homomorphisms from trees, graphs that differ in their cycle structure but share tree counts can be distinguished by 1-WL. Conversely, as shown in Figure 1, graphs may share the same path homomorphism counts (and thus the same spectrum) while remaining distinguishable by tree-based invariants, highlighting that tree counts provide strictly more information than path counts.
Methodological Framework
The authors employ a diverse set of algebraic and combinatorial techniques to establish these equivalences:
- Homomorphism Vectors: Graphs are represented as vectors where each entry is the count of homomorphisms from a specific pattern graph.
- Linear Programming (LP) Relaxations: The paper relates $k$-WL to the Sherali-Adams relaxation of the standard graph isomorphism linear program.
- Tree Unfoldings: A key technique involves "unfolding" a graph into a tree-like structure from a specific vertex or $k$-tuple, showing that $k$-WL essentially compares these local expansions.
- Matrix Decompositions: LU-decompositions of infinite matrices, indexed by graph isomorphism types, are used to prove the equivalence of various graph similarity measures.
Key Results and Algorithmic Implications
The paper presents several landmark theorems that redefine our understanding of graph similarity:
- Theorem 1 (1-WL): Two graphs $G$ and $H$ are indistinguishable by color refinement $\iff$ $\text{Hom}(T, G) = \text{Hom}(T, H)$ for all trees $T$.
- Theorem 3 ($k$-WL): For $k \ge 2$, $G$ and $H$ are indistinguishable by $k$-WL $\iff$ $\text{Hom}(F, G) = \text{Hom}(F, H)$ for all graphs $F$ of tree width $\le k$.
- Efficiency: A surprising consequence is a quasi-linear time algorithm ($O((n+m)\log n)$) to decide if two graphs have identical homomorphism counts from all trees. This is remarkable given that computing individual homomorphism counts is generally hard.
- Paths vs. Trees: The authors show that counting homomorphisms from paths is strictly weaker than counting from trees. Path counts correspond to the existence of real (not necessarily non-negative) solutions to isomorphism linear systems.
Conclusion
By linking Lovász's homomorphism theory with the Weisfeiler-Leman algorithm, this paper provides a unified perspective on graph isomorphism heuristics. While it leaves open questions regarding path width characterizations and the application to graph kernels in machine learning, it sets a new standard for the theoretical analysis of graph similarity measures.
Summary updated