1. Introduction
Each graph is simple, undirected, and finite in this paper. Let H be a graph.
The from x to y in H is the number of edges of a shortest path joining x and y. The of a vertex x is . The and of H are, respectively, and . A vertex x is a of H if .
An edge coloring of a graph H is a mapping , where A is a set of colors. A graph H with an edge coloring c is an edge-colored graph, and denoted by . A total coloring of a graph H is a mapping , where A is a set of colors. A graph H with a total coloring c is a total-colored graph, and denoted by . In an edge-colored graph , a path Q is if for with . An edge coloring is a rainbow-connected edge coloring for H if H has a rainbow path joining x and y for . Such a graph H is called rainbow connected. The rainbow connection number of H is the minimum value r for which H has a rainbow-connected edge coloring using r colors.
McKeon and Zhang in [
1] introduced and studied the rainbow connection number, which has applications in transferring high-security information in multicomputer networks [
2,
3]. We refer the readers to [
4,
5,
6] for more results.
As one can see, the above involves the edge coloring of a graph. A natural idea is to generalize it to a concept that involves total coloring.
In a graph H with a total coloring, a path Q is total rainbow if all elements in , except for its end vertices, are assigned different colors. A total coloring of a graph H is a total rainbow-connected coloring if for any , there is a total rainbow path joining them. The total rainbow connection number of H is the minimum integer r such that there is a total rainbow connected coloring of H using r colors.
Uchizawa et al. introduced total rainbow connected coloring in [
7]. For a total-colored graph
, the rainbow total-connectivity problem is designed to determine whether
H is total rainbow connected. Uchizawa et al. [
7] showed that the rainbow total-connectivity problem is strongly NP-complete even for outerplanar graphs. Chen et al. [
8] showed that deciding whether a total-colored graph
H is total rainbow connected is NP-complete. Jiang et al. [
9] studied the upper bound of the total rainbow connection number of a graph with respect to its order and minimum degree. Liu et al. [
10] studied the minimum number of colors required to color
G, such that each pair of distinct vertices of
G are connected by
r internally vertex-disjoint total rainbow paths. Ma [
11] studied the total rainbow connection number of a graph by some property of its complementary graph. Ma et al. [
12] determined the total rainbow connection number of circular ladders and Möbius ladders. Sun [
13] determined the rainbow total-connection numbers of complete graphs, trees, cycles and wheels. Sun [
14] studied the upper bound of the total rainbow connection number of a graph with respect to its size.
We will study the total rainbow connection number of several graph operations. In
Section 2, we how the total rainbow connection number of a graph
G will change if we add (or delete) an edge in
G. In
Section 3, we study the total rainbow connection number of Cartesian product graphs.
2. Adding an Edge or Deleting an Edge
In this section, we shall investigate how the rainbow vertex connection number of a graph G will change if we add (or delete) an edge in G.
First, we need some new notations. A path with
n vertices is denoted by
. A path
Q is called an
a-b path, denoted by
, if
a and
b are its endpoints. Let
H be a graph. For an integer
and subset
, the
r-
step open neighborhood is
. We simply write
for
and
for
. Similarly, the
r-
step closed neighborhood is
. We simply write
for
and
for
. For
, let
denote
. For a graph
H and an edge
, we use
to denote the graph obtained from
G by delating
. For a graph
H and two vertices
such that
, we use
to denote the graph obtained from
H by adding
. We refer to the book [
15] for notation and terminology not described here.
Let
be a total coloring path in
. We define four sets of colors as follows.
We can see that the following observations hold.
Observation 1. For any connected graph H, if and only if H is complete, and otherwise, .
Observation 2. For any connected graph H, Observation 3. Let H and be two connected graphs. If is a spanning subgraph of H, then Theorem 1. Let H be a connected graph, and let be an edge of H for which is connected. Then Proof. Since is a connected spanning subgraph of H, we show that by Observation 3.
Next, we only need to show that . We fixed a total rainbow-connected coloring c of H using colors, and set for simplicity. We picked two sets of colors and such that and , and let be a shortest path between a and b in , where and . For , we define a -total coloring of as follows:
For each
,
and for each
,
Now, we will prove that is a total rainbow connected coloring of . For , there is a total rainbow u-v path in since c is a total rainbow connected coloring of H. We divide three cases.
Case 1. .
In this case, the path is also a total rainbow u-v path in by definition of total coloring ,
Case 2. .
In this case, we assume that . If or , then is also a total rainbow u-v path in . Otherwise, the path is also a total rainbow u-v path in since .
Case 3. .
In this case, let be the first vertex on from u to v so that , and is the last vertex on from u to v so that . Let denote the subpath connecting u and on , and let denote the subpath connecting and v on .
Because is a total rainbow, we know that . It follows the definition of that and are also a total rainbow in such that and . Pick the subpath joining and on with total coloring . Thus, and is a total rainbow. Since , the path is a total rainbow in .
Following the above three cases shows that is a total rainbow connected coloring of . Thus, . □
Remark 1. Pick a complete graph with vertex set , and let H be the graph obtained from by deleting edge . On one hand, since , by Observation 2, and . On the other hand, the graphs H and have a total rainbow connected coloring using 3 colors as Figure 1a,b, respectively. Thus, , and the lower bound in Theorem 1 is sharp. Remark 2. Let be a path of length 5, and let H be the graph obtained from by adding edge . See Figure 2a for details. Since , we know that from Observation 2. Moreover, the graph H has a total rainbow connected coloring using 5 colors as Figure 2a. So . Since , we know that from Observation 2. Moreover, the graph has a total rainbow connected coloring using 9 colors as shown in Figure 2b. So . Thus, , and the upper bound in Theorem 1 is almost sharp. Corollary 1. Let H be a connected graph. Pick such that is connected. Then Theorem 2. Let H be a connected graph. Pick such that . Then Proof. Since H is an induced subgraph of , we have that by Observation 3.
Next, we only need to prove that . Let . Then . By Theorem 1, we know that , i.e., . Thus, . □
Remark 3. Let H be the graph in Remark 1. Then and is a sharp example of the upper bound in Theorem 2. Let H be the graph in Remark 2. Then and is an almost sharp example of the lower bound in Theorem 2.
Corollary 2. Let H be a connected graph. Pick such that . Then 3. Cartesian Product
Let I and J be two graphs. Their Cartesian product is the graph with vertex set , and and are adjacent if and only if and , or and . It is easy to check that and .
Let I and J be two graphs. Assume that = and . Define serval mappings as follows.
For a
, define
where
and
.
For a
, define
where
and
.
Similarly, for , define mappings for each , for subgraph ; for , define mappings for , and for .
An r-tree is a tree with a root r. For a r-tree R, is the only path connecting r and v in R. The level of a vertex v in R is the length of the path . The depth of an r-tree is .
If , then x is an ancestor of y, and y is a descendant of x. In R, both vertices are related if one is a descendant of the other.
Given an
r-tree
R and two sets of colors
and
, we define a
-total coloringc of
R as follows:
and
where
.
Now, we are ready to show the following result.
Theorem 3. Let I and J be two connected, non-trivial graphs. Then Proof. Since , we have . Thus, the lower bound holds.
Next, we prove that the upper bound is true. Pick a breadth-first search tree (or BFS-tree) R in I rooted at some center , and pick a breadth-first search tree (or BFS-tree) Q in J rooted at some center . To prove that , it is sufficient to prove that from Observation 3.
Let , , and . It is easy to see that and . Let , , , , , , , and be eight sets of colors such that they are pairwise disjoints. We color by two steps.
Step 1: We give a -total coloring, and give a -total coloring, where . Denoted by , this total coloring of .
Step 2: We must change the colors at this step for some vertices. For , give it a -total coloring, and so that is a leaf in R, give it a -total coloring. Moreover, we assign the other edges not colored by color (it does matter). Denote by this modified total coloring of .
Please note that colors , and do not arise in . Therefore, we use colors in .
Now, we will prove that is our desired coloring. First, we have the following two claims. □
Claim 1. Let be any vertex in Q. In each with , if x and y are related, then the path joining x and y is total rainbow.
Proof of Claim 1. Since x and y are related in , there exists the path in joining x and y. In Step 1, since different vertices on have different levels in , the path is total rainbow in . Moreover, since the internal vertices of are not leaves in , the colors of the internal vertices of are not changed in Step 2. Therefore, is also the total rainbow in , and Claim 1 holds. □
Claim 2. Let be a vertex in R such that is a leaf in R or the root of R. In , if x and y are related, then the path joining x and y is total rainbow.
Proof of Claim 2. Since x and y are related in , there exists the path in joining x and y. Since different vertices on have different levels in , the path is total rainbow in Step 2, and Claim 2 holds. □
For any two vertices , it is sufficient to prove that has a total rainbow path joining them. By symmetry, suppose that . Consider three cases.
Case 1. and .
Pick a leaf in R so that is a descendant of . Then the path is our desired total rainbow x-y path in .
Case 2. .
Pick a leaf in R so that is a descendant of , and a leaf in Q. Then the path is our desired total rainbow x-y path in .
Case 3. Exactly one of and is .
Assume that . Pick a leaf in R such that is a descendant of , and a leaf in Q such that is a descendant of . Then the path is our desired total rainbow x-y path in .
Thus, is our desired coloring, and we are done. □
Remark 4. is a sharp example for the lower bound of Theorem 3. Pick two graphs I and J such that and , then . Therefore, the upper bound of Theorem 3 is sharp up to an additive constant 1.