Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

On the Expressibility of
the Reconstructional Color Refinement

V. Arvind, Johannes Köbler, Oleg Verbitsky The Institute of Mathematical Sciences (HBNI) and Chennai Mathematical Institute, Chennai, India.Institut für Informatik, Humboldt-Universität zu Berlin, Germany.Supported by DFG grant KO 1053/8–2. On leave from the IAPMM, Lviv, Ukraine.
Abstract

One of the most basic facts related to the famous Ulam reconstruction conjecture is that the connectedness of a graph can be determined by the deck of its vertex-deleted subgraphs, which are considered up to isomorphism. We strengthen this result by proving that connectedness can still be determined when the subgraphs in the deck are given up to equivalence under the color refinement isomorphism test. Consequently, this implies that connectedness is recognizable by Reconstruction Graph Neural Networks, a recently introduced GNN architecture inspired by the reconstruction conjecture (Cotta, Morris, Ribeiro 2021).

1 Introduction

For a vertex v𝑣vitalic_v of a graph G𝐺Gitalic_G, the vertex-deleted subgraph Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v is obtained by removing v𝑣vitalic_v along with all incident edges from G𝐺Gitalic_G. The isomorphism type of Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v is sometimes referred to as a card, and then the multiset of all cards is called the deck of G𝐺Gitalic_G. The famous Ulam reconstruction conjecture [19] says that every graph G𝐺Gitalic_G with more than 2 vertices is, up to isomorphism, reconstructible from its deck. Though published in 1960, the problem collection [19] is a descendant of the much earlier famous Scottish Book [12]. According to Harary [9], the conjecture has already been discussed since 1929 and, about a hundred years later, it remains a notoriously hard open problem in graph theory.

The subject has a rich literature, and one of the most frequently taken approaches is examination of how much information about a graph G𝐺Gitalic_G can be retrieved from its deck. One of the earliest results in this direction is referred to in [9] as a “little theorem”: G𝐺Gitalic_G is connected if and only if at least two subgraphs in its deck are connected. This implies the following fact (see also [15, Theorem 2.2])

Theorem 1 (Harary [8]).

The connectedness of a graph G𝐺Gitalic_G is determined by the multiset of all vertex-deleted subgraphs Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v of G𝐺Gitalic_G.

Recall that the subgraphs Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v are considered up to isomorphism, which means that the full structural information about them is available. It is natural to ask which partial information suffices to decide the connectedness of G𝐺Gitalic_G. For example, the aforementioned “little theorem” of Harary shows that it would be just enough to know the connectedness of each card in the deck. The question addressed in this note is whether connectedness can still be decided when the subgraphs Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v are considered up to an important relaxation of the isomorphism relation, namely up to equivalence under the color refinement test (also known as one-dimensional Weisfeiler-Leman equivalence).

Color refinement iteratively computes an isomorphism-invariant coloring of the vertex set of an input graph G𝐺Gitalic_G. Let 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) denote the mutisets of colors assigned by the algorithm to the vertices of G𝐺Gitalic_G (see Section 2 for definitions). Color refinement distinguishes two graphs G𝐺Gitalic_G and H𝐻Hitalic_H if 𝖢𝖱(G)𝖢𝖱(H)𝖢𝖱𝐺𝖢𝖱𝐻\operatorname{\mathsf{CR}}(G)\neq\operatorname{\mathsf{CR}}(H)sansserif_CR ( italic_G ) ≠ sansserif_CR ( italic_H ). If 𝖢𝖱(G)=𝖢𝖱(H)𝖢𝖱𝐺𝖢𝖱𝐻\operatorname{\mathsf{CR}}(G)=\operatorname{\mathsf{CR}}(H)sansserif_CR ( italic_G ) = sansserif_CR ( italic_H ), the graphs are called CR-equivalent. Since 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) is a graph invariant, CR-equivalence is a coarser equivalence relation than isomorphism of graphs.

CR-equivalence has natural characterizations discovered in different research contexts. Two graphs are CR-equivalent exactly when they are equivalent in the two-variable first-order logic with counting quantifiers [10], when they have equally many vertices and share a common covering [1], when they are fractionally isomorphic [17], and when the number of homomorphisms from every tree to these graphs is the same [5].

Color refinement is a versatile tool with applications in diverse fields [1, 7, 16]. Most prominently, it is a practical method of isomorphism testing. The graph invariant 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) can be computed efficiently [10] and identifies the isomorphism type of G𝐺Gitalic_G for almost all graphs [2]. In machine learning, color refinement is used for analysis and comparison of graph-structured data [18] and for understanding the expressiveness of graph neural networks (GNNs) [13].

Our main result is the following strengthening of Theorem 1.

Theorem 2.

The connectedness of a graph G𝐺Gitalic_G is determined by the multiset of the invariants 𝖢𝖱(Gv)𝖢𝖱𝐺𝑣\operatorname{\mathsf{CR}}(G\setminus v)sansserif_CR ( italic_G ∖ italic_v ) for all vertex-deleted subgraphs of G𝐺Gitalic_G.

Note that the invariant 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) is not powerful enough to decide whether or not G𝐺Gitalic_G is connected. Indeed, 𝖢𝖱(C6)=𝖢𝖱(2C3)𝖢𝖱subscript𝐶6𝖢𝖱2subscript𝐶3\operatorname{\mathsf{CR}}(C_{6})=\operatorname{\mathsf{CR}}(2C_{3})sansserif_CR ( italic_C start_POSTSUBSCRIPT 6 end_POSTSUBSCRIPT ) = sansserif_CR ( 2 italic_C start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT ), where Cnsubscript𝐶𝑛C_{n}italic_C start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT denotes the cycle graph of length n𝑛nitalic_n, and 2C32subscript𝐶32C_{3}2 italic_C start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT stands for the vertex-disjoint union of two copies of C3subscript𝐶3C_{3}italic_C start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT. This cuts off the easiest route to Theorem 2 through the potential use of the “little theorem” of Harary and shows that running color refinement on the deck of a graph can be more beneficial than running it on the graph alone. Theorem 2 is interesting in several respects, which we discuss now.

Consequences for GNNs.

The expressive power of a representative class of GNNs is characterizable in terms of color refinement [14]. In the search for a more expressive GNN architecture, Cotta, Morris, Ribeiro [4] introduce the model of k𝑘kitalic_k-Reconstruction GNNs, whose conceptual novelty consists in enhancing the standard GNNs by running them on the deck of k𝑘kitalic_k-vertex subgraphs of a graph G𝐺Gitalic_G rather than on G𝐺Gitalic_G itself. The simplest instructive example, highlighted in [4], is given by considering the 6-cycle graph C6subscript𝐶6C_{6}italic_C start_POSTSUBSCRIPT 6 end_POSTSUBSCRIPT. As we just mentioned, C6subscript𝐶6C_{6}italic_C start_POSTSUBSCRIPT 6 end_POSTSUBSCRIPT is not identified by 𝖢𝖱(C6)𝖢𝖱subscript𝐶6\operatorname{\mathsf{CR}}(C_{6})sansserif_CR ( italic_C start_POSTSUBSCRIPT 6 end_POSTSUBSCRIPT ). However, C6subscript𝐶6C_{6}italic_C start_POSTSUBSCRIPT 6 end_POSTSUBSCRIPT is reconstructible from its deck, which consists of six copies of the 5-path graph P5subscript𝑃5P_{5}italic_P start_POSTSUBSCRIPT 5 end_POSTSUBSCRIPT. Since P5subscript𝑃5P_{5}italic_P start_POSTSUBSCRIPT 5 end_POSTSUBSCRIPT is identified by 𝖢𝖱(P5)𝖢𝖱subscript𝑃5\operatorname{\mathsf{CR}}(P_{5})sansserif_CR ( italic_P start_POSTSUBSCRIPT 5 end_POSTSUBSCRIPT ), the cycle graph C6subscript𝐶6C_{6}italic_C start_POSTSUBSCRIPT 6 end_POSTSUBSCRIPT is identified by color refinement applied to its deck. We state an immediate consequence of Theorem 2, providing further evidence that k𝑘kitalic_k-Reconstruction GNNs can often be more powerful.

