Open Access
This article is

- freely available
- re-usable

*Algorithms*
**2018**,
*11*(4),
40;
https://doi.org/10.3390/a11040040

Article

Connectivity and Hamiltonicity of Canonical Colouring Graphs of Bipartite and Complete Multipartite Graphs

^{1}

Department of Mathematics, University of Hawaii at Manoa, Honolulu, HI 96822, USA

^{2}

Smith College, Northampton, MA 01063, USA

^{3}

Department of Mathematics and Statistics, University of Victoria, Victoria, BC V8W 2Y2, Canada

^{*}

Author to whom correspondence should be addressed.

Received: 12 February 2018 / Accepted: 24 March 2018 / Published: 29 March 2018

## Abstract

**:**

A k-colouring of a graph G with colours $1,2,\dots ,k$ is canonical with respect to an ordering $\pi ={v}_{1},{v}_{2},\dots ,{v}_{n}$ of the vertices of G if adjacent vertices are assigned different colours and, for $1\le c\le k$, whenever colour c is assigned to a vertex ${v}_{i}$, each colour less than c has been assigned to a vertex that precedes ${v}_{i}$ in $\pi $. The canonical k-colouring graph of G with respect to π is the graph ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ with vertex set equal to the set of canonical k-colourings of G with respect to $\pi $, with two of these being adjacent if and only if they differ in the colour assigned to exactly one vertex. Connectivity and Hamiltonicity of canonical colouring graphs of bipartite and complete multipartite graphs is studied. It is shown that for complete multipartite graphs, and bipartite graphs there exists a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is connected for large enough values of k. It is proved that a canonical colouring graph of a complete multipartite graph usually does not have a Hamilton cycle, and that there exists a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{m,n}\right)$ has a Hamilton path for all $k\ge 3$. The paper concludes with a detailed consideration of ${\mathrm{Can}}_{k}^{\pi}\left({K}_{2,2,\dots ,2}\right)$. For each $k\ge \chi $ and all vertex orderings $\pi $, it is proved that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{2,2,\dots ,2}\right)$ is either disconnected or isomorphic to a particular tree.

Keywords:

reconfiguration problems; graph colouring; Hamilton cycles; Gray codes## 1. Introduction

One definition of a k-colouring of a graph G is as a function $f:V\left(G\right)\to \{1,2,\dots ,k\}$ such that $f\left(x\right)\ne f\left(y\right)$ whenever $xy\in E\left(G\right)$. Under this definition, k-colourings ${f}_{1}$ and ${f}_{2}$ are different whenever there exists a vertex x such that ${f}_{1}\left(x\right)\ne {f}_{2}\left(x\right)$. Each k-colouring f is equivalent to a k-tuple $({f}^{-1}\left(1\right),{f}^{-1}\left(2\right),\dots ,{f}^{-1}\left(k\right))$ in which the set of non-empty components is a partition of $V\left(G\right)$ into independent sets.

A k-colouring $f:V\left(G\right)\to \{1,2,\dots ,k\}$ is canonical with respect to an ordering $\pi ={v}_{1},{v}_{2},\dots ,{v}_{n}$ of the vertices of G if, whenever $f\left({v}_{i}\right)=c$, every colour less than c has been assigned to some vertex that precedes ${v}_{i}$ in $\pi $. Thus ${v}_{1}$ is necessarily assigned colour 1, and colour 3 can only be assigned to some vertex after colour 2 has been assigned to a vertex that appears earlier in the sequence $\pi $. Note that canonical colourings may be very different than the colourings arising from applying the usual greedy colouring algorithm to G using the vertex ordering $\pi $.

Define an equivalence relation ∼ on the set of k-colourings of G by ${f}_{1}\sim {f}_{2}$ if and only if ${f}_{1}$ and ${f}_{2}$ determine the same partition of $V\left(G\right)$ into independent sets. The set of canonical k-colourings of G with respect to $\pi $ is then the set of representatives of the equivalence classes of ∼ that are lexicographically least with respect to $\pi $. Thus, canonical k-colourings exist for every $k\ge \chi \left(G\right)$ and every proper colouring is equivalent to a canonical colouring.

For an ordering $\pi $ of the vertices of a graph G, the canonical k-colouring graph of G, denoted ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$, has vertex set equal to the set of canonical k-colourings of G with respect to $\pi $, with two of these being adjacent when they differ in the colour assigned to exactly one vertex. While every ordering gives a set of representatives of the possible k-colourings, different orderings can lead to different canonical k-colourings graphs. Examples of the canonical 3-colouring graph of the path on 4 vertices are given in Figure 1 for three different orderings of the vertices of the path. When a canonical colour graph is connected, any given canonical k-colouring can be reconfigured into any other via a sequence of recolourings which each change the colour of exactly one vertex. When it is Hamiltonian, there is a cyclic list that contains all of the k-colourings of G and consecutive elements of the list differ in the colour of exactly one vertex, that is, there is a cyclic Gray code of the k-colourings of G.

This paper is organized as follows. Relevant definitions and background information are reviewed in Section 2. A generalization of a lemma of [1] concerning vertex orderings such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is disconnected for all $k\ge \chi \left(G\right)$ is proved. Connectivity and Hamiltonicity of canonical colouring graphs of unions and joins of graphs are considered in Section 3. The main focus is on the situation where one of the graphs involved is a complete graph or a complement of a complete graph. For $n\ge 1$ and any vertex ordering $\pi $, canonical k-colourings of ${\overline{K}}_{n}$ correspond exactly to partitions of $\{1,2,\dots ,n\}$ with at most k cells. Our results give a Gray code listing of these partitions similar to that of Kaye [2]. Since the complete multipartite graph ${K}_{{n}_{1},{n}_{2},\dots ,{n}_{r}}$ is the join of ${\overline{K}}_{{n}_{1}},{\overline{K}}_{{n}_{2}},\dots ,{\overline{K}}_{{n}_{r}}$, our results show that there are vertex orderings $\pi $ for which ${\mathrm{Can}}_{k}^{\pi}\left({K}_{{n}_{1},{n}_{2},\dots ,{n}_{r}}\right)$ is connected whenever $k\ge r$. In Section 4, we first show that there exists a vertex ordering $\pi $ such that the canonical k-colouring graph of a bipartite graph is connected whenever $k\ge 1+\left|V\right|/2$, and then give an example showing that this bound is the best possible. We then prove a negative result which implies that complete multipartite graphs with at least two nontrivial parts can not have Hamiltonian canonical colouring graphs, and there cannot be a Hamilton path if there are at least three parts of size that have at least two. This leaves open the possibility that canonical colouring graphs of complete bipartite graphs may have a Hamilton path. We show that there exists an ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{m,n}\right)$ has a Hamilton path for all $k\ge 3$. In the final section of the paper, we study the canonical k-colouring graph of the complete multipartite graph in which each part has exactly two vertices. We show that, for any vertex ordering $\pi $ and any integer k at least as large as the number of parts, the canonical k-colouring graph is either disconnected, or isomorphic to a particular tree.

Throughout the paper, proofs of existence results are constructive and lead to algorithms which generate the desired sequences.

## 2. Background, and a Preliminary Result

For basic definitions in graph theory, we refer to the text of Bondy and Murty [3].

Before briefly surveying some previous research on colour graphs we recall the definition of $\mathit{col}\left(G\right)$, the colouring number of G. Let $\pi ={x}_{1},{x}_{2},\dots ,{x}_{n}$ be an ordering of the vertices of G. Let ${H}_{i}$ be the subgraph of G induced by $\{{x}_{1},{x}_{2},\dots ,{x}_{i}\}$, for $i=1,2,\dots ,n$. Define ${D}_{\pi}={max}_{1\le i\le n}{d}_{{H}_{i}}\left({x}_{i}\right)$. Then $\mathit{col}\left(G\right)={min}_{\pi}{D}_{\pi}+1$. Equivalently, $\mathit{col}\left(G\right)=1+max\delta \left(H\right)$, where the maximum is taken over all subgraphs of G. The quantity $\mathit{col}\left(G\right)$ is an upper bound on the number of colours needed if the greedy colouring algorithm is applied to G and vertices are coloured in the order $\pi $. Hence $\chi \left(G\right)\le \mathit{col}\left(G\right)\le \Delta \left(G\right)+1$.

