encyclopegia.org

Graph canonization

In graph theory, a branch of mathematics, graph canonization is the problem of finding a canonical form of a given graph G.[src] A canonical form is a labeled graph Canon(G) that is isomorphic to G, such that every graph that is isomorphic to G has the same canonical form as G.[src] Thus, from a solution to the graph canonization problem, one could also solve the problem of graph isomorphism: to test whether two graphs G and H are isomorphic, compute their canonical forms Canon(G) and Canon(H), and test whether these two canonical forms are identical.[src] The canonical form of a graph is an example of a complete graph invariant: every two isomorphic graphs have the same canonical form, and every two non-isomorphic graphs have different canonical forms.[src] Conversely, every complete invariant of graphs may be used to construct a canonical form.[src] The vertex set of an n-vertex graph may be identified with the integers from 1 to n, and using such an identification a canonical form of a graph may also be described as a permutation of its vertices.[src] Canonical forms of a graph are also called canonical labelings, and graph canonization is also sometimes known as graph canonicalization.[src]

In graph theory, a branch of mathematics, graph canonization is the problem of finding a canonical form of a given graph G.[src] A canonical form is a labeled graph Canon(G) that is isomorphic to G, such that every graph that is isomorphic to G has the same canonical form as G.[src] Thus, from a solution to the graph canonization problem, one could also solve the problem of graph isomorphism: to test whether two graphs G and H are isomorphic, compute their canonical forms Canon(G) and Canon(H), and test whether these two canonical forms are identical.[src] The canonical form of a graph is an example of a complete graph invariant: every two isomorphic graphs have the same canonical form, and every two non-isomorphic graphs have different canonical forms.[src] Conversely, every complete invariant of graphs may be used to construct a canonical form.[src] The vertex set of an n-vertex graph may be identified with the integers from 1 to n, and using such an identification a canonical form of a graph may also be described as a permutation of its vertices.[src] Canonical forms of a graph are also called canonical labelings, and graph canonization is also sometimes known as graph canonicalization.[src] ==Computational complexity== The graph isomorphism problem is the computational problem of determining whether two finite graphs are isomorphic.[src] Clearly, the graph canonization problem is at least as computationally hard as the graph isomorphism problem.[src] In fact, graph isomorphism is even AC 0 -reducible to graph canonization.[src] However, it is still an open question whether the two problems are polynomial-time equivalent.[src] In 2019, László Babai announced a quasi-polynomial-time algorithm for graph canonization, that is, one with running time 2^{O((\log n)^c)} for some fixed c > 0 .[src] While the existence of (deterministic) polynomial-time algorithms for graph isomorphism is still an open problem in computational complexity theory, in 1977 László Babai reported that with probability at least 1 − exp(−O(n)), a simple vertex-classification algorithm produces a canonical labeling of a graph chosen uniformly at random from the set of all n-vertex graphs after only two refinement steps.[src] Small modifications and an added depth-first search step produce canonical labelings of such uniformly-chosen random graphs in linear expected time.[src] This result sheds some light on the question of why many reported graph isomorphism algorithms behave well in practice.[src] This was an important breakthrough in probabilistic complexity theory, which became widely known in its manuscript form and which was still cited as an "unpublished manuscript" long after it was reported at a symposium.[src] A commonly known canonical form is the lexicographically smallest graph within the isomorphism class, which is the graph of the class with lexicographically smallest adjacency matrix considered as a linear string.[src] However, the computation of the lexicographically smallest graph is NP-hard.[src] For trees, a concise polynomial-time canonization algorithm requiring O(n) space is presented by .[src] Begin by labeling each vertex with the string 01.[src] Iteratively for each non-leaf x, remove the leading 0 and trailing 1 from x 's label; then, sort x 's label along with the labels of all adjacent leaves in lexicographic order.[src] Concatenate these sorted labels, add back a leading 0 and trailing 1, make this the new label of x, and delete the adjacent leaves.[src] If there are two vertices remaining, concatenate their labels in lexicographic order.[src] ==Applications== Graph canonization is the essence of many graph isomorphism algorithms.[src] One of the leading tools is Nauty.[src] A common application of graph canonization is in graphical data mining, in particular in chemical database applications.[src] A number of identifiers for chemical substances, such as SMILES and InChI, use canonization steps in their computation, which is essentially the canonization of the graph which represents the molecule.[src] These identifiers are designed to provide a standard (and sometimes human-readable) way to encode molecular information and to facilitate the search for such information in databases and on the web.[src] ==See also== ==References==[src]

36 sentences · 36 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Graph canonization." encyclopegia.org, 2025, https://encyclopegia.org/wiki/graph-canonization. Accessed 25 November 2026.

Chicago

"Graph canonization." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/graph-canonization.

APA

encyclopegia.org. (2025). Graph canonization. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/graph-canonization

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

graph of a function

stub · references available

Turán graph

stub · references available

graph property

stub · references available

Graph Modelling Language

stub · references available

vertex-weighted graph

stub · references available

weighted graph

stub · references available

Grinberg graph 46

stub · references available

Paley graph

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1330143987 · 0.5 · snapshot enwiki-001330143987

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.