Corollary 3.

The connecteness of an n𝑛nitalic_n-vertex graph is recognizable by (n1)𝑛1(n-1)( italic_n - 1 )-Reconstruction GNNs.

Graph reconstruction.

Theorem 2 shows that a prototypical reconstructible graph property can be recognized even from an incomplete information about the deck. The research on the reconstruction conjecture provides many results of this kind, and we here mention two of them which concern connectedness. One can determine the connectedness of an n𝑛nitalic_n-vertex graph from any n/2+2𝑛22\lfloor n/2\rfloor+2⌊ italic_n / 2 ⌋ + 2 of its cards [3]. This can also be done using the k𝑘kitalic_k-deck of a graph whenever k9n/10𝑘9𝑛10k\geq 9n/10italic_k ≥ 9 italic_n / 10 [6]. Note in this respect that the k𝑘kitalic_k-deck of a graph determines its ksuperscript𝑘k^{\prime}italic_k start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT-deck whenever kksuperscript𝑘𝑘k^{\prime}\leq kitalic_k start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ≤ italic_k and, therefore, the k𝑘kitalic_k-deck with a smaller k𝑘kitalic_k potentially provides less information. Turning back to Theorem 2, it is natural to combine it with the logical characterization of color refinement [10]. As a consequence, the connectedness of a graph can be determined based on the information about its deck expressible in the two-variable logic with counting quantifiers.

Isomorphism invariants of graphs.

Let 𝖣𝖢𝖱(G)𝖣𝖢𝖱𝐺\operatorname{\mathsf{D-CR}}(G)start_OPFUNCTION sansserif_D - sansserif_CR end_OPFUNCTION ( italic_G ) denote the multiset of 𝖢𝖱(Gv)𝖢𝖱𝐺𝑣\operatorname{\mathsf{CR}}(G\setminus v)sansserif_CR ( italic_G ∖ italic_v ) over all vertices v𝑣vitalic_v of G𝐺Gitalic_G. This graph invariant is interesting to compare not only with with 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) but as well with other related invariants. Color refinement is also commonly known as the one-dimensional Weisfeiler-Leman algorithm. Weisfeiler and Leman [20] actually introduced the two-dimensional version, exploiting the same idea as color refinement but coloring pairs of vertices instead of single vertices. Let 𝖶𝖫(G)𝖶𝖫𝐺\operatorname{\mathsf{WL}}(G)sansserif_WL ( italic_G ) denote the graph invariant computed by this algorithm on input G𝐺Gitalic_G. A higher dimension results in a more powerful isomorphism test and, in particular, 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) is determined by 𝖶𝖫(G)𝖶𝖫𝐺\operatorname{\mathsf{WL}}(G)sansserif_WL ( italic_G ). It is not hard to show that 𝖣𝖢𝖱(G)𝖣𝖢𝖱𝐺\operatorname{\mathsf{D-CR}}(G)start_OPFUNCTION sansserif_D - sansserif_CR end_OPFUNCTION ( italic_G ) is also determined by 𝖶𝖫(G)𝖶𝖫𝐺\operatorname{\mathsf{WL}}(G)sansserif_WL ( italic_G ). Whether 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ), 𝖣𝖢𝖱(G)𝖣𝖢𝖱𝐺\operatorname{\mathsf{D-CR}}(G)start_OPFUNCTION sansserif_D - sansserif_CR end_OPFUNCTION ( italic_G ), and 𝖶𝖫(G)𝖶𝖫𝐺\operatorname{\mathsf{WL}}(G)sansserif_WL ( italic_G ) form a hierarchy of graph invariants linearly ordered by their strength is an open question. More precisely, it is unknown whether or not 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) is determined by 𝖣𝖢𝖱(G)𝖣𝖢𝖱𝐺\operatorname{\mathsf{D-CR}}(G)start_OPFUNCTION sansserif_D - sansserif_CR end_OPFUNCTION ( italic_G ). This question is discussed in [17, Section 6.8] and [4, Section 4.1]. As we mentioned above, 𝖢𝖱(G)𝖢𝖱𝐺\operatorname{\mathsf{CR}}(G)sansserif_CR ( italic_G ) does not allow us to see whether G𝐺Gitalic_G is connected. On the other hand, it is well known that the connectedness of a graph G𝐺Gitalic_G can be determined from 𝖶𝖫(G)𝖶𝖫𝐺\operatorname{\mathsf{WL}}(G)sansserif_WL ( italic_G ). Theorem 2 provides a formal strengthening of the last fact by showing that the connectedness of G𝐺Gitalic_G is determined even by 𝖣𝖢𝖱(G)𝖣𝖢𝖱𝐺\operatorname{\mathsf{D-CR}}(G)start_OPFUNCTION sansserif_D - sansserif_CR end_OPFUNCTION ( italic_G ).

2 Color refinenemt

The vertex set of a graph G𝐺Gitalic_G is denoted by V(G)𝑉𝐺V(G)italic_V ( italic_G ). The neighborhood NG(x)subscript𝑁𝐺𝑥N_{G}(x)italic_N start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) of a vertex xV(G)𝑥𝑉𝐺x\in V(G)italic_x ∈ italic_V ( italic_G ) consists of all vertices adjacent to x𝑥xitalic_x. We write degGx=|NG(x)|subscriptdegree𝐺𝑥subscript𝑁𝐺𝑥\deg_{G}x=|N_{G}(x)|roman_deg start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT italic_x = | italic_N start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) | to denote the degree of x𝑥xitalic_x.

On an input graph G𝐺Gitalic_G, the color-refinement algorithm (to be abbreviated as CR) iteratively computes a sequence of colorings CGrsubscriptsuperscript𝐶𝑟𝐺C^{r}_{G}italic_C start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT of V(G)𝑉𝐺V(G)italic_V ( italic_G ). The initial coloring CG0subscriptsuperscript𝐶0𝐺C^{0}_{G}italic_C start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT is monochromatic, i.e., CG0(x)=CG0(x)subscriptsuperscript𝐶0𝐺𝑥subscriptsuperscript𝐶0𝐺superscript𝑥C^{0}_{G}(x)=C^{0}_{G}(x^{\prime})italic_C start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = italic_C start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) for all x,xV(G)𝑥superscript𝑥𝑉𝐺x,x^{\prime}\in V(G)italic_x , italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ∈ italic_V ( italic_G ), where the same initial color is used for all G𝐺Gitalic_G. Each subsequent color of a vertex x𝑥xitalic_x is obtained from the preceding coloring by the rule