For $k\ge 1$, let ${\mathcal{F}}_{k}\left(G\right)$ be the set of k-colourings of a graph G. The k-colouring graph of G, denoted ${\mathcal{C}}_{k}\left(G\right)$, has vertex set ${\mathcal{F}}_{k}\left(G\right)$, with two k-colourings being adjacent if and only if they differ in the colour of exactly one vertex. For example, the 3-colouring graph of a path on four vertices is given in Figure 2. This is an example of a reconfiguration graph in which vertices represent feasible solutions to a problem and there is an edge between two solutions if one can be transformed to the other by some allowable reconfiguration rule. There is a vast literature on the complexity of reconfiguration problems, for example see [4,5]. The graph ${\mathcal{C}}_{k}\left(G\right)$ is the most studied of the various colour graphs (that is, among the different allowable sets of colourings, and different reconfiguration rules). Connectivity of ${\mathcal{C}}_{k}\left(G\right)$ arises in random sampling of k-colourings, and approximating the number of k-colourings, for example see [6,7,8]. Dyer, Flaxman, Frieze and Vigoda proved that there is a least integer ${c}_{0}\le \mathit{col}\left(G\right)+1$ such that k-colouring graph of G is connected for all $k\ge {c}_{0}$ [6] (also see [9]). It is NP-complete to decide if the 3-colouring graph of a bipartite graph is connected [10], but polynomial-time to decide if two 3-colourings of a bipartite graph belong to the same component of ${\mathcal{C}}_{3}\left(G\right)$ [11]. Hamiltonicity of the k-colouring graph was first considered in [12], wherein it was proved that there is always a least integer ${k}_{0}\le \mathit{col}\left(G\right)+2$ such that the k-colouring graph of the graph G is Hamiltonian for all $k\ge {k}_{0}$. The number ${k}_{0}$ is known for complete graphs, trees and cycles [12], 2-trees [13], complete bipartite graphs [14], and some complete multipartite graphs [15]. For other results on ${C}_{k}\left(G\right)$, see [16], and for related results concerning the graph of $L(2,1)$-labellings (colourings with additional conditions), see [17].

The Bell k-colouring graph of G, denoted ${\mathcal{B}}_{k}\left(G\right)$, has as vertices the partitions of $V\left(G\right)$ into at most k independent sets, with two of these being adjacent when there is a vertex x such that these partitions are equal when restricted to $G-x$. The Bell $3-$ colouring graph of the path on four vertices is given in Figure 3. Bell k-colouring graphs are staudied in [18], as is the Stirling ℓ-colouring graph of G, the subgraph of ${\mathcal{B}}_{\left|V\right|}\left(G\right)$ induced by the partitions with exactly ℓ cells. It is proved that ${\mathcal{B}}_{\left|V\right|}\left(G\right)$ is Hamiltonian for every graph G except ${K}_{n}$ and ${K}_{n}-e$, and the quantity $\left|V\right|$ is the best possible. It is also proved that the Bell k-colouring graph of a tree with at least four vertices is Hamiltonian for all $k\ge 3$, and the Stirling ℓ-colouring graph of a tree on at least $n\ge 1$ vertices is Hamiltonian for all $\ell \ge 4$.

The graph ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is a spanning subgraph of ${\mathcal{B}}_{k}\left(G\right)$; the restriction to canonical colourings eliminates some edges of ${\mathcal{B}}_{k}\left(G\right)$. Thus results asserting connectivity or Hamiltonicity of ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ imply connectivity or Hamiltonicity of ${\mathcal{B}}_{k}\left(G\right)$, respectively. Since at most n colours can be assigned to the vertices of an n-vertex graph G, it follows that ${\mathcal{B}}_{k}\left(G\right)={\mathcal{B}}_{n}\left(G\right)$ and ${\mathrm{Can}}_{k}^{\pi}\left(G\right)={\mathrm{Can}}_{n}^{\pi}\left(G\right)$ for all $k\ge n$.

Canonical k-colouring graphs were first considered in [1]. For every tree T there exists an ordering $\pi $ of the vertices such that the canonical k-colouring graph of T with respect to $\pi $ is Hamiltonian for all $k\ge 3$. The canonical 3-colouring graph of the cycle ${C}_{n}$ is disconnected for all vertex orderings $\pi $, while for each $k\ge 4$ there exists an ordering $\pi $ for which ${\mathrm{Can}}_{k}^{\pi}\left({C}_{n}\right)$ is connected. It is an open problem to find general conditions on k and $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is connected. Most results are negative assertions about certain vertex orders $\pi $. In [1] it was proved that if G is connected, but not complete then there is always a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is disconnected for all $k\ge \chi \left(G\right)+1$. In particular, the graph ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is disconnected whenever the first three vertices $u,v,w$ of the vertex ordering $\pi $ are such that $uv\notin E$ but $uw,vw\in E$. Our first proposition generalizes that statement.

**Proposition**

**1.**

Let $\pi ={v}_{1},{v}_{2},\dots ,{v}_{n}$ be a vertex ordering of G. If there exists $i\ge 3$ such that ${v}_{i}$ is adjacent to each of ${v}_{1},{v}_{2},\dots ,{v}_{i-1}$, and the subgraph of G induced by $\{{v}_{1},{v}_{2},\dots ,{v}_{i}\}$ is not complete, then ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is disconnected for all $k\ge \chi \left(G\right)+1$.

**Proof.**

Let ${H}_{i}$ be the subgraph of G induced by $\{{v}_{1},{v}_{2},\dots ,{v}_{i}\}$. Since ${H}_{i}$ is not complete, $\chi \left({H}_{i}\right)<i$.

