TOPICS
Search

Weisfeiler-Leman Dimension


The Weisfeiler-Leman dimension dim_(WL)(G) of a finite graph G, sometimes known as the WL dimension, is the smallest positive integer d such that the d-dimensional Weisfeiler-Leman algorithm distinguishes G from every graph not isomorphic to G (Grohe 2017).

The Weisfeiler-Leman dimension of a graph G with vertex count n>=2 satisfies

 1<=dim_(WL)(G)<=n-1

(Kiefer 2020, p. 37). The only graph with dim_(WL)(G)=|G| is the singleton graph K_1.

For a nonempty graph G, let C range over its connected components, and set m=max_(C)dim_(WL)(C). Any component requiring m dimensions gives the lower bound m<=dim_(WL)(G). Conversely, when k>=2, the k-dimensional Weisfeiler-Leman algorithm detects whether vertices lie in the same connected component and retains the k-dimensional information within each component. It can therefore identify G once k is at least both 2 and m. Thus

 max_(C)dim_(WL)(C)<=dim_(WL)(G)<=max(2,max_(C)dim_(WL)(C)).

In particular, dim_(WL)(G) equals the maximum component dimension when that maximum is at least 2 (Kiefer et al. 2019, Section 4).

The condition that the maximum component dimension is at least 2 is essential. The stronger claim (Schweitzer 2018) that the equality holds whenever dim_(WL)(G)>=2, even if every component has dimension 1 is incorrect. Indeed, dim_(WL)(2C_3)=2 while dim_(WL)(C_3)=1. Color refinement does not distinguish 2C_3 from C_6. Any graph it does not distinguish from 2C_3 has six vertices of vertex degree 2 and is therefore either 2C_3 or C_6, and the two-dimensional Weisfeiler-Leman algorithm distinguishes these two graphs by the numbers of common neighbors of nonadjacent vertices.

A finite graph G has Weisfeiler-Leman dimension 1 iff color refinement, the one-dimensional Weisfeiler-Leman algorithm, distinguishes G from every graph not isomorphic to G (Arvind et al. 2017). Such a graph is amenable.

The characterization is structural rather than a short list of familiar graph families. In the formulation of Arvind et al. (2017, Theorem 9), the stable color classes produced by color refinement are regarded as cells. Each cell induces an empty graph, a complete graph, a perfect matching or its graph complement, or the cycle graph C_5. Between two cells, the induced bipartite graph is an empty graph, a complete bipartite graph, a graph disjoint union of isomorphic star graphs whose centers all lie in one cell, or the bipartite complement of such a graph disjoint union. Form a graph whose vertices are the cells and whose edges join pairs for which the induced bipartite graph is neither an empty graph nor a complete bipartite graph. Every component of this graph is a rooted tree with a smallest cell as its root vertex. Cell sizes do not decrease away from the root vertex, and each tree has at most one cell whose induced graph is neither an empty graph nor a complete graph. If present, that cell has minimum size. Kiefer et al. (2015) independently obtained an equivalent characterization.

Unfortunately, a complete description of the graphs of WL-dimension 2 seems intractable (Li et al. 2026).

The only regular graphs with Weisfeiler-Leman dimension 1 are the cocktail party graphs, complete graphs, empty graphs, ladder rung graphs, and the cycle graph C_5 (Arvind et al. 2017, Schweitzer 2018, Fuhlbrück et al. 2020).

The Weisfeiler-Leman dimension of a tree or forest is 1 (Arvind et al. 2015), of a distance-hereditary graph is at most 2 (Gavrilyuk et al. 2020), and of a planar graph is at most 3 (Kiefer et al. 2019, Li et al. 2026). The stable coloring produced by the two-dimensional Weisfeiler-Leman algorithm on a graph X determines a coherent configuration. This configuration is called Schurian when its color classes are exactly the orbitals of Aut(X) on ordered pairs of vertices. The homogeneous coherent configuration case is a Schurian scheme. Li et al. (2026) proved that a Schurian graph has Weisfeiler-Leman dimension at most 2 when it is polyhedral and conjectured that every polyhedral graph is a Schurian graph.


See also

Amenable Graph, Coherent Configuration, Color Refinement, Coprime Graph, Graph Coloring, Polyhedral Graph, Schurian Graph, Uniquely Colorable Graph, Weisfeiler-Leman Algorithm

Explore with Wolfram|Alpha

References

Arvind, V.; Köbler, J.; Rattan, G.; and Verbitsky, O. "On the Power of Color Refinement." In Fundamentals of Computation Theory. FCT 2015 (Ed. A. Kosowski and I. Walukiewicz). Cham, Switzerland: Springer, pp. 339-350, 2015.Arvind, V.; Köbler, J.; Rattan, G.; and Verbitsky, O. "Graph Isomorphism, Color Refinement, and Compactness." Comput. Complex. 26, 627-685, 2017. https://doi.org/10.1007/s00037-016-0147-6.Fuhlbrück, F.; Köbler, J.; and Verbitsky, O. "Identifiability of Graphs with Small Color Classes by the Weisfeiler-Leman Algorithm." In Proc. 7th International Symposium on Theoretical Aspects of Computer Science. Germany: Dagstühl Publishing, pp. 43:1-43:18, 2020.Gavrilyuk, A. L.; Nedela, R.; and Ponomarenko, I. "The Weisfeiler-Leman Dimension of Distance-Hereditary Graphs." 24 May 2020. https://arxiv.org/abs/2005.11766.Grohe, M. Descriptive Complexity, Canonisation and Definable Graph Structure Theory. Cambridge, England: Cambridge University Press, 2017.Kiefer, S. "Power and Limits of the Weisfeiler-Leman Algorithm." Master's thesis. Aachen, Germany: RWTH Aachen University, 2020.Kiefer, S. and Neuen, D. "A Study of Weisfeiler-Leman Colorings on Planar Graphs." 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022). pp. 81:1-81:20, 2022.Kiefer, S.; Ponomarenko, I.; and Schweitzer, P. "The Weisfeiler-Leman Dimension of Planar Graphs Is at Most 3." J. ACM 66, 1-31, 2019.Kiefer, S.; Schweitzer, P.; and Selman, E. "Graphs Identified by Logics with Counting." In Mathematical Foundations of Computer Science 2015. MFCS 2015 (Eds. G. F. Italiano, G. Pighizzini, and D. T. Sannella). Berlin, Germany: Springer, pp. 319-330, 2015. https://doi.org/10.1007/978-3-662-48057-1_25.Li, H.; Ponomarenko, I.; and Zeman, P. "On the Weisfeiler-Leman Dimension of Some Polyhedral Graphs." Elec. J. Combin. 33, No. 3, P3.25, 2026. https://doi.org/10.37236/13936.Schweitzer, P. "The Weisfeiler-Leman Dimension of Graphs and Isomorphism Testing." Symmetry vs Regularity, 50 Years of WL. July 6, 2018. https://www.iti.zcu.cz/wl2018/pdf/wl2018_schweitzer.pdf.

Referenced on Wolfram|Alpha

Weisfeiler-Leman Dimension

Cite this as:

Weisstein, Eric W. "Weisfeiler-Leman Dimension." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Weisfeiler-LemanDimension.html

Subject classifications