CGr+1(x)={{CGr(y)}}yNG(x),subscriptsuperscript𝐶𝑟1𝐺𝑥subscriptsubscriptsuperscript𝐶𝑟𝐺𝑦𝑦subscript𝑁𝐺𝑥C^{r+1}_{G}(x)=\left\{\!\!\left\{C^{r}_{G}(y)\right\}\!\!\right\}_{y\in N_{G}(% x)},italic_C start_POSTSUPERSCRIPT italic_r + 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = { { italic_C start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_y ) } } start_POSTSUBSCRIPT italic_y ∈ italic_N start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) end_POSTSUBSCRIPT ,

where {{}}\left\{\!\!\left\{\right\}\!\!\right\}{ { } } denotes a multiset. Note that CG1(x)=CG1(x)subscriptsuperscript𝐶1𝐺𝑥subscriptsuperscript𝐶1𝐺superscript𝑥C^{1}_{G}(x)=C^{1}_{G}(x^{\prime})italic_C start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = italic_C start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) exactly when degG(x)=degG(x)subscriptdegree𝐺𝑥subscriptdegree𝐺superscript𝑥\deg_{G}(x)=\deg_{G}(x^{\prime})roman_deg start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = roman_deg start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ), that is, the color CG1(x)subscriptsuperscript𝐶1𝐺𝑥C^{1}_{G}(x)italic_C start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) can just be seen as the degree of the vertex x𝑥xitalic_x.

We define CG(x)=(CG0(x),CG1(x),CG2(x),)subscript𝐶𝐺𝑥subscriptsuperscript𝐶0𝐺𝑥subscriptsuperscript𝐶1𝐺𝑥subscriptsuperscript𝐶2𝐺𝑥C_{G}(x)=(C^{0}_{G}(x),C^{1}_{G}(x),C^{2}_{G}(x),\ldots)italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = ( italic_C start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) , italic_C start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) , italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) , … ) as the sequence of CGr(x)subscriptsuperscript𝐶𝑟𝐺𝑥C^{r}_{G}(x)italic_C start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) for all r𝑟ritalic_r and set 𝖢𝖱(G)={{CG(x)}}xV(G)𝖢𝖱𝐺subscriptsubscript𝐶𝐺𝑥𝑥𝑉𝐺\operatorname{\mathsf{CR}}(G)=\left\{\!\!\left\{C_{G}(x)\right\}\!\!\right\}_{% x\in V(G)}sansserif_CR ( italic_G ) = { { italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) } } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_G ) end_POSTSUBSCRIPT. We say that CR distinguishes two graphs G𝐺Gitalic_G and H𝐻Hitalic_H if 𝖢𝖱(G)𝖢𝖱(H)𝖢𝖱𝐺𝖢𝖱𝐻\operatorname{\mathsf{CR}}(G)\neq\operatorname{\mathsf{CR}}(H)sansserif_CR ( italic_G ) ≠ sansserif_CR ( italic_H ). If G𝐺Gitalic_G and H𝐻Hitalic_H are indistinguishable by CR, i.e., 𝖢𝖱(G)=𝖢𝖱(H)𝖢𝖱𝐺𝖢𝖱𝐻\operatorname{\mathsf{CR}}(G)=\operatorname{\mathsf{CR}}(H)sansserif_CR ( italic_G ) = sansserif_CR ( italic_H ), they are referred to as CR-equivalent.

Defining CG(x)subscript𝐶𝐺𝑥C_{G}(x)italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) as an infinite sequence facilitates proving Theorem 2 in the subsequent sections. For example, this definition is needed for the equivalences in Lemma 8 below. Color refinement is, nevertheless, an absolutely practical procedure. Indeed, if n𝑛nitalic_n-vertex graphs G𝐺Gitalic_G and H𝐻Hitalic_H are distinguishable by CR, then they are distinguishable after the n𝑛nitalic_n-th refinement round at latest in the sense that {{CGn(x)}}xV(G){{CHn(x)}}xV(H)subscriptsubscriptsuperscript𝐶𝑛𝐺𝑥𝑥𝑉𝐺subscriptsubscriptsuperscript𝐶𝑛𝐻𝑥𝑥𝑉𝐻\left\{\!\!\left\{C^{n}_{G}(x)\right\}\!\!\right\}_{x\in V(G)}\neq\left\{\!\!% \left\{C^{n}_{H}(x)\right\}\!\!\right\}_{x\in V(H)}{ { italic_C start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) } } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_G ) end_POSTSUBSCRIPT ≠ { { italic_C start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_H end_POSTSUBSCRIPT ( italic_x ) } } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_H ) end_POSTSUBSCRIPT. Note in this respect that the color names of CGr(x)subscriptsuperscript𝐶𝑟𝐺𝑥C^{r}_{G}(x)italic_C start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) increase exponentially with r𝑟ritalic_r if they are encoded in a straightforward way. This can be avoided by renaming the colors synchronously on G𝐺Gitalic_G and H𝐻Hitalic_H after each round.

3 Useful lemmas

As CG1(x)=degGxsubscriptsuperscript𝐶1𝐺𝑥subscriptdegree𝐺𝑥C^{1}_{G}(x)=\deg_{G}xitalic_C start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = roman_deg start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT italic_x, we have CG2(x)={{degG(y):yNG(x)}}C^{2}_{G}(x)=\{\!\!\{\deg_{G}(y)\,:\,\begin{array}[]{@{}l@{}}y\in N_{G}(x)\end% {array}\}\!\!\}italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = { { roman_deg start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_y ) : start_ARRAY start_ROW start_CELL italic_y ∈ italic_N start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) end_CELL end_ROW end_ARRAY } }, which can be referred to as the iterated degree of x𝑥xitalic_x. We begin with a particularly useful fact about the reconstructibility of iterated degrees.

Lemma 4 (Nash-Williams [15, Lemma 3.3]).

Suppose that graphs G𝐺Gitalic_G and H𝐻Hitalic_H have the same deck up to CR-equivalence, that is,

{{𝖢𝖱(Gx)}}xV(G)={{𝖢𝖱(Hy)}}yV(H).subscript𝖢𝖱𝐺𝑥𝑥𝑉𝐺subscript𝖢𝖱𝐻𝑦𝑦𝑉𝐻\left\{\!\!\left\{\operatorname{\mathsf{CR}}(G\setminus x)\right\}\!\!\right\}% _{x\in V(G)}=\left\{\!\!\left\{\operatorname{\mathsf{CR}}(H\setminus y)\right% \}\!\!\right\}_{y\in V(H)}.{ { sansserif_CR ( italic_G ∖ italic_x ) } } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_G ) end_POSTSUBSCRIPT = { { sansserif_CR ( italic_H ∖ italic_y ) } } start_POSTSUBSCRIPT italic_y ∈ italic_V ( italic_H ) end_POSTSUBSCRIPT .