Let ${c}_{1}$ be a canonical $\chi \left(G\right)$-colouring of G with respect to $\pi $. Then ${c}_{1}\left({v}_{i}\right)=1+max\{{c}_{1}\left({v}_{1}\right),{c}_{1}\left({v}_{2}\right),\dots ,{c}_{1}({v}_{i-1}$}. Furthermore, if ${c}_{2}$ is an adjacent colouring in ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ then it differs on only one vertex. The colour of ${v}_{i}$ cannot change (because we are only considering canonical colourings) so ${c}_{2}$ must differ on a vertex other than ${v}_{i}$. It follows that the vertex ${v}_{i}$ is assigned the same colour in any canonical colouring that is joined to ${c}_{1}$ by a path.

Suppose first that ${c}_{1}$ assigns the same colour to two of ${v}_{1},{v}_{2},\dots ,{v}_{i-1}$, say ${c}_{1}\left({v}_{a}\right)={c}_{1}\left({v}_{b}\right)$ for some $a,b<i$. Then, there is a (non-canonical) $\chi \left(G\right)+1$ colouring of G in which ${v}_{b}$ is coloured with colour $\chi \left(G\right)+1$, and all other vertices, ${v}_{j}$ for $j<i$ are assigned the same colour as in ${c}_{1}$. Let ${c}_{2}$ be the equivalent canonical colouring to this with respect to $\pi $ (defines the same partition of $V\left(G\right)$). Then ${c}_{2}\left({v}_{i}\right)=1+{c}_{1}\left({v}_{i}\right)$. Hence, there is no path in ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ joining ${c}_{1}$ and ${c}_{2}$.

Now assume ${c}_{1}$ assigns distinct colours to each of ${v}_{1},{v}_{2},\dots ,{v}_{i-1}$. Since ${H}_{i}$ is not complete, it has a pair of non-adjacent vertices. There is a $\chi \left(G\right)+1$ colouring of G in which these two vertices are assigned the same colour, and all other vertices are assigned the same colour as in ${c}_{1}$. Let ${c}_{3}$ be the canonical version of this colouring. Then ${c}_{3}\left({v}_{i}\right)={c}_{1}\left({v}_{i}\right)-1$. Hence, there is no path in ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ joining ${c}_{1}$ and ${c}_{3}$.

In both cases, ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is disconnected. This completes the proof. ☐

## 3. Unions and Joins

In this section we explore connectivity and Hamiltonian properties of graphs constructed by the operations of disjoint union and join. Our main focus is the situation where one of the graphs involved is complete, or has no edges.

Recall that the disjoint union of disjoint graphs ${G}_{1}$ and ${G}_{2}$ is the graph ${G}_{1}\cup {G}_{2}$ with vertex set $V\left({G}_{1}\right)\cup V\left({G}_{2}\right)$ and edge set $E\left({G}_{1}\right)\cup E\left({G}_{2}\right)$. The join of disjoint graphs ${G}_{1}$ and ${G}_{2}$ is the graph ${G}_{1}\vee {G}_{2}$ with vertex set $V\left({G}_{1}\right)\cup V\left({G}_{2}\right)$ and edge set $E\left({G}_{1}\right)\cup E\left({G}_{2}\right)\cup \{{x}_{1}{x}_{2}:{x}_{1}\in V\left({G}_{1}\right)\phantom{\rule{4pt}{0ex}}\mathrm{and}\phantom{\rule{4pt}{0ex}}{x}_{2}\in V\left({G}_{2}\right)\}$. We shall consider unions first, and joins second.

Observe that the canonical k-colouring graph of ${\overline{K}}_{n}={K}_{1}\cup {K}_{1}\cup \cdots \cup {K}_{1}$ is the graph of partitions of an n-set into at most k parts. Hence the number of vertices is the sum of Stirling numbers of the second kind, $S(n,1)+S(n,2)+\cdots +S(n,k)$. A Hamilton cycle in this graph corresponds to a cyclic Gray code for set partitions. Many different Gray codes, cyclic and otherwise, for set partitions are known to exist [19]; our method gives a different point of view and leads to a recursive algorithm similar to that of Kaye [2]. A related method that gives Hamilton paths rather than Hamilton cycles is given in Theorem 4.

**Theorem**

**1.**

Let π be a vertex ordering such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is Hamiltonian. Then, for the vertex ordering ${\pi}^{\prime}$ of $G\cup {K}_{1}$ obtained by placing the vertex of ${K}_{1}$ at the end of π, the graph ${\mathrm{Can}}_{k}^{{\pi}^{\prime}}(G\cup {K}_{1})$ is Hamiltonian.

**Proof.**

Since ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ has at least three vertices, we have $k\ge 2$.

Suppose $k=2$. Then, G is bipartite and has at least three components. Let ${X}_{1}$ be the component of G containing the first vertex of $\pi $. Then ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is isomorphic to the cube of dimension equal to the number of components of $G-{X}_{1}$, and ${\mathrm{Can}}_{k}^{{\pi}^{\prime}}(G\cup {K}_{1})$ is isomorphic to the cube of one higher dimension. Since the t-cube is Hamiltonian for all $t\ge 2$, the statement follows.

Now suppose $k\ge 3$. If c is a canonical k-colouring of $G\cup {K}_{1}$ with respect to ${\pi}^{\prime}$, then the restriction of c to G is a canonical k-colouring of G. We will say that the colouring c on $G\cup {K}_{1}$ is an extension of the colouring on G. Furthermore, each canonical k-colouring of G has at least two extensions to a canonical k-colouring of $G\cup {K}_{1}$, and there are exactly two extensions if and only if $G\cong {\overline{K}}_{n}$ and only one colour is used on the vertices of G. Notice that the set of canonical k-colourings of $G\cup {K}_{1}$ which agree on their restriction to $V\left(G\right)$ induces a complete subgraph of ${\mathrm{Can}}_{k}^{{\pi}^{\prime}}(G\cup {K}_{1})$.

By hypothesis, ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ has a Hamilton cycle ${c}_{1},{c}_{2},\dots ,{c}_{t},{c}_{1}$. Thus $t\ge 3$, and there exists i such that ${c}_{i}$ and ${c}_{i+1}$ both use at least two colours. Without loss of generality, $i=t$. Thus, the canonical k-colourings ${c}_{t}$ and ${c}_{1}$ each have at least three extensions to canonical k-colouring of $G\cup {K}_{1}$. For $i=1,2,\dots ,t$, let ${c}_{i}\xb7\ell $ denote the extension of ${c}_{i}$ to a canonical k-colouring of $G\cup {K}_{1}$ in which the vertex of ${K}_{1}$ is assigned colour ℓ. Observe that ${c}_{i}\xb71$ and ${c}_{i}\xb72$ are adjacent to ${c}_{i+1}\xb71$ and ${c}_{i+1}\xb72$, respectively, $1\le i\le t-1$ and ${c}_{t}\xb71,{c}_{t}\xb72$ and ${c}_{t}\xb73$ are adjacent to ${c}_{1}\xb71,{c}_{1}\xb72$ and ${c}_{1}\xb73$, respectively.

A Hamilton cycle in ${\mathrm{Can}}_{k}^{{\pi}^{\prime}}(G\cup {K}_{1})$ can be constructed as follows. The first vertex is ${c}_{1}\xb71$. Then, for $i=2,3,\dots ,t-1$, list all extensions of ${c}_{i}$ such that ${c}_{i}\xb71$ is first and ${c}_{i}\xb72$ is last if i is even, and ${c}_{i}\xb72$ is first and ${c}_{i}\xb71$ is last if i is odd. Observe that any pair of consecutive vertices in the list are adjacent. Let ${c}_{t-1}\xb7z$ be the last vertex listed according to this procedure. The Hamilton cycle is completed by listing ${c}_{t}\xb7z$, then all other extensions of ${c}_{t}$ in such a way that ${c}_{t}\xb73$ is listed last and, finally, ${c}_{1}\xb73$ and all extensions of ${c}_{1}$ in such a way that ${c}_{1}\xb71$ is listed last (recall that ${c}_{1}\xb71$ was the first vertex listed).

This completes the proof. ☐

**Corollary**

**1.**

Let π be a vertex ordering such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is Hamiltonian. Then, for the vertex ordering ${\pi}^{\prime}$ of $G\cup {\overline{K}}_{n}$ obtained by placing the vertices of ${\overline{K}}_{n}$ at the end of π, the graph ${\mathrm{Can}}_{k}^{{\pi}^{\prime}}(G\cup {\overline{K}}_{n})$ is Hamiltonian.

The Gray code for set partitions implied by the following is similar to the one found by Kaye [2].

**Corollary**

**2.**

For all $n\ge 3$ and $k\ge 2$, and any vertex ordering π, the graph ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n}\right)$ is Hamiltonian.

We now turn our attention to connectivity of the canonical k-colouring graph of the disjoint union of graphs ${G}_{1}$ and ${G}_{2}$. Since it is an open problem to determine general conditions under which the canonical k-colouring graph of a (connected) graph G is connected, in the results that follow we assume the canonical k-colouring graph of ${G}_{1}$ is connected and give conditions under which a canonical colouring graph of ${G}_{1}\cup {G}_{2}$ is connected, no matter how the vertices of ${G}_{2}$ are ordered following the vertex ordering of ${G}_{1}$.

**Theorem**

**2.**

Let ${G}_{1}$ and ${G}_{2}$ be disjoint graphs such that $\chi \left({G}_{1}\right)\ge 1+\mathit{col}\left({G}_{2}\right)$. Suppose there exists an integer k, and an ordering ϕ of the vertices of ${G}_{1}$, such that ${\mathrm{Can}}_{k}^{\varphi}\left({G}_{1}\right)$ is connected. Then, for any ordering π of the vertices of ${G}_{1}\cup {G}_{2}$ obtained by putting an ordering of the vertices of ${G}_{2}$ after $\varphi $, the graph ${\mathrm{Can}}_{k}^{\pi}({G}_{1}\cup {G}_{2})$ is connected.

**Proof.**

Let c be some particular canonical colouring of ${G}_{1}\cup {G}_{2}$ with $\chi \left({G}_{1}\right)=\chi ({G}_{1}\cup {G}_{2})$ colours such that colours $1,2,\dots ,\chi \left({G}_{1}\right)$ appear on the vertices of ${G}_{1}$ (as they must), and colours $1,2,\dots ,\chi \left({G}_{2}\right)$ appear on the vertices of ${G}_{2}$. Let ${c}_{2}$ be the restriction of c to $V\left({G}_{2}\right)$.

We complete the proof by showing that any canonical k-colouring of ${G}_{1}\cup {G}_{2}$ can be transformed into c by a finite number of steps corresponding to edges in ${\mathrm{Can}}_{k}^{\pi}({G}_{1}\cup {G}_{2})$. Suppose a canonical k-colouring d of ${G}_{1}\cup {G}_{2}$ is given. Let M be the largest colour which d assigns to a vertex of ${G}_{1}$. Let ${H}_{2}$ be the subgraph of ${G}_{2}$ induced by the set of vertices on which colours $1,2,\dots ,M$ appear.

Since $M\ge \chi \left({G}_{1}\right)\ge 1+\mathit{col}\left({G}_{2}\right)\ge 1+\mathit{col}\left({H}_{2}\right)$, the (ordinary) M-colouring graph of ${H}_{2}$ is connected [6,9]. Hence there is a sequence of steps corresponding to edges in ${\mathrm{Can}}_{k}^{\pi}({G}_{1}\cup {G}_{2})$ that transforms d to a canonical colouring ${d}^{\prime}$ which agrees with ${c}_{2}$ on $V\left({H}_{2}\right)$. The following step can then be repeated until ${d}^{\prime}$ is transformed into a canonical colouring that agrees with ${c}_{2}$ on $V\left({G}_{2}\right)$. If the current colouring does not agree with ${c}_{2}$ on $V\left({G}_{2}\right)$, then let x be the last vertex of ${G}_{2}$ which is not coloured ${c}_{2}\left(x\right)$, and recolour x with ${c}_{2}\left(x\right)$ (Note that any the colour of any such x is greater than M). The resulting colouring is proper because of the recolouring of ${H}_{2}$ done earlier, and canonical by the maximality of the position of x.