If 𝖢𝖱(Gu)=𝖢𝖱(Hv)𝖢𝖱𝐺𝑢𝖢𝖱𝐻𝑣\operatorname{\mathsf{CR}}(G\setminus u)=\operatorname{\mathsf{CR}}(H\setminus v)sansserif_CR ( italic_G ∖ italic_u ) = sansserif_CR ( italic_H ∖ italic_v ) for a vertex uV(G)𝑢𝑉𝐺u\in V(G)italic_u ∈ italic_V ( italic_G ) and a vertex vV(H)𝑣𝑉𝐻v\in V(H)italic_v ∈ italic_V ( italic_H ), then CG2(u)=CH2(v)subscriptsuperscript𝐶2𝐺𝑢subscriptsuperscript𝐶2𝐻𝑣C^{2}_{G}(u)=C^{2}_{H}(v)italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_u ) = italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_H end_POSTSUBSCRIPT ( italic_v ).

If two graphs have different number of vertices, then they are straightforwardly distinguished by CR. Nevertheless, such a pair of graphs might still be similar in the sense that the CR colors occurring in them are the same, and the difference is only in the color multiplicities. In the proof of Theorem 2, this similarity concept will play an important role.

Definition 5.

We say that graphs A𝐴Aitalic_A and B𝐵Bitalic_B are CR-similar and write AB𝐴𝐵A\equiv Bitalic_A ≡ italic_B if {CA(x)}xV(A)={CB(x)}xV(B)subscriptsubscript𝐶𝐴𝑥𝑥𝑉𝐴subscriptsubscript𝐶𝐵𝑥𝑥𝑉𝐵\left\{C_{A}(x)\right\}_{x\in V(A)}=\left\{C_{B}(x)\right\}_{x\in V(B)}{ italic_C start_POSTSUBSCRIPT italic_A end_POSTSUBSCRIPT ( italic_x ) } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_A ) end_POSTSUBSCRIPT = { italic_C start_POSTSUBSCRIPT italic_B end_POSTSUBSCRIPT ( italic_x ) } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_B ) end_POSTSUBSCRIPT. That is, we require that the sets of the colors produced by CR on A𝐴Aitalic_A and B𝐵Bitalic_B be equal (although the multisets of these colors might be unequal).

Note that two graphs with different numbers of vertices can be CR-similar, for example, C3C4subscript𝐶3subscript𝐶4C_{3}\equiv C_{4}italic_C start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT ≡ italic_C start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT.

Lemma 6.
  1. 1.

    If Asuperscript𝐴A^{\prime}italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT is a proper subgraph of a connected graph A𝐴Aitalic_A, then AAnot-equivalent-to𝐴superscript𝐴A\not\equiv A^{\prime}italic_A ≢ italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT.

  2. 2.

    Let Asuperscript𝐴A^{\prime}italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT be a proper subgraph of A𝐴Aitalic_A and Bsuperscript𝐵B^{\prime}italic_B start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT be a proper subgraph of B𝐵Bitalic_B. Suppose that both A𝐴Aitalic_A and B𝐵Bitalic_B are connected. Then it is impossible that simultaneously AB𝐴superscript𝐵A\equiv B^{\prime}italic_A ≡ italic_B start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT and BA𝐵superscript𝐴B\equiv A^{\prime}italic_B ≡ italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT.

The proof is based on a characterization of the CR-color CG(x)subscript𝐶𝐺𝑥C_{G}(x)italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) in terms of the universal cover of the graph G𝐺Gitalic_G rooted at the vertex x𝑥xitalic_x. We first give the relevant definitions.

Let G𝐺Gitalic_G and K𝐾Kitalic_K be connected graphs, where G𝐺Gitalic_G is finite graph, while K𝐾Kitalic_K can be either finite or infinite. Let α𝛼\alphaitalic_α be a surjective homomorphism from K𝐾Kitalic_K onto G𝐺Gitalic_G. We call α𝛼\alphaitalic_α a covering map if its restriction to the neighborhood of each vertex in K𝐾Kitalic_K is bijective. If such an α𝛼\alphaitalic_α exists, we say that K𝐾Kitalic_K covers G𝐺Gitalic_G. A graph U𝑈Uitalic_U is called a universal cover of G𝐺Gitalic_G if U𝑈Uitalic_U covers every graph covering G𝐺Gitalic_G. A universal cover U=UG𝑈subscript𝑈𝐺U=U_{G}italic_U = italic_U start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT of G𝐺Gitalic_G is unique up to isomorphism. It can be seen as an unfolding of G𝐺Gitalic_G into a (possibly infinite) tree starting from an arbitrarily chosen vertex x𝑥xitalic_x of G𝐺Gitalic_G. Denote this unfolding by UG,xsubscript𝑈𝐺𝑥U_{G,x}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT and note that UG,xUGsubscript𝑈𝐺𝑥subscript𝑈𝐺U_{G,x}\cong U_{G}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT ≅ italic_U start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT whatever x𝑥xitalic_x. If G𝐺Gitalic_G is a tree, then UG,xGsubscript𝑈𝐺𝑥𝐺U_{G,x}\cong Gitalic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT ≅ italic_G. If G𝐺Gitalic_G contains a cycle, then UG,xsubscript𝑈𝐺𝑥U_{G,x}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT is an infinite tree.

The unfolding UG,xsubscript𝑈𝐺𝑥U_{G,x}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT can formally be described as follows. A sequence of vertices x0x1xksubscript𝑥0subscript𝑥1subscript𝑥𝑘x_{0}x_{1}\ldots x_{k}italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT … italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT in G𝐺Gitalic_G is called a walk starting at x0subscript𝑥0x_{0}italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT if every two successive vertices xisubscript𝑥𝑖x_{i}italic_x start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and xi+1subscript𝑥𝑖1x_{i+1}italic_x start_POSTSUBSCRIPT italic_i + 1 end_POSTSUBSCRIPT are adjacent. If xi+1xi1subscript𝑥𝑖1subscript𝑥𝑖1x_{i+1}\neq x_{i-1}italic_x start_POSTSUBSCRIPT italic_i + 1 end_POSTSUBSCRIPT ≠ italic_x start_POSTSUBSCRIPT italic_i - 1 end_POSTSUBSCRIPT for all 0<i<k0𝑖𝑘0<i<k0 < italic_i < italic_k, then the walk is non-backtracking. Now, Uxsubscript𝑈𝑥U_{x}italic_U start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT is the graph whose vertices are all non-backtracking walks in G𝐺Gitalic_G starting at x0=xsubscript𝑥0𝑥x_{0}=xitalic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT = italic_x, with any two walks of the form x0x1xksubscript𝑥0subscript𝑥1subscript𝑥𝑘x_{0}x_{1}\ldots x_{k}italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT … italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT and x0x1xkxk+1subscript𝑥0subscript𝑥1subscript𝑥𝑘subscript𝑥𝑘1x_{0}x_{1}\ldots x_{k}x_{k+1}italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT … italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_k + 1 end_POSTSUBSCRIPT being adjacent.

A straightforward inductive argument shows that a covering map α𝛼\alphaitalic_α preserves the coloring produced by CR, that is, CKr(u)=CGr(α(u))superscriptsubscript𝐶𝐾𝑟𝑢superscriptsubscript𝐶𝐺𝑟𝛼𝑢C_{K}^{r}(u)=C_{G}^{r}(\alpha(u))italic_C start_POSTSUBSCRIPT italic_K end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT ( italic_u ) = italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT ( italic_α ( italic_u ) ) for all r𝑟ritalic_r. This has the following consequence. Let x𝑥xitalic_x be a vertex of a connected graph G𝐺Gitalic_G and y𝑦yitalic_y be a vertex of a connected graph H𝐻Hitalic_H. If UG,xsubscript𝑈𝐺𝑥U_{G,x}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT and UH,ysubscript𝑈𝐻𝑦U_{H,y}italic_U start_POSTSUBSCRIPT italic_H , italic_y end_POSTSUBSCRIPT are isomorphic as rooted trees, then CG(x)=CH(y)subscript𝐶𝐺𝑥subscript𝐶𝐻𝑦C_{G}(x)=C_{H}(y)italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = italic_C start_POSTSUBSCRIPT italic_H end_POSTSUBSCRIPT ( italic_y ). The converse implication is also true; see, e.g., Lemmas 2.3 and 2.4 in [11]. We state this equivalence in a more precise form. Let UG,xrsuperscriptsubscript𝑈𝐺𝑥𝑟U_{G,x}^{r}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT denote the rooted tree UG,xsubscript𝑈𝐺𝑥U_{G,x}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT truncated at level r𝑟ritalic_r.

Lemma 7.

CGr(x)=CHr(y)superscriptsubscript𝐶𝐺𝑟𝑥superscriptsubscript𝐶𝐻𝑟𝑦C_{G}^{r}(x)=C_{H}^{r}(y)italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT ( italic_x ) = italic_C start_POSTSUBSCRIPT italic_H end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT ( italic_y ) if and only if UG,xrUH,yrsuperscriptsubscript𝑈𝐺𝑥𝑟superscriptsubscript𝑈𝐻𝑦𝑟U_{G,x}^{r}\cong U_{H,y}^{r}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT ≅ italic_U start_POSTSUBSCRIPT italic_H , italic_y end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT, where \cong denotes the isomorphism of rooted trees.

The characterization of CR-colors in terms of universal covers readily implies the following equivalences.

Lemma 8.

The following conditions are equivalent for connected graphs G𝐺Gitalic_G and H𝐻Hitalic_H:

  1. 1.

    GH𝐺𝐻G\equiv Hitalic_G ≡ italic_H;

  2. 2.

    UGUHsubscript𝑈𝐺subscript𝑈𝐻U_{G}\cong U_{H}italic_U start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ≅ italic_U start_POSTSUBSCRIPT italic_H end_POSTSUBSCRIPT;

  3. 3.

    {CG(x)}xV(G){CH(y)}yV(H)subscriptsubscript𝐶𝐺𝑥𝑥𝑉𝐺subscriptsubscript𝐶𝐻𝑦𝑦𝑉𝐻\left\{C_{G}(x)\right\}_{x\in V(G)}\cap\left\{C_{H}(y)\right\}_{y\in V(H)}\neq\emptyset{ italic_C start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_G ) end_POSTSUBSCRIPT ∩ { italic_C start_POSTSUBSCRIPT italic_H end_POSTSUBSCRIPT ( italic_y ) } start_POSTSUBSCRIPT italic_y ∈ italic_V ( italic_H ) end_POSTSUBSCRIPT ≠ ∅.

Lemma 8 has a simple consequence about the CR-similarity of not necessarily connected graphs. For graphs G1,,Gssubscript𝐺1subscript𝐺𝑠G_{1},\ldots,G_{s}italic_G start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , … , italic_G start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT, we write G1++Gssubscript𝐺1subscript𝐺𝑠G_{1}+\cdots+G_{s}italic_G start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + ⋯ + italic_G start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT to denote the vertex-disjoint union of these graphs.

Lemma 9.
  1. 1.

    If GH𝐺𝐻G\equiv Hitalic_G ≡ italic_H, then for every connected component Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT of G𝐺Gitalic_G there is a connected component Hsuperscript𝐻H^{\prime}italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT of H𝐻Hitalic_H such that GHsuperscript𝐺superscript𝐻G^{\prime}\equiv H^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ≡ italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT (and vice versa).

  2. 2.

    If GH𝐺𝐻G\equiv Hitalic_G ≡ italic_H where G𝐺Gitalic_G is connected and H=H+H′′𝐻superscript𝐻superscript𝐻′′H=H^{\prime}+H^{\prime\prime}italic_H = italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT + italic_H start_POSTSUPERSCRIPT ′ ′ end_POSTSUPERSCRIPT, then GHH′′𝐺superscript𝐻superscript𝐻′′G\equiv H^{\prime}\equiv H^{\prime\prime}italic_G ≡ italic_H start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ≡ italic_H start_POSTSUPERSCRIPT ′ ′ end_POSTSUPERSCRIPT.

Proof of Lemma 6.

Let us extend the notation UG,xrsuperscriptsubscript𝑈𝐺𝑥𝑟U_{G,x}^{r}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT to not necessarily connected graphs by setting UG,xr=UG,xrsuperscriptsubscript𝑈𝐺𝑥𝑟superscriptsubscript𝑈superscript𝐺𝑥𝑟U_{G,x}^{r}=U_{G^{\prime},x}^{r}italic_U start_POSTSUBSCRIPT italic_G , italic_x end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT = italic_U start_POSTSUBSCRIPT italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_x end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT where Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT is the connected component of G𝐺Gitalic_G containing the vertex x𝑥xitalic_x.

1. Let the positive integer D𝐷Ditalic_D be one more than the diameter of A𝐴Aitalic_A. Fix a vertex u𝑢uitalic_u of the subgraph Asuperscript𝐴A^{\prime}italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT maximizing the number of vertices in the truncated tree UA,uDsuperscriptsubscript𝑈superscript𝐴𝑢𝐷U_{A^{\prime},u}^{D}italic_U start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT. The description of a universal cover in terms of non-backtracking walks readily implies that UA,uDsuperscriptsubscript𝑈𝐴𝑢𝐷U_{A,u}^{D}italic_U start_POSTSUBSCRIPT italic_A , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT has strictly more vertices than UA,uDsuperscriptsubscript𝑈superscript𝐴𝑢𝐷U_{A^{\prime},u}^{D}italic_U start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT and, hence, than UA,wDsuperscriptsubscript𝑈superscript𝐴𝑤𝐷U_{A^{\prime},w}^{D}italic_U start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_w end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT for any vertex w𝑤witalic_w of Asuperscript𝐴A^{\prime}italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT. Indeed, our choice of D𝐷Ditalic_D ensures that there is a walk of length at most D𝐷Ditalic_D starting from u𝑢uitalic_u and passing through an edge of A𝐴Aitalic_A absent in Asuperscript𝐴A^{\prime}italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT. Lemma 7, therefore, implies that CA(u)CA(w)subscript𝐶𝐴𝑢subscript𝐶superscript𝐴𝑤C_{A}(u)\neq C_{A^{\prime}}(w)italic_C start_POSTSUBSCRIPT italic_A end_POSTSUBSCRIPT ( italic_u ) ≠ italic_C start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT ( italic_w ) for any wV(A)𝑤𝑉superscript𝐴w\in V(A^{\prime})italic_w ∈ italic_V ( italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ).