Finally, since ${\mathrm{Can}}_{k}^{\varphi}\left({G}_{1}\right)$ is connected and $\chi \left({G}_{1}\right)\ge \chi \left({G}_{2}\right)$, the subgraph of ${\mathrm{Can}}_{k}^{\pi}({G}_{1}\cup {G}_{2})$ induced by the set of (canonical) colourings for which the restriction to $V\left({G}_{2}\right)$ is ${c}_{2}$ is isomorphic to ${\mathrm{Can}}_{k}^{\varphi}\left({G}_{1}\right)$, and is therefore connected. Hence there is a sequence of steps corresponding to edges in ${\mathrm{Can}}_{k}^{\pi}({G}_{1}\cup {G}_{2})$ that transforms a canonical colouring which agrees with ${c}_{2}$ on $V\left({G}_{2}\right)$ into c. This completes the proof. ☐

The hypothesis of the above theorem can be relaxed slightly to $\chi \left({G}_{1}\right)\ge 1+{c}_{0}\left({G}_{2}\right)$, where ${c}_{0}$ is the least integer such that k-colouring graph of G is connected for all $k\ge {c}_{0}$. By the result of [6], ${c}_{0}\left({G}_{2}\right)\le \mathit{col}\left({G}_{2}\right)$.

**Corollary**

**3.**

Let $k,n\ge 1$ and G be a graph with at least one edge. If there exists a vertex ordering π such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is connected, then there exists an order ${\pi}^{\prime}$ for which ${\mathrm{Can}}_{k}^{{\pi}^{\prime}}(G\cup {\overline{K}}_{n})$ is connected.

**Proof.**

The colouring number of ${K}_{1}$ equals 1. Apply Theorem 2 inductively. ☐

We conclude this section by considering the join operation. Observe that in any colouring of ${G}_{1}\vee {G}_{2}$, the set of colours that appear on the vertices of ${G}_{1}$ is disjoint from the set of colours that appear on the vertices of ${G}_{2}$. With this observation, the proof of the first proposition below is straightforward, and hence is omitted.

**Proposition**

**2.**

Let π be a vertex ordering of the graph G. If ${\pi}^{\prime}$ is the vertex ordering obtained by inserting the vertices of the ${K}_{r}$ at the beginning of π, then ${\mathrm{Can}}_{t}^{\pi}\left(G\right)\cong {\mathrm{Can}}_{t+r}^{{\pi}^{\prime}}(G\vee {K}_{r})$.

**Corollary**

**4.**

If ${\mathrm{Can}}_{t}^{\pi}\left(G\right)$ is connected (resp. has a Hamilton path, has a Hamilton cycle) then there exists an order ${\pi}^{\prime}$ such that ${\mathrm{Can}}_{t+r}^{{\pi}^{\prime}}(G\vee {K}_{r})$ is connected (resp. has a Hamilton path, has a Hamilton cycle).

In contrast, by Proposition 1, in almost any ordering ${\pi}^{\prime}$ of the vertices that does not begin with all the vertices of ${K}_{r}$ the corresponding ${\mathrm{Can}}_{t+r}^{{\pi}^{\prime}}(G\vee {K}_{r})$ will be disconnected.

**Corollary**

**5.**

Let T be a tree with at least three vertices, and $k\ge 4$. For any integer $n>1$, there exists a vertex ordering ${\pi}^{\prime}$ such that ${\mathrm{Can}}_{k+n}^{{\pi}^{\prime}}(T\vee {K}_{n})$ is Hamiltonian.

**Proof.**

For any such k, there is a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left(T\right)$ is Hamiltonian [1]. ☐

The next corollary implies, among other things, that the canonical c-colouring graph of a wheel on n spokes is connected for all $c\ge 4$.

**Corollary**

**6.**

Let $k\ge 4$, $t\ge 3$ and $n\ge 1$. There exists a vertex ordering ${\pi}^{\prime}$ such that ${\mathrm{Can}}_{k+n}^{{\pi}^{\prime}}({C}_{t}\vee {K}_{n})$ is connected.

**Proof.**

For any such k, there is a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left({C}_{t}\right)$ is connected [1]. ☐

**Proposition**

**3.**

Let $k,n\ge 1$. Suppose there exists a vertex ordering π such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is connected. Then there exists an order ${\pi}^{\prime}$ for which ${\mathrm{Can}}_{k+i}^{{\pi}^{\prime}}(G\vee {\overline{K}}_{n})$ is connected for all $i\ge 1$.

**Proof.**

Let ${\pi}^{\prime}$ be the order obtained from $\pi $ by inserting one vertex of ${\overline{K}}_{n}$ at the beginning of the ordering and all the others at the end. Note that the subgraph of ${\mathrm{Can}}_{k+i}^{{\pi}^{\prime}}(G\vee {\overline{K}}_{n})$ induced by the set of canonical colourings in which every vertex of ${\overline{K}}_{n}$ is coloured 1 is isomorphic to ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$. Since, for any canonical colouring c, there is a path in ${\mathrm{Can}}_{k+i}^{{\pi}^{\prime}}(G\vee {\overline{K}}_{n})$ to a canonical colouring in which every vertex of ${\overline{K}}_{n}$ is coloured 1 and the colour of every vertex of G is the same as in c, the result follows. ☐

We note that connected cannot be replaced by Hamiltonian in the above proposition. It follows from Proposition 4 that, for example, there is no vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{2,2}\right)$ has a Hamilton cycle for any $k\ge 3$, and no ordering ${\pi}^{\prime}$ such that ${\mathrm{Can}}_{k}^{{\pi}^{\prime}}\left({K}_{2,2,2}\right)$ has a Hamilton path for any $k\ge 4$.

**Corollary**

**7.**

Let H be a complete multipartite graph with p parts. For any $k\ge p$, there exists a vertex ordering π such that ${\mathrm{Can}}_{k}^{\pi}\left(H\right)$ is connected.

**Proof.**

Suppose one of the maximal independents sets has size s. Take $G={\overline{K}}_{s}$ in Proposition 3, and apply the proposition inductively to construct H and $\pi $. ☐

## 4. Bipartite Graphs

We now show that, once k is sufficiently large, there is always a vertex ordering such that the canonical k-colouring graph of a bipartite graph is connected. We then show that the bound given is the best possible.

**Theorem**

**3.**

Let G be a bipartite graph on n vertices, then there exists an ordering π of the vertices such that ${\mathrm{Can}}_{t}^{\pi}\left(G\right)$ is connected for $t\ge n/2+1$.

**Proof.**

Suppose G has bipartition $(A,B)$, where $\left|A\right|\ge \left|B\right|$. Choose $a\in A,b\in B$, such that $ab\in E\left(G\right)$. Define $\pi $ to be $a,b,B-b,A-a$. That is vertex a is coloured first, b is coloured second, the rest of B are the third through $\left(\right|B|+1)$st vertices to be coloured, the rest of A are the $\left(\right|B|+2)$nd through nth vertices to receive colours. Label the vertices ${v}_{1},{v}_{2},\dots {v}_{n}$ according to this order.

The standard two colouring $s:V\to \{1,2\}$ is $s\left({v}_{j}\right)=1$ if $j=1$ or $j\ge \left|B\right|+2$, and $s\left({v}_{j}\right)=2$ otherwise. The method will be to show that any colouring $c:V\to \{1,2,\dots ,t\}$ can be obtained from the standard 2-colouring s in a finite number of steps.

First, suppose colour 1 is only used on vertices of A. In this case the colouring c can be transformed into s as follows. Recolour (if necessary) each vertex of A to colour 1 by recolouring from vertex ${v}_{n}$ down to ${v}_{\left|B\right|+2}$, and then recolour each vertex of B to colour 2 by recolouring from vertex ${v}_{\left|B\right|+2}$ down to ${v}_{2}$. It is clear that at every stage there is a proper colouring.

If colour 1 is used on vertices in both parts then the number of colours used on B is at most $\left|B\right|\le n/2$. Suppose exactly $r\le n/2<t$ colours (including colour 1) are used on vertices in B, and let ${x}_{i}$ be the number of the first vertex to receive colour i, $i=1,\dots r$. That is $c\left({v}_{{x}_{i}}\right)=i$ and for all $j<i$, $c\left({v}_{j}\right)<i$. Clearly ${x}_{1}=1,{x}_{2}=2$, and since c is a canonical colouring ${x}_{1}<{x}_{2}<{x}_{3}<\dots <{x}_{r}$. Set ${x}_{r+1}=\left|B\right|+2$.

We will use the ${x}_{i}$ to define an intermediate colouring ${c}^{\prime}$ by ${c}^{\prime}\left({v}_{j}\right)=i\phantom{\rule{0.166667em}{0ex}}\mathrm{if}\phantom{\rule{0.166667em}{0ex}}{x}_{i}\le j<{x}_{i+1}\le n$, for $j=1,2,\dots ,n$. This is a proper colouring because no colour is used on vertices in both parts B and A. It uses $r+1\le t$ colours in total. The colours are used in numerical order, so it is canonical.