2. Towards a contradiction, assume that AB𝐴superscript𝐵A\equiv B^{\prime}italic_A ≡ italic_B start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT and BA𝐵superscript𝐴B\equiv A^{\prime}italic_B ≡ italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT. Let D𝐷Ditalic_D be the positive integer that is one more than the larger of the diameters of A𝐴Aitalic_A and B𝐵Bitalic_B. Choose a vertex u𝑢uitalic_u of the subgraph Asuperscript𝐴A^{\prime}italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT maximizing the number of vertices in the truncated tree UA,uDsuperscriptsubscript𝑈superscript𝐴𝑢𝐷U_{A^{\prime},u}^{D}italic_U start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT. As in the proof of the first part, note that UA,uDsuperscriptsubscript𝑈𝐴𝑢𝐷U_{A,u}^{D}italic_U start_POSTSUBSCRIPT italic_A , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT has strictly more vertices than UA,uDsuperscriptsubscript𝑈superscript𝐴𝑢𝐷U_{A^{\prime},u}^{D}italic_U start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT and, hence, than UA,wDsuperscriptsubscript𝑈superscript𝐴𝑤𝐷U_{A^{\prime},w}^{D}italic_U start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_w end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT for any vertex w𝑤witalic_w of Asuperscript𝐴A^{\prime}italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT. The assumption BA𝐵superscript𝐴B\equiv A^{\prime}italic_B ≡ italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT implies by Lemma 7 that every tree UA,wDsuperscriptsubscript𝑈superscript𝐴𝑤𝐷U_{A^{\prime},w}^{D}italic_U start_POSTSUBSCRIPT italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , italic_w end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT for wV(A)𝑤𝑉superscript𝐴w\in V(A^{\prime})italic_w ∈ italic_V ( italic_A start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) has an isomorphic mate UB,wDsuperscriptsubscript𝑈𝐵superscript𝑤𝐷U_{B,w^{\prime}}^{D}italic_U start_POSTSUBSCRIPT italic_B , italic_w start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT for some wV(B)superscript𝑤𝑉𝐵w^{\prime}\in V(B)italic_w start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ∈ italic_V ( italic_B ) and vice versa. Therefore, UA,uDsuperscriptsubscript𝑈𝐴𝑢𝐷U_{A,u}^{D}italic_U start_POSTSUBSCRIPT italic_A , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT has strictly more vertices than UB,wDsuperscriptsubscript𝑈𝐵𝑤𝐷U_{B,w}^{D}italic_U start_POSTSUBSCRIPT italic_B , italic_w end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT for any vertex w𝑤witalic_w of B𝐵Bitalic_B. The same argument with the roles of A𝐴Aitalic_A and B𝐵Bitalic_B interchanged provides us with a vertex v𝑣vitalic_v in B𝐵Bitalic_B which has strictly more vertices than UA,wDsuperscriptsubscript𝑈𝐴𝑤𝐷U_{A,w}^{D}italic_U start_POSTSUBSCRIPT italic_A , italic_w end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT for any vertex w𝑤witalic_w of A𝐴Aitalic_A, in particular, than UA,uDsuperscriptsubscript𝑈𝐴𝑢𝐷U_{A,u}^{D}italic_U start_POSTSUBSCRIPT italic_A , italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT. This contradiction completes the proof. ∎

4 Proof of Theorem 2

Let G𝐺Gitalic_G be a connected graph and H𝐻Hitalic_H any disconnected graph. We have to prove that the multisets {{𝖢𝖱(Gx)}}xV(G)subscript𝖢𝖱𝐺𝑥𝑥𝑉𝐺\left\{\!\!\left\{\operatorname{\mathsf{CR}}(G\setminus x)\right\}\!\!\right\}% _{x\in V(G)}{ { sansserif_CR ( italic_G ∖ italic_x ) } } start_POSTSUBSCRIPT italic_x ∈ italic_V ( italic_G ) end_POSTSUBSCRIPT and {{𝖢𝖱(Hy)}}yV(H)subscript𝖢𝖱𝐻𝑦𝑦𝑉𝐻\left\{\!\!\left\{\operatorname{\mathsf{CR}}(H\setminus y)\right\}\!\!\right\}% _{y\in V(H)}{ { sansserif_CR ( italic_H ∖ italic_y ) } } start_POSTSUBSCRIPT italic_y ∈ italic_V ( italic_H ) end_POSTSUBSCRIPT are unequal. We will assume that these multisets are equal and derive a contradiction.

Let H1,,Hssubscript𝐻1subscript𝐻𝑠H_{1},\ldots,H_{s}italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , … , italic_H start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT, where s2𝑠2s\geq 2italic_s ≥ 2, be the connected components of H𝐻Hitalic_H. Let V=V(H)𝑉𝑉𝐻V=V(H)italic_V = italic_V ( italic_H ) and Vi=V(Hi)subscript𝑉𝑖𝑉subscript𝐻𝑖V_{i}=V(H_{i})italic_V start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT = italic_V ( italic_H start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) for is𝑖𝑠i\leq sitalic_i ≤ italic_s. Identify V(G)𝑉𝐺V(G)italic_V ( italic_G ) with V𝑉Vitalic_V so that

𝖢𝖱(Gv)=𝖢𝖱(Hv)𝖢𝖱𝐺𝑣𝖢𝖱𝐻𝑣\operatorname{\mathsf{CR}}(G\setminus v)=\operatorname{\mathsf{CR}}(H\setminus v)sansserif_CR ( italic_G ∖ italic_v ) = sansserif_CR ( italic_H ∖ italic_v ) (1)

for all vV𝑣𝑉v\in Vitalic_v ∈ italic_V. By Lemma 4, this yields

CG2(v)=CH2(v)subscriptsuperscript𝐶2𝐺𝑣subscriptsuperscript𝐶2𝐻𝑣C^{2}_{G}(v)=C^{2}_{H}(v)italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_v ) = italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_H end_POSTSUBSCRIPT ( italic_v )

for all vV𝑣𝑉v\in Vitalic_v ∈ italic_V. Taking into account the decomposition of H𝐻Hitalic_H into connected components, we have

CG2(v)=CHi2(v) if vVi.subscriptsuperscript𝐶2𝐺𝑣subscriptsuperscript𝐶2subscript𝐻𝑖𝑣 if 𝑣subscript𝑉𝑖C^{2}_{G}(v)=C^{2}_{H_{i}}(v)\text{ if }v\in V_{i}.italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_v ) = italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_H start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_v ) if italic_v ∈ italic_V start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT . (2)

Denote the set of articulation (or cut) vertices of G𝐺Gitalic_G by A𝐴Aitalic_A, and set B=VA𝐵𝑉𝐴B=V\setminus Aitalic_B = italic_V ∖ italic_A. Let Bi=BVisubscript𝐵𝑖𝐵subscript𝑉𝑖B_{i}=B\cap V_{i}italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT = italic_B ∩ italic_V start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT. If vBi𝑣subscript𝐵𝑖v\in B_{i}italic_v ∈ italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT, then Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v is connected and Hv=H1++Hiv++Hs𝐻𝑣subscript𝐻1subscript𝐻𝑖𝑣subscript𝐻𝑠H\setminus v=H_{1}+\ldots+H_{i}\setminus v+\ldots+H_{s}italic_H ∖ italic_v = italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + … + italic_H start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ∖ italic_v + … + italic_H start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT. By Part 2 of Lemma 9, Equality (1) implies that

GvHivHj if vBi and ji.𝐺𝑣subscript𝐻𝑖𝑣subscript𝐻𝑗 if 𝑣subscript𝐵𝑖 and 𝑗𝑖G\setminus v\equiv H_{i}\setminus v\equiv H_{j}\text{ if }v\in B_{i}\text{ and% }j\neq i.italic_G ∖ italic_v ≡ italic_H start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ∖ italic_v ≡ italic_H start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT if italic_v ∈ italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and italic_j ≠ italic_i . (3)

Applying the similarity GvHj𝐺𝑣subscript𝐻𝑗G\setminus v\equiv H_{j}italic_G ∖ italic_v ≡ italic_H start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT to any two vertices in Bisubscript𝐵𝑖B_{i}italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT, we derive the similarity GvGv𝐺𝑣𝐺superscript𝑣G\setminus v\equiv G\setminus v^{\prime}italic_G ∖ italic_v ≡ italic_G ∖ italic_v start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT whenever v,vBi𝑣superscript𝑣subscript𝐵𝑖v,v^{\prime}\in B_{i}italic_v , italic_v start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ∈ italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT. Applying Lemma 4 in the particular case of G=H𝐺𝐻G=Hitalic_G = italic_H, we conclude that

CG2(v)=CG2(v) for all v,vBi.formulae-sequencesubscriptsuperscript𝐶2𝐺𝑣subscriptsuperscript𝐶2𝐺superscript𝑣 for all 𝑣superscript𝑣subscript𝐵𝑖C^{2}_{G}(v)=C^{2}_{G}(v^{\prime})\text{ for all }v,v^{\prime}\in B_{i}.italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_v ) = italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_v start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) for all italic_v , italic_v start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ∈ italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT . (4)

Let ij𝑖𝑗i\neq jitalic_i ≠ italic_j and assume that Bisubscript𝐵𝑖B_{i}\neq\emptysetitalic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ≠ ∅ and Bjsubscript𝐵𝑗B_{j}\neq\emptysetitalic_B start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ≠ ∅. Let xBi𝑥subscript𝐵𝑖x\in B_{i}italic_x ∈ italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and yBj𝑦subscript𝐵𝑗y\in B_{j}italic_y ∈ italic_B start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT. By (3), we obtain HixHjsubscript𝐻𝑖𝑥subscript𝐻𝑗H_{i}\setminus x\equiv H_{j}italic_H start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ∖ italic_x ≡ italic_H start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT and HjyHisubscript𝐻𝑗𝑦subscript𝐻𝑖H_{j}\setminus y\equiv H_{i}italic_H start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ∖ italic_y ≡ italic_H start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT, which contradicts Part 2 of Lemma 6. Therefore, only one of the sets Bisubscript𝐵𝑖B_{i}italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is not empty, that is, B=Bi𝐵subscript𝐵𝑖B=B_{i}italic_B = italic_B start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT for some i𝑖iitalic_i. Without loss of generality, we suppose that B=B1𝐵subscript𝐵1B=B_{1}italic_B = italic_B start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT.

Claim A.   B1=V1subscript𝐵1subscript𝑉1B_{1}=V_{1}italic_B start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = italic_V start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT.

Proof of Claim A.  Towards a contradiction, assume that V1subscript𝑉1V_{1}italic_V start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT contains a cut vertex v𝑣vitalic_v of G𝐺Gitalic_G. By Part 1 of Lemma 9, Equality (1) implies that the disconnected graph Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v has a connected component Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT such that GH2superscript𝐺subscript𝐻2G^{\prime}\equiv H_{2}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ≡ italic_H start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT. Choose a vertex xB𝑥𝐵x\in Bitalic_x ∈ italic_B in a connected component of Gv𝐺𝑣G\setminus vitalic_G ∖ italic_v different from Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT. Since xB1𝑥subscript𝐵1x\in B_{1}italic_x ∈ italic_B start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT, the similarity (3) implies that GxH2𝐺𝑥subscript𝐻2G\setminus x\equiv H_{2}italic_G ∖ italic_x ≡ italic_H start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT and, therefore, GxG𝐺𝑥superscript𝐺G\setminus x\equiv G^{\prime}italic_G ∖ italic_x ≡ italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT. However, Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT is a subgraph of the connected graph Gx𝐺𝑥G\setminus xitalic_G ∖ italic_x, contrary to Part 1 of Lemma 6. \,\triangleleft

By Claim 4 and Equality (4), we have

CG2(x)=CG2(x) for all x,xV1.formulae-sequencesubscriptsuperscript𝐶2𝐺𝑥subscriptsuperscript𝐶2𝐺superscript𝑥 for all 𝑥superscript𝑥subscript𝑉1C^{2}_{G}(x)=C^{2}_{G}(x^{\prime})\text{ for all }x,x^{\prime}\in V_{1}.italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x ) = italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_G end_POSTSUBSCRIPT ( italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) for all italic_x , italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ∈ italic_V start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT .

Taking into account Equality (2), this implies that

CH12(x)=CH12(x) for all x,xVi.formulae-sequencesubscriptsuperscript𝐶2subscript𝐻1𝑥subscriptsuperscript𝐶2subscript𝐻1superscript𝑥 for all 𝑥superscript𝑥subscript𝑉𝑖C^{2}_{H_{1}}(x)=C^{2}_{H_{1}}(x^{\prime})\text{ for all }x,x^{\prime}\in V_{i}.italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_x ) = italic_C start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) for all italic_x , italic_x start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ∈ italic_V start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT . (5)

In particular, H1subscript𝐻1H_{1}italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT is a regular graph, say, of degree d𝑑ditalic_d.

Consider the block-cut tree of G𝐺Gitalic_G. Recall that it describes the decomposition of G𝐺Gitalic_G into biconnected components, that is, maximal biconnected subgraphs, which are also called blocks. The vertex set of the tree consists of the blocks and the cut vertices of G𝐺Gitalic_G. A block M𝑀Mitalic_M is adjacent to a cut vertex c𝑐citalic_c if cM𝑐𝑀c\in Mitalic_c ∈ italic_M.