The proof is completed by showing that the standard colouring s can be transformed to colouring ${c}^{\prime}$ and colouring ${c}^{\prime}$ can be transformed to colouring c. Since colouring ${c}^{\prime}$ does not use any colour on both parts, the standard colouring s can be transformed to ${c}^{\prime}$ by changing the colours on ${v}_{1}$ to ${v}_{n}$ in order, if needed. That is change the colour on vertex ${v}_{m}$ from $s\left({v}_{m}\right)$ to the colour ${c}^{\prime}\left({v}_{m}\right)$ for $m=1,\dots ,n$.

Next transform ${c}^{\prime}$ to c. Do this by passing through the vertices from ${v}_{1}$ to ${v}_{n}$r times, once for each of the r colours used in c. On the kth pass change vertices to colour k if they are colour k in c. That is, in pass k, step m we will change the colour of vertex ${v}_{m}$, only if $c\left({v}_{m}\right)=k$. We need to show that this gives a proper canonical colouring at every step. Let ${s}_{km}$ be the colouring obtained after the mth step in the kth pass. Then

$${s}_{km}\left({v}_{j}\right)=\left\{\begin{array}{cc}c\left({v}_{j}\right)\hfill & \phantom{\rule{0.166667em}{0ex}}\mathrm{if}\phantom{\rule{0.166667em}{0ex}}c\left({v}_{j}\right)<k,\phantom{\rule{4pt}{0ex}}\phantom{\rule{0.166667em}{0ex}}\mathrm{or}\phantom{\rule{4pt}{0ex}}\mathrm{if}\phantom{\rule{4pt}{0ex}}c\left({v}_{j}\right)=k\phantom{\rule{0.166667em}{0ex}}\mathrm{and}\phantom{\rule{0.166667em}{0ex}}j\le m,\hfill \\ {c}^{\prime}\left({v}_{j}\right)\hfill & \phantom{\rule{0.166667em}{0ex}}\mathrm{otherwise}.\hfill \end{array}\right.$$

To see that each ${s}_{km}$ is proper, we must show that, $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=i\}$, the set of vertices coloured i, is independent for all colours $i=1,2,\dots ,r+1$ and all ${s}_{km}$. For $i<k$, the set of vertices coloured i in ${s}_{km}$ equals the set of vertices coloured i in c. Thus $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=i\}$ is an independent set for $i\le k-1$. For $i>k$, the set of vertices coloured i in ${s}_{km}$ is a subset of the set of vertices coloured i in ${c}^{\prime}$ thus $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=i\}$ is an independent set for $i\ge k+1$. It remains to consider $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=k\}$. The vertices coloured k under ${s}_{km}$ are $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=k\}=\left\{{v}_{j}\right|j\le m,c\left({v}_{j}\right)=k\}\cup \left\{{v}_{j}\right|j>m,{c}^{\prime}\left({v}_{j}\right)=k\}$.

When $k=1$ then since ${x}_{1}=1$ and ${x}_{2}=2$, we get $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=1\}\subseteq \left\{{v}_{j}\right|c\left({v}_{j}\right)=1\}$, for all m so this is an independent set. At the other end, when ${x}_{k}\ge \left|B\right|+2$ all vertices coloured k by either colouring c or ${c}^{\prime}$ will be in part A. So $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=k\}$ is independent for all m.

If $2\le {x}_{k}\le \left|B\right|+1$ then ${c}^{\prime}$ only assigns colour k to vertices in part B. No vertex in part A is coloured k until the only vertices coloured k on part B are those coloured k under c. There are two cases.

- If $m\le \left|B\right|+1$ then all vertices coloured k in ${s}_{km}$ are in B so the set is independent.
- If $m>\left|B\right|+1$, this means that the only vertices in B that are still coloured k are coloured k under c, that is: $\left|B\right|\cap \left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=k\}=\left|B\right|\cap \left\{{v}_{j}\right|c\left({v}_{j}\right)=k\}$. No vertices in A are coloured k under ${c}^{\prime}$ so if ${v}_{j}\in A$ and ${s}_{km}\left({v}_{j}\right)=k$, then $m>j$ and ${s}_{km}\left({v}_{j}\right)=c\left({v}_{j}\right)=k$. Thus $\left\{{v}_{j}\right|{s}_{km}\left({v}_{j}\right)=k\}\subseteq \left\{{v}_{j}\right|c\left({v}_{j}\right)=k\}$ which is independent.

Finally we show the colourings are canonical. By construction, for all colours, i, $c\left({v}_{{x}_{i}}\right)={c}^{\prime}\left({v}_{{x}_{i}}\right)={s}_{km}\left({v}_{{x}_{i}}\right)=i$, and no vertex before ${v}_{{x}_{i}}$ is coloured $i+1$ or higher in any of the colourings. Thus each of ${s}_{km}$ is a canonical proper colouring. ☐

Consider the graph ${L}_{n}={K}_{n,n}-F$, where F is a perfect matching. In the n-colouring of ${L}_{n}$ where the opposite ends of edges in F are assigned the same colour, every vertex has a neighbour of any different colour. Thus, if c is the canonical version of this colouring with respect to a vertex ordering $\pi $, then c is an isolated vertex in ${\mathrm{Can}}_{n}^{\pi}\left({L}_{n}\right)$. Since ${L}_{n}$ has $2n$ vertices, it follows that the lower bound in the above theorem is the best possible.

By Corollary 7, there is always a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{{n}_{1},{n}_{2},\dots ,{n}_{r}}\right)$ is connected. We now show that there is no Hamilton cycle, and frequently no Hamilton path, in the canonical k-colouring graph of a complete multipartite graph. By Corollary 4 it suffices to consider the case where ${n}_{i}\ge 2$ for all i. The specific example of ${\mathrm{Can}}_{k}^{\pi}\left({K}_{2,2,\dots ,2}\right)$ will be considered in detail in Section 5.

**Proposition**

**4.**

Let $G={K}_{{n}_{1},{n}_{2},\dots ,{n}_{r}}$, where ${n}_{i}\ge 2$, for all i. Then, for all vertex orderings π and $k\ge r+1$,

- 1.
- ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ has a cut vertex and hence has no Hamilton cycle;
- 2.
- if $r\ge 3$ then ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ has no Hamilton path.

**Proof.**

We first prove statement 1. The colouring c where every vertex in the ith part gets colour i is a cut vertex. Note that no colour can be used on vertices in more than one part. Any colouring ${c}_{i}$ where a vertex ${v}_{i}$ in part i gets colour $r+1$ cannot change to a colouring ${c}_{j}$ where a vertex ${v}_{j}$ in part j gets coloured $r+1$ without first changing the colour of ${v}_{i}$. If the colour $r+1$ is removed from part i then no higher colour can be used without violating canonicity. So if there is a path from ${c}_{i}$ to ${c}_{j}$, it must pass through c.

We now prove statement 2. If $\pi $ does not start with a maximum clique, then ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is disconnected by Proposition 1. Hence assume the first r vertices of $\pi $ induce a maximum clique. The argument above shows that the cut vertex c actually partitions the colourings into r cells, corresponding to using the $r+1$ colour in each of the r independent sets. Thus there can be no Hamilton path if there are at least three independent sets with at least two vertices each. ☐

By Proposition 4, for $m,n\ge 2$ and $k\ge 3$, the graph ${\mathrm{Can}}_{k}^{\pi}\left({K}_{m,n}\right)$ has a cut vertex, and hence no Hamilton cycle. On the other hand, for $n\ge 2$, the graph ${\mathrm{Can}}_{k}^{\pi}\left({K}_{1,n}\right)$ has a Hamilton cycle for all $k\ge 3$ [1]. The possibility remains that the canonical k-colouring graphs of complete bipartite graphs which are not stars have a Hamilton path. We show next that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{n,m}\right)$ in fact has a Hamilton path for all admissible values of $m,n,k$. To do so, we first give a Gray code (not cyclic) for ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n}\right)$ which has certain properties. The proof is recursive and similar to, but more elaborate than, that of Theorem 1.

**Theorem**

**4.**

For all $n\ge 2$ and $k\ge 2$, and any vertex ordering π, the graph ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n}\right)$ has a Hamilton path ${x}_{1},{x}_{2},\dots ,{x}_{t}$ such that:

- (i)
- the colouring ${x}_{1}=11\dots 1$, and the colouring ${x}_{t}$ uses all k colours.
- (ii)
- For each $1<i<t$, the set of colours used by ${x}_{i}$ is identical to the set used by either ${x}_{i-1}$, ${x}_{i+1}$.

**Proof.**