Let L𝐿Litalic_L be a block that is a leaf in the block-cut tree of G𝐺Gitalic_G. Let a𝑎aitalic_a be the single cut vertex of G𝐺Gitalic_G belonging to L𝐿Litalic_L. By Claim 4, a𝑎aitalic_a belongs to A=VB=V2Vs𝐴𝑉𝐵subscript𝑉2subscript𝑉𝑠A=V\setminus B=V_{2}\cup\ldots\cup V_{s}italic_A = italic_V ∖ italic_B = italic_V start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ∪ … ∪ italic_V start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT, and the other vertices of L𝐿Litalic_L belong to B=B1=V1𝐵subscript𝐵1subscript𝑉1B=B_{1}=V_{1}italic_B = italic_B start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = italic_V start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT. Without loss of generality, suppose that aV2𝑎subscript𝑉2a\in V_{2}italic_a ∈ italic_V start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT. Let x𝑥xitalic_x be a vertex in L𝐿Litalic_L adjacent to a𝑎aitalic_a. Since xB1𝑥subscript𝐵1x\in B_{1}italic_x ∈ italic_B start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT, the similarity (3) implies that

GxH1xH2.𝐺𝑥subscript𝐻1𝑥subscript𝐻2G\setminus x\equiv H_{1}\setminus x\equiv H_{2}.italic_G ∖ italic_x ≡ italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∖ italic_x ≡ italic_H start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT . (6)

Since H1subscript𝐻1H_{1}italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT is a d𝑑ditalic_d-regular graph, every vertex of H1xsubscript𝐻1𝑥H_{1}\setminus xitalic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∖ italic_x has degree d1𝑑1d-1italic_d - 1 or d𝑑ditalic_d. By the similarity (6), the neighbors of a𝑎aitalic_a in H2subscript𝐻2H_{2}italic_H start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT are of degree d1𝑑1d-1italic_d - 1 or d𝑑ditalic_d. By Equality (2), the same holds true for a𝑎aitalic_a in G𝐺Gitalic_G. Therefore, every connected component Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT of Ga𝐺𝑎G\setminus aitalic_G ∖ italic_a has a vertex of degree d2𝑑2d-2italic_d - 2 or d1𝑑1d-1italic_d - 1 (namely a neighbor of a𝑎aitalic_a in G𝐺Gitalic_G). As a consequence, GH1not-equivalent-tosuperscript𝐺subscript𝐻1G^{\prime}\not\equiv H_{1}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ≢ italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT for every Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT. On the other hand, Equality (1) implies that

GaH1+H2a++Hs.𝐺𝑎subscript𝐻1subscript𝐻2𝑎subscript𝐻𝑠G\setminus a\equiv H_{1}+H_{2}\setminus a+\cdots+H_{s}.italic_G ∖ italic_a ≡ italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + italic_H start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ∖ italic_a + ⋯ + italic_H start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT .

By Part 1 of Lemma 9, we conclude that H1Gsubscript𝐻1superscript𝐺H_{1}\equiv G^{\prime}italic_H start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ≡ italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT for some component Gsuperscript𝐺G^{\prime}italic_G start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT of Ga𝐺𝑎G\setminus aitalic_G ∖ italic_a. This contradiction completes the proof of Theorem 2.

References

  • [1] D. Angluin. Local and global properties in networks of processors (extended abstract). In Proc. of the 12th Annual ACM Symposium on Theory of Computing (STOC’80), pages 82–93. ACM, 1980.
  • [2] L. Babai, P. Erdös, and S. M. Selkow. Random graph isomorphism. SIAM J. Comput., 9(3):628–635, 1980.
  • [3] A. Bowler, P. Brown, T. Fenner, and W. Myrvold. Recognizing connectedness from vertex-deleted subgraphs. Journal of Graph Theory, 67(4):285–299, 2011.
  • [4] L. Cotta, C. Morris, and B. Ribeiro. Reconstruction for powerful graph representations. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan, editors, Advances in Neural Information Processing Systems (NeurIPS 2021), volume 34, pages 1713–1726. Curran Associates, Inc., 2021.
  • [5] Z. Dvořák. On recognizing graphs by numbers of homomorphisms. Journal of Graph Theory, 64(4):330–342, 2010.
  • [6] C. Groenland, T. Johnston, A. Scott, and J. Tan. Reconstruction from smaller cards. Technical report, arxiv.org/abs/2103.13359, 2023.
  • [7] M. Grohe, K. Kersting, M. Mladenov, and P. Schweitzer. Color refinement and its applications. In An Introduction to Lifted Probabilistic Inference. The MIT Press, 2021.
  • [8] F. Harary. On the reconstruction of a graph from a collection of subgraphs. In Theory of Graphs and its Applications, pages 47–52. Academic Press: New York, 1964.
  • [9] F. Harary. A survey of the reconstruction conjecture. In Graphs and Combinatorics, volume 406 of Lect. Notes Math, pages 18–28. Springer: Berlin, Heidelberg, 1974.
  • [10] N. Immerman and E. Lander. Describing graphs: A first-order approach to graph canonization. In A. Selman, editor, Complexity Theory Retrospective, pages 59–81. Springer-Verlag, 1990.
  • [11] A. Krebs and O. Verbitsky. Universal covers, color refinement, and two-variable counting logic: Lower bounds for the depth. In 30th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS’15), pages 689–700. IEEE Computer Society, 2015.
  • [12] R. D. Mauldin, editor. The Scottish Book. Birkhäuser, Boston, MA, 1981. Mathematics from the Scottish Café, Including selected papers presented at the Scottish Book Conference held at North Texas State University, Denton, Tex., May 1979.
  • [13] C. Morris, Y. Lipman, H. Maron, B. Rieck, N. M. Kriege, M. Grohe, M. Fey, and K. Borgwardt. Weisfeiler and Leman go machine learning: The story so far. Journal of Machine Learning Research, 24(333):1–59, 2023.
  • [14] C. Morris, M. Ritzert, M. Fey, W. L. Hamilton, J. E. Lenssen, G. Rattan, and M. Grohe. Weisfeiler and Leman go neural: Higher-order graph neural networks. In The 33-rd Conference on Artificial Intelligence (AAAI’19), pages 4602–4609. AAAI Press, 2019.
  • [15] C. S. J. A. Nash-Williams. The reconstruction problem. In Selected topics in graph theory, pages 205–236. Academic Press: New York, 1978.
  • [16] C. Riveros, B. Scheidt, and N. Schweikardt. Using color refinement to boost enumeration and counting for acyclic CQs of binary schemas. Technical report, arxiv.org/abs/2405.12358, 2024.
  • [17] E. R. Scheinerman and D. H. Ullman. Fractional graph theory. A rational approach to the theory of graphs. Wiley: John Wiley & Sons, 1997.
  • [18] N. Shervashidze, P. Schweitzer, E. J. van Leeuwen, K. Mehlhorn, and K. M. Borgwardt. Weisfeiler-Lehman graph kernels. Journal of Machine Learning Research, 12:2539–2561, 2011.
  • [19] S. M. Ulam. A collection of mathematical problems, volume 8 of Intersci. Tracts Pure Appl. Math. Interscience Publishers, New York, NY, 1960.
  • [20] B. Weisfeiler and A. Leman. The reduction of a graph to canonical form and the algebra which appears therein. NTI, Ser. 2, 9:12–16, 1968. English translation is available at https://www.iti.zcu.cz/wl2018/pdf/wl_paper_translation.pdf.