The sequences 11 and $11,12$ clearly work for ${\mathrm{Can}}_{1}^{\pi}\left({\overline{K}}_{2}\right)$ and ${\mathrm{Can}}_{2}^{\pi}\left({\overline{K}}_{2}\right)$ respectively. We induct first on n and then on k. Note that because colourings are canonical we only consider $n\ge k$.

Let ${c}_{1},{c}_{2},\dots ,{c}_{t}$ be a Hamilton path in ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n}\right)$ with properties (i) and (ii). For $i=1,2,\dots ,t$, let ${c}_{i}\xb7\ell $ denote the extension of ${c}_{i}$ to a canonical k-colouring of ${\overline{K}}_{n+1}$ in which the last vertex is assigned colour ℓ. Observe that ${c}_{i}\xb7\ell $ is adjacent to ${c}_{i+1}\xb7\ell $ whenever both of these are canonical colourings.

First the special case $k=2$. For $n\ge k=2$ a Hamilton path in ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n+1}\right)$ is constructed from the one for ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n}\right)$ as follows: ${c}_{1}\xb71,{c}_{1}\xb72,{c}_{2}\xb72,{c}_{2}\xb71,{c}_{3}\xb71,{c}_{3}\xb72,\dots {c}_{2i}\xb72,{c}_{2i}\xb71,{c}_{2i+1}\xb71,{c}_{2i+1}\xb72\cdots $.

For $n\ge k\ge 3$, a Hamilton path in ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n+1}\right)$ can be constructed from the one for ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n}\right)$ as follows. The first vertices are ${c}_{1}\xb71,{c}_{1}\xb72,{c}_{2}\xb72,{c}_{2}\xb71,{c}_{2}\xb73,{c}_{3}\xb73,{c}_{3}\xb72,{c}_{3}\xb71$. Starting with $i=4$, and then repeating for the next unused prefix ${c}_{i}$, suppose ${c}_{i},{c}_{i+1},\dots ,{c}_{i+j}$ is a maximal sequence such that each ${c}_{i+m}$ uses exactly the same set of colours, and suppose the maximum allowable colour that can be added to each of them is ${\ell}_{i}$. We construct a Hamilton path on the subgraph induced by $\{{c}_{i+m}\xb7\ell |m=0,1,\dots ,j;1\le \ell \le {\ell}_{i}\}$. These will be pieced together to get the Hamilton path for ${\mathrm{Can}}_{k}^{\pi}\left({\overline{K}}_{n+1}\right)$. This path must start with ${c}_{i}\xb71$ and end with ${c}_{i+j}\xb71$.

Suppose j is odd. Take everything from each prefix ${c}_{i+m}$ before proceeding to the next prefix. In particular take the Hamilton path starting at ${c}_{i+2p}\xb71$ and ending with ${c}_{i+2p}\xb7{\ell}_{i}$ for $p=0,1,\dots ,j/2$ and in the reverse order ${c}_{i+2p+1}\xb7{\ell}_{i}$ and ending with ${c}_{i+2p+1}\xb71$ for $p=0,1,\dots ,j/2$.

Suppose j is even. Recall that for $1\le m\le j$, the subgraph induced by $\{{c}_{i+m}\xb7\ell :1\le \ell \le {\ell}_{i}\}$ is complete, and by assumption ${\ell}_{i}\ge 3$. First use any Hamilton path through the subgraph induced by $\{{c}_{i}\xb7\ell |1\le \ell \le {\ell}_{i}\}\cup \{{c}_{i+1}\xb7\ell |1\le \ell \le {\ell}_{i}\}$ which starts at ${c}_{i}\xb71$, and ends at ${c}_{i+1}\xb7{\ell}_{i}$ and satisfies property (ii). Next, proceed as in the odd case alternating the direction of the Hamilton path, so that again the path through $\{{c}_{i}+m\xb7\ell |m=0,1,\dots ,j\}$ ends at ${c}_{i+j}\xb71$.

In either case, the set of colours used on ${c}_{i+m}\xb7\ell $ is identical for all $m,\ell $ except possibly when $\ell ={\ell}_{i}$, and the set of colours used on ${c}_{i+2p}\xb7{\ell}_{i}$ is identical to the set of colours used on ${c}_{i+2p+1}\xb7{\ell}_{i}$ and these colourings are adjacent in the path. That the last colouring in the path uses all k colours follows from the induction hypothesis.

The Hamilton path for ${\mathrm{Can}}_{n+1}^{\pi}\left({\overline{K}}_{n+1}\right)$ is obtained from the one of ${\mathrm{Can}}_{n}^{\pi}\left({\overline{K}}_{n+1}\right)$ by appending ${c}_{t}\xb7(n+1)$ to the last vertex in ${\mathrm{Can}}_{n}^{\pi}\left({\overline{K}}_{n+1}\right)$, which will be of the form ${c}_{t}\xb7\ell $. ☐

The properties for the Hamilton paths required in the above proof are similar to those studied by various authors in the context of Gray codes for set partitions. In [19] the authors give Gray codes for the set of restricted growth functions, which is the set of non-negative integer sequences $\left\{{a}_{1}{a}_{2}\dots {a}_{n}:{a}_{i+1}\le max\{{a}_{1},{a}_{2},\dots ,{a}_{i}\}+1\right\}$. While these Gray codes start with $11\dots 1$ and end with $123\dots n$, they do not have the property that at least two sequences in a row use the same set of integers (see for example Figure 5 in [19]). The set of bounded restricted growth functions is ${R}_{b}\left(n\right)=\left\{{a}_{1}{a}_{2}\dots {a}_{n}:{a}_{i+1}\le max\{{a}_{1},{a}_{2},\dots ,{a}_{i}\}+1\phantom{\rule{0.166667em}{0ex}}\mathrm{and}\phantom{\rule{0.166667em}{0ex}}{a}_{i}\le b\right\}$. Ruskey and Savage also considered Gray codes on ${R}_{b}\left(n\right)$, but restrict their attention to strict and weak Gray codes which have the further property that successive elements can differ by only 1 (if strict) or 2 (weak) in the one position in which they differ. They show that such codes cannot exist. In the Gray codes considered here, successive sequences can differ in only one position, but the elements can differ by any amount. In other words, Theorem 4 says there is a (non strict, non weak) Gray Code for the set of bounded restricted growth functions, ${R}_{b}\left(n\right)$, that satisfies properties (i) and (ii).

**Theorem**

**5.**

There exists a vertex ordering π such that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{n,m}\right)$ has a Hamilton path for $n,m\ge 2$, $k\ge 3$.

**Proof.**

Let ${K}_{n,m}$ have bipartition $(A,B)$, where $A=\{{a}_{1},\dots {a}_{n}\}$, $B=\{{b}_{1},\dots {b}_{m}\}$. Let the vertex ordering $\pi ={a}_{1}{b}_{1}{a}_{2}{a}_{3}\dots {a}_{n}{b}_{2}{b}_{3}\dots {b}_{m}$.

By Theorem 4 there is a Hamilton path, ${x}_{1},{x}_{2},\dots {x}_{t}$, with properties (i) and (ii), in the canonical k-colouring graph of the subgraph induced by the restriction of $\pi $ to its first $n+1$ vertices, ${a}_{1}{b}_{1}{a}_{2}{a}_{3}\dots {a}_{n}$ (since $\{{a}_{1},{a}_{2},\dots ,{a}_{n}\}$ is an independent set, and ${b}_{1}$ will always be assigned the same colour in any canonical colouring). For each such colouring ${x}_{i}$, let $G\left({x}_{i}\right)$ be the subgraph of ${\mathrm{Can}}_{k}^{\pi}\left({K}_{n,m}\right)$ consisting of the canonical colourings which are extensions of ${x}_{i}$. Note that each subgraph $G\left({x}_{i}\right)$ is isomorphic to a graph ${\mathrm{Can}}_{k-r}^{\pi}\left({\overline{K}}_{m}\right)$, corresponding to the colourings of the vertices ${b}_{1}{b}_{2}{b}_{3}\dots {b}_{m}$ in the $k-r$ colours not used on ${a}_{1},{a}_{2},{a}_{3}\dots {a}_{n}$ (starting with 2 which was the colour used on ${b}_{1}$), and also that $V\left({\mathrm{Can}}_{k}^{\pi}\left({K}_{n,m}\right)\right)={\cup}_{i\le i\le t}V\left(G\left({x}_{i}\right)\right)$.

The Hamilton path in ${\mathrm{Can}}_{k}^{\pi}\left({K}_{n,m}\right)$ will be constructed by piecing together Hamilton paths from the $G\left({x}_{i}\right)$ in the order $i=1,2,\dots ,t$. In order to be able to piece these paths together, the first colouring in the Hamilton path of $G\left({x}_{i+1}\right)$ must be identical to the last colouring in the Hamilton path of $G\left({x}_{i}\right)$. Note that if ${x}_{i}$ and ${x}_{i+1}$ use different colours then the only colouring that $G\left({x}_{i}\right)$ and $G\left({x}_{i+1}\right)$ will have in common is $22\dots 2$. For each $G\left({x}_{i}\right)$ there is a Hamilton path that satisfies the conditions of Theorem 4, in this case one end is $22\dots 2$ and the other uses all the colours of ${x}_{i}$.

Suppose that ${x}_{i},{x}_{i+1},\dots {x}_{i+j}$ is a maximal sequence which use the same set of colours, and further that neither $i\ne 1$ nor $i+j\ne t$. The Hamilton path from $G\left({x}_{i}\right)$ that is used must start with $22\dots 2$ and the one from $G\left({x}_{i+j}\right)$ must end with $22\dots 2$. If j is odd, this is accomplished by taking the Hamilton path starting at $22\dots 2$ for $G\left({x}_{i+2p}\right)$, for $p=0,1,\dots ,\lfloor j/2\rfloor $, and ending with $22\dots 2$ for $G\left({x}_{i+2p+1}\right)$ for $p=0,1,\dots ,\lfloor j/2\rfloor $. If j is even, then first use a Hamilton path through the subgraph induced by $V\left(G\left({x}_{i}\right)\right)\cup V\left(G\left({x}_{i+1}\right)\right)$ which starts with $22\dots 2$ and ends in a colouring that uses all the colours. Then proceed as in the even case alternating the direction of the Hamilton path, so that the Hamilton path through $G\left({x}_{i+j}\right)$ can end with $22\dots 2$.

We finish the argument by reiterating the conditions that must hold for the construction to succeed. The Hamilton path ${x}_{1},{x}_{2},\dots ,{x}_{t}$ in the subgraph induced by the canonical k-colourings of the first $n+1$ vertices of $\pi $ needs the property that for each $i\ne 1$, the set of colours used for ${x}_{i}$ is identical to the set used on either ${x}_{i-1}$, or ${x}_{i+1}$. In addition, for each ${x}_{i}$, there should be a Hamilton path in $G\left({x}_{i}\right)$ that starts with $22\dots 2$. These are precisely the conditions guaranteed by our choice of the Hamilton path ${x}_{1},{x}_{2},\dots ,{x}_{t}$. ☐

## 5. ${\mathrm{Can}}_{\mathit{k}}^{\mathit{\pi}}\left({\mathit{T}}_{\mathbf{2}\mathit{n},\mathit{n}}\right)$

For $n\ge 1$, let ${T}_{2n,n}$ be the complete n-partite graph on $2n$ vertices in which each independent set is size two. Then ${T}_{2,1}\cong {\overline{K}}_{2}$, ${T}_{4,2}\cong {K}_{2,2}\cong {C}_{4}$, ${T}_{6,3}\cong {K}_{2,2,2}$, and so on.

The purpose of this section is to study the canonical k-colouring graphs of ${T}_{2n,n}$. The results proved in this section are summarized in Theorem 6 below. In the cases where the canonical colour graph is connected, we describe it completely.

**Theorem**

**6.**

Let $n\ge 1$. Then

- 1.
- ${\mathrm{Can}}_{n}^{\pi}\left({T}_{2n,n}\right)\cong {K}_{1}$ for any vertex ordering π.
- 2.
- If $k\ge 2n$, then ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)\cong {\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ for any vertex ordering π.
- 3.
- If $n<k$ and the subgraph of ${T}_{2n,n}$ induced by the first n vertices in the vertex ordering π is not complete, then ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ is disconnected.
- 4.
- If $n<k$ and the subgraph of ${T}_{2n,n}$ induced by the first n vertices in the vertex ordering π is complete, then ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ is a tree. Further, if ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ and ${\mathrm{Can}}_{k}^{\varphi}\left({T}_{2n,n}\right)$ are both trees, then ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)\cong {\mathrm{Can}}_{k}^{\varphi}\left({T}_{2n,n}\right)$.
- 5.
- ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ never has a Hamilton cycle and has a Hamilton path only when $n=2$, $k=2$.

Statements 1 and 2 are clear. Statement 3 is immediate by Proposition 1. The proof of statement 4 is partitioned into a sequence of propositions. First, we consider the graphs ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$, for vertex orderings $\pi $ that start with a maximal clique. The graphs ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$, with $n<k<2n$, will be considered later. According to statement 2 we need not consider the situations in which $k>2n$.

**Proposition**

**5.**

Let $n\ge 1$. If the subgraph of ${T}_{2n,n}$ induced by the first n vertices in the sequence π is complete, then ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ is a tree on ${2}^{n}$ vertices. Further, if the subgraph of ${T}_{2n,n}$ induced by the first n vertices in the sequence ϕ is complete, then ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)\cong {\mathrm{Can}}_{2n}^{\varphi}\left({T}_{2n,n}\right)$.

**Proof.**

In any colouring of ${T}_{2n,n}$, a pair of independent vertices either has the same colour, or different colours. In the latter case, each vertex in the pair is the only vertex to be assigned that colour. Suppose that the last n vertices of $\pi $ are ${x}_{1},{x}_{2},\dots ,{x}_{n}$. A canonical $2n$-colouring with respect to $\pi $ can be encoded as a binary sequence ${b}_{1}{b}_{2}\dots {b}_{n}$ of length n in which the i-th element is 0 if vertex ${x}_{i}$ is assigned the same colour as its unique non-neighbour (which is one of the first n vertices of $\pi $), and 1 if it is assigned the first colour not used on a vertex earlier in the sequence. Thus, ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ has precisely ${2}^{n}$ vertices.

We claim that an element ${b}_{i}$ of the binary sequence can change (from 0 to 1, or 1 to 0) if and only if ${b}_{j}=0$ for all $j>i$. Suppose that ${x}_{i}$ is the only vertex of its colour, that is, it has a different colour than its unique non-neighbour, w, and ${b}_{i}=1$. If there exists $j>i$ such that ${x}_{j}$ also has a different colour than its unique non-neighbour, then the colouring arising from assigning the colour of w to ${x}_{i}$ is not canonical (because the colour of ${x}_{i}$, which is smaller than the colour of ${x}_{j}$, would not be used on any vertex). Similarly, if ${x}_{i}$ has the same colour as its unique non-neighbour, then it can only be assigned a different colour if there is no $j>i$ such that ${x}_{j}$ has a different colour than its unique non-neighbour. This proves the claim.

We now show that, for any such sequence $\pi $, the graph ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ is a tree. According to the discussion above, the vertices of ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ can be taken to be the binary sequences of length n, with two sequences being adjacent if and only if they differ in exactly one position, and all entries to the right of that position are zero. Since any binary sequence can be reached from $00\dots 0$ by introducing 1s from left to right, the graph ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ is connected. The proof is complete once we show that the sum of the vertex degrees equals $2({2}^{n}-1)$. The degree of $00\dots 0$ is n. Any other binary sequence contains at least one 1. If the rightmost 1 is in position i then the degree of ${b}_{1}{b}_{2}\cdots {b}_{n}$ is $n-i+1$ and the number of such sequences is ${2}^{i-1}$. Hence, the sum of the vertex degrees is

$$\begin{array}{ccc}\hfill n+{\sum}_{i=1}^{n}{2}^{i-1}(n-i+1)& =& n+(n+1){\sum}_{i=1}^{n}{2}^{i-1}-{\sum}_{i=1}^{n}{2}^{i-1}i\hfill \\ & =& n+(n+1)({2}^{n}-1)-((n+1){2}^{n}-({2}^{n+1}-1))\hfill \\ & =& 2\xb7{2}^{n}-2.\hfill \end{array}$$

Since the description of ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ uses no properties of $\pi $ other than that the subgraph of ${T}_{2n,n}$ induced by the first n vertices of $\pi $ is complete, it is clear that any two trees arising from such sequences are isomorphic. This can also be proved by induction on n by using the observation that the subtree induced by the set of sequences in which the first entry is 0 is isomorphic to ${\mathrm{Can}}_{2(n-1)}^{\pi}\left({T}_{2(n-1),n-1}\right)$, as is the subtree induced by the set of sequences in which the first entry is 1. ☐

The argument above shows that, for $n>1$, the leaves of ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ correspond to precisely the binary sequences in which ${b}_{n}=1$. Thus, ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ has exactly ${2}^{n-1}\ge 2$ leaves, and hence never has a Hamilton cycle. There is a Hamilton path only when $n\le 2$ (recall that ${T}_{2,1}\cong {\overline{K}}_{2}$, and ${T}_{4,2}\cong {K}_{2,2}\cong {C}_{4}$).

For an ordering $\pi $ such that the subgraph induced by the first n vertices is complete, the tree ${\mathrm{Can}}_{6}^{\pi}\left({T}_{6,3}\right)$ is shown in Figure 4. For any such ordering, the tree ${\mathrm{Can}}_{8}^{\pi}\left({T}_{8,4}\right)$ is constructed from two copies of this tree, one arising from concatenating a 1 on the left of each sequence and the other arising from concatenating a 0 on the left of each sequence, and then joining the vertices 0000 and 1000.

It remains to consider the graphs ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ for $n<k<2n$ and sequences $\pi $ for which the first n vertices is complete.

**Proposition**

**6.**

Let $n\ge 1$ and $n<k<2n$. If the subgraph of ${T}_{2n,n}$ induced by the first n vertices in the sequence π is complete, then ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ is a tree on $\left(\genfrac{}{}{0pt}{}{n-1}{t}\right)+\left(\genfrac{}{}{0pt}{}{n-1}{t-1}\right)+\cdots +\left(\genfrac{}{}{0pt}{}{n-1}{0}\right)$ vertices. Further, if the subgraph of ${T}_{2n,n}$ induced by the first n vertices in the sequence ϕ is complete, then ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)\cong {\mathrm{Can}}_{2n}^{\varphi}\left({T}_{2n,n}\right)$.

**Proof.**

Observe that ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ is the subgraph of ${\mathrm{Can}}_{2n}^{\pi}\left({T}_{2n,n}\right)$ induced by the sequences with at most $t=k-n$ ones. There are $\nu =\left(\genfrac{}{}{0pt}{}{n-1}{k}\right)+\left(\genfrac{}{}{0pt}{}{n-1}{k-1}\right)+\cdots +\left(\genfrac{}{}{0pt}{}{n-1}{0}\right)$ such sequences. Hence ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ has exactly $\nu $ vertices.

As before, since any binary sequence with at most t ones can be reached from $00\dots 0$ by introducing ones from left to right, the graph ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ is connected, and therefore is a tree. In addition, as before, the description of ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ uses no properties of $\pi $ other than that of the subgraph of ${T}_{2n,n}$ induced by the first n vertices of $\pi $ is complete. Thus, once again it is clear that any two trees arising from such sequences are isomorphic. ☐

For $n>1$ and $n<k\le 2n$, the leaves of the tree ${\mathrm{Can}}_{k}^{\pi}\left({T}_{2n,n}\right)$ are the binary sequences with exactly k ones and a zero in the last position, or with at most k ones and a one in the last position. Hence there cannot be a Hamilton cycle, and there is a Hamilton path only when $n=2$ and $k=2$.

The proof of Theorem 6 is now complete.

## 6. Conclusions

In this paper we have continued the study of reconfiguration of canonical colourings. Our main results are that for all bipartite graphs and complete multipartite graphs there exists a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left(G\right)$ is connected for large enough values of k. In addition, we have shown that a canonical colouring graph of a complete multipartite graph usually does not have a Hamilton cycle, but that there exists a vertex ordering $\pi $ such that ${\mathrm{Can}}_{k}^{\pi}\left({K}_{m,n}\right)$ has a Hamilton path for all $k\ge 3$. The paper also gave a detailed consideration of ${\mathrm{Can}}_{k}^{\pi}\left({K}_{2,2,\dots ,2}\right)$. For each $k\ge \chi $ and all vertex orderings $\pi $, ${\mathrm{Can}}_{k}^{\pi}\left({K}_{2,2,\dots ,2}\right)$ is either disconnected or isomorphic to a particular tree.

Furthermore, the technical nature of these results leads us to believe that additional results about reconfiguration of canonical colourings will require significant effort. In addition, we posit that unlike for the k-colouring graph or the Bell k-colouring graph, there will be no criteria that ensure connectivity for all base graphs.

## Acknowledgments

Research of the first author supported by Simons Foundation Award #281291. Research of the second author is supported by NSERC.

## Author Contributions

The authors contributed equally to this work.

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Haas, R. The canonical colouring graph of trees and cycles. Ars Math. Contemp.
**2012**, 5, 149–157. [Google Scholar] - Kaye, R. A Gray code for set partitions. Inf. Process. Lett.
**1976**, 5, 171–173. [Google Scholar] [CrossRef] - Bondy, J.A.; Murty, U.S.R. Graph Theory; GTM 224; Springer: Berlin, Germany, 2008. [Google Scholar]
- Van den Heuvel, J. The complexity of change, Surveys in Combinatorics 2013. In London Mathematical Society Lecture Notes Series 409; Blackburn, S.R., Gerke, S., Wildon, M., Eds.; Cambridge University Press: Cambridge, UK, 2013; pp. 127–160. [Google Scholar]
- Ito, T.; Demaine, E.D.; Harvey, N.J.A.; Papadimitriou, C.H.; Sideri, M.; Uehara, R.; Uno, Y. On the Complexity of Reconfiguration Problems. Theor. Comput. Sci.
**2011**, 412, 1054–1065. [Google Scholar] [CrossRef] - Dyer, M.; Flaxman, A.; Frieze, A.; Vigoda, E. Randomly colouring sparse random graphs with fewer colours than the maximum degree. Random Struct. Algorithms
**2006**, 29, 450–465. [Google Scholar] [CrossRef] - Jerrum, M. A very simple algorithm for estimating the number of k-colourings of a low-degree graph. Random Struct. Algorithms
**1995**, 7, 157–165. [Google Scholar] [CrossRef] - Lucier, B.; Molloy, M. The Glauber dynamics for colourings of bounded degree trees. SIAM J. Discret. Math.
**2011**, 25, 827–853. [Google Scholar] [CrossRef] - Cereceda, L.; van den Heuvel, J.; Johnson, M. Connectedness of the graph of vertex colourings. Discret. Math.
**2008**, 308, 913–919. [Google Scholar] [CrossRef][Green Version] - Bonsma, P.; Cereceda, L. Finding paths between graph colourings: PSPACE-completeness and superpolynomial distances. Theor. Comput. Sci.
**2009**, 410, 5215–5226. [Google Scholar] [CrossRef] - Cereceda, L.; van den Heuvel, J.; Johnson, M. Finding Paths Between 3-colourings. J. Graph Theory
**2011**, 67, 69–82. [Google Scholar] [CrossRef] - Choo, K.; MacGillivray, G. Gray code numbers for graphs. Ars Math. Contemp.
**2011**, 4, 125–139. [Google Scholar] - Cavers, M.; (University of Calgary, Calgary, AB, Canada); Seyffarth, K.; (University of Calgary, Calgary, AB, Canada). Gray code numbers of 2-trees. Unpublished work. 2015. [Google Scholar]
- Celaya, M.; Choo, K.; MacGillivray, G.; Seyffarth, K. Reconfiguring k-colorings of complete bipartite graphs. Kyungpook Math. J.
**2016**, 56, 647–655. [Google Scholar] [CrossRef] - Bard, S. Colour Graphs of Complete Multipartite Graphs. Master’s Thesis, University of Victoria, Victoria, BC, Canada, 2014. Available online: https://dspace.library.uvic.ca:8443/handle/1828/5815 (accessed on 23 December 2014). [Google Scholar]
- Cereceda, L.; van den Heuvel, J.; Johnson, M. Mixing 3-colourings in bipartite graphs. Eur. J. Comb.
**2009**, 30, 1593–1606. [Google Scholar] [CrossRef][Green Version] - Ito, T.; Kawamura, K.; Ono, H.; Zhou, X. Reconfiguration of list L(2, 1)-labelings in a graph. Theor. Comput. Sci.
**2014**, 544, 84–97. [Google Scholar] [CrossRef] - Finbow, S.; (Saint Francis Xavier University, Antigonish, NS, Canada); MacGillivray, G.; (University of Victoria, Victoria, BC, Canada). Hamiltonicity of Bell and Stirling Colour Graphs. Unpublished work. 2016. [Google Scholar]
- Ruskey, F.; Savage, C.D. Gray codes for set partitions and restricted growth tails. Australas. J. Comb.
**1994**, 10, 85–96. [Google Scholar]

**Figure 1.**Three different vertex orderings of ${P}_{4}$ with associated $Ca{n}_{3}^{\pi}\left({P}_{4}\right)$. In each case the colourings are canonical with respect to the given vertex ordering from left to right.

**Figure 2.**${\mathcal{C}}_{3}\left({P}_{4}\right)$, the 3-Colouring Graph of ${P}_{4}$. The vertices are labeled by the colourings of the path.

**Figure 3.**${\mathcal{B}}_{3}\left({P}_{4}\right)$, the 3-Bell colouring graph of ${P}_{4}$. The vertices are labeled by the partition of the path $abcd$.

© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).