Rainbow Vertex Connection Numbers and Total Rainbow Connection Numbers of Middle and Total Graphs

Yingbin Ma1, Kairui Nie1
1College of Mathematics and Information Science Henan Normal University, Xinxiang 453007, P.R. China

Abstract

A vertex-colouring of a graph Γ is rainbow vertex connected if every pair of vertices (u,v) in Γ there is a uv path whose internal vertices have different colours. The rainbow vertex connection number of a graph Γ, is the minimum number of colours needed to make Γ rainbow vertex connected, denoted by rvc(Γ). Here, we study the rainbow vertex connection numbers of middle and total graphs. A total-colouring of a graph Γ is total rainbow connected if every pair of vertices (u,v) in Γ there is a uv path whose edges and internal vertices have different colours. The total rainbow connection number of Γ, is the minimum number of colours required to colour the edges and vertices of Γ in order to make Γ total rainbow connected, denoted by trc(Γ). In this paper, we also research the total rainbow connection numbers of middle and total graphs.

Keywords: Rainbow vertex connection number, Total rainbow connection number, Middle graph, Total graph

1. Introduction

We consider finite and simple graphs only. That is, we do not allow the existence of loops and multiple edges. We follow the terminology and notation of [1] for those not described here. A graph Γ is an ordered pair (V(Γ), E(Γ)) consisting of a set V(Γ) of vertices and a set E(Γ) of edges. Let Ps,Cs,Ks and K1,s1, denote the path, cycle, complete graph, and star graph with s vertices, respectively.

An edge-colouring of a connected graph Γ=(V(Γ), E(Γ)) is a mapping c:ES, where S is a set of colours. Usually, the set S of colours is taken to be {1,2,,t}, tN. A uv path P in an edge-coloured graph is defined as a rainbow path if it does not exist two edges on this path coloured the same. An edge-coloured graph Γ is rainbow connected if any two vertices of Γ are connected by a rainbow path. The rainbow connection number of a connected graph, denoted by rc(Γ), is the minimum t for which are needed to make the graph rainbow connected. The concept of rainbow connection number was first introduced and researched by Chartrand et al. in [2].

Likewise the concept of rainbow connection number, Krivelevich and Yuster [3] put forward the concept of rainbow vertex connection number. A vertex-colouring of a connected graph Γ=(V(Γ),E(Γ)) is a mapping c:VS, where S is a set of colours. Usually, the set S of colours is taken to be {1,2,,t}, tN. A path in a vertex-coloured graph is defined as a vertex rainbow path if its internal vertices are assigned distinct colours. A vertex-coloured graph Γ is rainbow vertex connected if any two vertices of Γ are connected by a vertex rainbow path, while the colouring is defined as rainbow vertex-colouring. The rainbow vertex connection number of Γ, is the minimum t for which are needed to make Γ rainbow vertex connected, denoted by rvc(Γ). Let Γ be a connected graph. The graph Γ is complete, we have rvc(Γ)=0, and rvc(Γ)diam(Γ)1 with equality if and only if the diameter of a graph is 1 or 2. Moreover, if Σ is a connected spanning subgraph of Γ(that is V(Γ)=V(Σ)), then rvc(Γ)rvc(Σ).

The research of rainbow connection has attracted tremendous attention in the literature, and many conclusions have been published, see [3,4,5,6,7,8,9,10,11] for example. For more results, The reader can refer to the survey [12] and a new monograph[13].

As a natural generalization, Uchizawa et al. [14] and Liu et al. [15] introdeced the concept of total rainbow connection number, respectively. A total-colouring of a graph Γ is a mapping c:VES, where S is a set of colours. Usually, the set S of colours is taken to be {1,2,,t}, tN. A uv path P in a graph is defined as a total rainbow path if its internal vertices and edges are assigned distinct colours. A total-coloured graph Γ is total rainbow connected if any two vertices in Γ are connected by a total rainbow path, while the colouring is defined as total rainbow colouring. The total rainbow connection number of Γ, is the minimum t for which are needed to make Γ total rainbow connected, denoted by trc(Γ). A simple observation is that the graph Γ is complete if and only if trc(Γ)=1, otherwise trc(Γ)3. Moreover, trc(Γ)=3 if diam(Γ)=2 and rc(Γ)=2. We also noticed some trivial fact that trc(Γ)trc(Σ), where Σ is a connected spanning subgraph of Γ. For more results about the function trc(Γ), the reader can see [16,17,18,19,20,21,22] for details.

Definition 1 ([23]). The middle graph M(Γ) of a connected graph Γ is defined as follows,

(i) V(M(Γ))=V(Γ)E(Γ).

(ii) Joining edges with those pairs of these vertices (xE(Γ),yE(Γ) ; xE(Γ),yV(Γ)) which is adjacent (incident) in Γ.

In [24], Li investigated the rainbow connection numbers of middle graphs of Γ, where ΓPs,Cs,K1,s or Ks. Here, we research the total rainbow connection numbers (rainbow vertex connection numbers) for the above middle graphs. Our first main result is stated as follows.

Theorem 1. (i) Let M(Ps) be the middle graph of Ps. Then rvc(M(Ps))=s1 and trc(M(Ps))=2s1.

(ii) Let M(Cs) be the middle graph of Cs. Then rvc(M(Cs))={s2if s is even;s+12if s is odd.

and

trc(M(Cs))={s+1if s is even;s or s+1if s is odd.

(iii) Let M(K1,s) be the middle graph of K1,s. Then rvc(M(K1,s))=s and trc(M(K1,s))=2s.

(iv) Let M(Ks) be the middle graph of Ks. Then rvc(M(Ks))=1 and 3trc(M(Ks))s+1.

Definition 2 ([25]). The total graph T(Γ) of a graph Γ is defined as follows.

(i) V(T(Γ))=V(Γ)E(Γ).

(ii) Joining edges with those pairs of these vertices (xE(Γ),yE(Γ) ; xE(Γ),yV(Γ) ; xV(Γ),yV(Γ)) which is adjacent (incident) in Γ.

Li [24] considered the rainbow connection numbers of total graphs of Γ, where ΓPs,Cs,K1,s or Ks. Here, we also consider the total rainbow connection numbers (rainbow vertex connection numbers) for the above total graphs. Our second main result is stated as follows.

Theorem 2. (i) Let T(Ps) be the total graph of Ps. Then rvc(T(Ps))=s2 and trc(T(Ps))=2s3.

(ii) Let T(Cs) be the total graph of Cs. Then rvc(T(Cs))={s22 or s2if s is even;s12 or s+12if s is odd. and

trc(T(Cs))={s1,s or s+1if s is even;s or s+1if s is odd.

(iii) Let T(K1,s) be the total graph of K1,s. Then rvc(T(K1,s))=1,trc(T(K1,2))=3,trc(T(K1,3))=4 and trc(T(K1,s))=5 with s4.

(iv) Let T(Ks) be the total graph of Ks. Then rvc(T(Ks))=1 and 3trc(T(Ks))s+1.

2. Proof of Theorem 1

Proposition 1. Let M(Ps) be the middle graph of Ps. Then rvc(M(Ps))=s1 and trc(M(Ps))=2s1.

Proof. The graph M(Ps) is depicted in Figure 1. First we prove that rvc(M(Ps))=s1. Let c be a vertex-colouring of M(Ps) defined as follows: c(u1)=1,c(vi)=c(ui+1)=i for 1is2, c(vs1)=c(us)=s1. We will see that M(Ps) is rainbow vertex connected, and so rvc(M(Ps))s1. On the other hand, since diam(M(Ps))=s, this implies rvc(M(Ps))s1, and so rvc(M(Ps))=s1.

Now we prove that trc(M(Ps))=2s1. Let c be a total-colouring of M(Ps) defined as follows: c(u1v1)=1,c(viui+1)=c(vivi+1)=c(ui+1vi+1)=i+1 for 1is2, c(vs1us)=s,c(u1)=s+1, c(vi)=c(ui+1)=s+i for 1is2, c(vs1)=c(us)=2s1. We will see that M(Ps) is total rainbow connected. Thus trc(M(Ps))2s1. On the other hand, since diam(M(Ps))=s, this implies trc(M(Ps))2s1, which follows that trc(M(Ps))=2s1

Proposition 2. Let M(Cs) be the middle graph of Cs. Then rvc(M(Cs))={s2if s is even;s+12if s is odd.

and

trc(M(Cs))={s+1if s is even;s or s+1if s is odd.

Proof. The graph M(Cs) is depicted in Figure 2. First we prove that rvc(M(Cs))={s2if s is even;s+12if s is odd. Suppose s is even with s=2t. Since diam(M(Cs))=t+1, we have rvc(M(Cs))t. Let c be a vertex-colouring of M(Cs) defined as follows: c(ui)=c(vi)=i for 1it, c(ui)=c(vi)=it for t+1is. We know that M(Cs) is rainbow vertex connected, and so rvc(M(Cs))t. Thus rvc(M(Cs))=t.

Suppose s is odd with s=2t+1. Since diam(M(Cs))=t+1, it follows that rvc(M(Cs))t. Now we show that rvc(M(Cs))t. To the contrary, assume that M(Cs) exists a rainbow vertex-colouring c with t colours. Considering u1 and ut+1, u1v1v2vt1vtut+1 must be a vertex rainbow u1ut+1 path. Without loss of generality, let c(vi)=i for 1it. Considering u2 and ut+2, u2v2v3vtvt+1ut+2 must be a vertex rainbow u2ut+2 path. Thus c(vt+1)=1. By the same steps, we know that c(vt+i)=i for 2it. Considering ut+2 and u1, ut+2vt+2vt+3vs1vsu1 must be a vertex rainbow ut+2u1 path, and so c(vs)=1. But then, there does not exist a vertex rainbow path connecting ut+3 and u2, a contradiction. Thus rvc(M(Cs))t. Let c be a vertex-colouring of M(Cn) defined as follows: c(vi)=c(ui)=i for 1it, c(vi)=c(ui)=it for t+1i2t,c(vs)=c(us)=t+1. We will see that M(Cs) is rainbow vertex connected, and so rvc(M(Cs))=t+1.

Now we prove that trc(M(Cs))={s+1if s is even;s or s+1if s is odd.

Suppose s is even with s=2t. Since diam(M(Cs))=t+1, we have trc(M(Cs))2t+1. Let c be a total-colouring of M(Cs) defined as follows: c(u1v1)=c(vsv1)=1,c(uivi)=c(vi1vi)=i for 2it, c(uivi)=c(vi1vi)=it for t+1is, assign all other edges with t+1, c(vi)=c(ui)=t+i+1 for 1it, c(vi)=c(ui)=i+1 for t+1is. We will see that M(Cs) is total rainbow connected, and so trc(M(Cs))s+1. Thus trc(M(Cs))=s+1.

Suppose s is odd with s=2t+1. Let c be a total-colouring of M(Cs) defined as follows: c(u1v1)=c(vsv1)=1,c(u1vs)=t+1,c(viui)=c(vi1vi)=i and c(vi1ui)=t+1 for 2it, c(vtvt+1)=c(vtut+1)=c(ut+1vt+1)=t+1, c(vt+iut+i+1)=c(vt+ivt+i+1)=c(vt+i+1ut+i+1)=i for 1it, c(vi)=c(ui)=t+i+1 for 1it, c(vi)=c(ui)=i+1 for t+1is. We obtained that M(Cs) is total rainbow connected. Since diam(M(Cs))=t+1, we have trc(M(Cs))2t+1=s, which follows that strc(M(Cs))s+1

Proposition 3. Let M(K1,s) be the middle graph of K1,s. Then rvc(M(K1,s))=s and trc(M(K1,s))=2s.

Proof. The graph M(K1,s) is depicted in Figure 3. First we prove that rvc(M(K1,s))=s. Since the cut vertices must be coloured by different colours, we have rvc(M(K1,s))s. Assign ui with i for 1is, and assign all other vertices with 1. We will see that M(K1,s) is rainbow vertex connected, and so rvc(M(Ps))s. This implies rvc(M(K1,s))=s.

Now we prove that trc(M(K1,s))=2s. Since the cut edges and cut vertices must be coloured by different colours, we obtain trc(M(K1,s))2s. Let c be a total-colouring of M(K1,s) defined as follows: c(uivi)=i for 1is, c(uu1)=s,c(uui)=i1 for 2is, c(uiui+1)=i+2 for 1is2, c(us1us)=1,c(uiuj)=j1 for 1i,js and ji2, c(ui)=s+i for 1is, assign all other vertices with s+1. Note that for any two different vertices vi and vj for 1i,js, we know that viuiujvj is a total rainbow vivj path. Thus M(K1,s) is total rainbow connected, and hence trc(M(K1,s))2s. Therefore, trc(M(K1,s))=2s

Proposition 4. Let M(Ks) be the middle graph of Ks. Then rvc(M(Ks))=1 and 3trc(M(Ks))s+1.

Proof. Note that diam(M(Ks))=2, we have rvc(M(Ks))=1. Now we prove that 3trc(M(Ks))s+1. Obviously, trc(M(Ks))3 since diam(M(Ks))=2. The structure of M(Ks) is depicted as follows: M(Ks)=H1H2Hs, where HiKs for 1is, and for any i,j{1,2,,s}, Hi and Hj only intersect a different vertex. Let c be a total-colouring of M(Ks) defined as follows: For any eHi,c(e)=i, assign s+1 to all vertices. We will see that M(Ks) is total rainbow connected, and so trc(M(Ks))s+1. Hence 3trc(M(Ks))s+1

Combining Propositions 1, 2, 3, 4, Theorem 1 is immediate.

3. Proof of Theorem 2

Proposition 5. Let T(Ps) be the total graph of Ps. Then rvc(T(Ps))=s2 and trc(T(Ps))=2s3.

Proof. The graph T(Ps) is depicted in Figure 4. First we prove that rvc(T(Ps))=s2. Since diam(T(Ps))=s1, we have rvc(T(Ps))s2. Let c be a vertex-colouring of T(Ps) defined as follows: c(vi)=c(ui+1)=i for 1is2, assign all other vertices with 1. We will see that T(Ps) is rainbow vertex connected, and so rvc(T(Ps))s2. Thus rvc(T(Ps))=s1.

Now we prove that trc(T(Ps))=2s3. Let c be a total-colouring of T(Ps) defined as follows: c(uivi)=c(uiui+1)=c(viui+1)=i for 1is1, assign all other edges with 1, c(vi)=c(ui+1)=s+i1 for 1is2, all other vertices coloured with s. We will see that T(Ps) is total rainbow connected with the above total-colouring. Thus trc(T(Ps))2s3. On the other hand, since diam(T(Ps))=s1, this implies trc(T(Ps))2s3. This follows that trc(T(Ps))=2s3

Proposition 6. Let T(Cs) be the total graph of Cs. Then rvc(T(Cs))={s21 or s2if s is even;s12 or s+12if s is odd.

and

trc(T(Cs))={s1,s or s+1if s is even;s or s+1if s is odd.

Proof. By [24], we know that diam(T(Cs))={s2if s is even;s+12if s is odd. On the other hand, note that M(Cs) is a connected spanning subgraph of T(Cs), this proposition follows from Proposition 2

Proposition 7. Let T(K1,s) be the total graph of K1,s. Then rvc(T(K1,s))=1,trc(T(K1,2))=3,trc(T(K1,3))=4 and trc(T(K1,s))=5 with s4.

Proof. Since diam(T(K1,s))=2, we have rvc(T(K1,s))=1 and trc(T(K1,s))3 for s2.

Suppose s=2. We can easily verify that the total-colouring shown in Figure 5(a) is total rainbow. Thus trc(T(K1,2))=3.

Suppose s=3. Let c be a total-colouring of T(K1,3) defined as follows: c(uv1)=c(uu1)=1,c(uv2)=c(uu2)=2,c(uv3)=c(uu3)=3, assign all other edges with 1, and assign all vertices with 4. We can easily verify that T(K1,3) is total rainbow connected with the above total-colouring, and so trc(T(K1,3))4. Now we only need to prove that trc(T(K1,3))3. To the contrary, assume that T(K1,3) exists a total rainbow colouring with 3 colours. Considering v1 and v2, the total rainbow v1v2 path must be v1uv2. Without loss of generality, assume that c(v1u)=1,c(u)=2,c(uv2)=3. Considering v1 and v3, the total rainbow v1v3 path must be v1uv3. Thus c(uv3)=3. But then, there is no total rainbow v2v3 path, a contradiction. Hence trc(T(K1,3))3, and so trc(T(K1,3))=4.

Suppose s4. Let c be a total-colouring of T(K1,s) defined as follows: assign 1 to the edges uvi for 1is, assign 2 to the edges uivi for 1is, assign 3 to all other edges, assign 4 to u, and assign 5 to all other vertices. We will see that T(K1,s) is total rainbow connected with the above total-colouring. Thus trc(T(K1,s))5. Now we only need to prove that trc(T(K1,s))4. To the contrary, assume that T(K1,s) exists a total rainbow colouring with 4 colours. Considering v1 and v2, v1uv2 must be a total rainbow v1v2 path. Without loss of generality, assume that c(u)=1,c(v1u)=2,c(uv2)=3. Considering v1 and v3, v1uv3 must be a total rainbow v1v3 path. Thus c(uv3)=4, otherwise there is no total rainbow v2v3 path. Considering v1 and v4, v1uv4 must be a total rainbow v1v4 path. Hence c(uv4)=3 or 4. But then there is no total rainbow v2v4 path or v3v4 path. Hence trc(T(K1,s))4, and so trc(T(K1,s))=5

Proposition 8. Let T(Ks) be the total graph of Ks. Then rvc(T(Ks))=1 and 3trc(T(Ks))s+1.

Proof. Note that diam(T(Ks))=2. Then rvc(T(Ks))=1. Obviously, M(Ks) is a connected spanning subgraph of T(Ks). By Proposition 4, we have 3trc(T(Ks))s+1

Combining Propositions 5, 6, 7, 8, Theorem 2 is immediate.

4. Conclusion

The concept of total rainbow connection number was proposed in recent years. Moreover, Chen et al.[16] proved that the calculating of trc(Γ) is NP-hard. Subsequently, there is a great interest towards determining the total rainbow connection numbers of some graph classes. In this paper, we mainly consider the total rainbow connection numbers of middle and total graphs.

Conflict of Interest

The authors declare no conflict of interests.

Acknowledgement

This work was supported by the NSFC (No.11701157), Foundation of Henan Educational Committee (No.18A110023), and the Foundation of Henan Normal University (No.2019QK06).

References:

  1. Bondy, J.A. and Murty, U.S.R., 2008. Graph Theory. Springer, Berlin.[Google Scholor]
  2. Chartrand, G., Johns, G.L., McKeon, K.A. and Zhang, P., 2008. Rainbow connection in graphs. Mathematica bohemica, 133(1), pp.85-98.[Google Scholor]
  3. Krivelevich, M. and Yuster, R., 2010. The rainbow connection of a graph is (at most) reciprocal to its minimum degree. Journal of Graph Theory, 63(3), pp.185-191.[Google Scholor]
  4. Sunil Chandran, L., Das, A., Rajendraprasad, D. and Varma, N.M., 2012. Rainbow connection number and connected dominating sets. Journal of Graph Theory, 71(2), pp.206-218.[Google Scholor]
  5. Huang, X., Li, X. and Shi, Y., 2015. Note on the hardness of rainbow connections for planar and line graphs. Bulletin of the Malaysian Mathematical Sciences Society, 38(3), pp.1235-1241.[Google Scholor]
  6. Huang, X., Li, X., Shi, Y., Yue, J. and Zhao, Y., 2014. Rainbow connections for outerplanar graphs with diameter 2 and 3. Applied Mathematics and Computation, 242, pp.277-280.[Google Scholor]
  7. Lei, H., Li, S., Liu, H. and Shi, Y., 2018. Rainbow vertex connection of digraphs. Journal of Combinatorial Optimization, 35, pp.86-107.[Google Scholor]
  8. Li, X., Liu, S., Chandran, L.S., Mathew, R. and Rajendraprasad, D., 2012. Rainbow connection number and connectivity. The Electronic Journal Of Combinatorics, pp.P20.[Google Scholor]
  9. Li, X. and Shi, Y., 2013. Rainbow connection in 3-connected graphs. Graphs and Combinatorics, 29(5), pp.1471-1475.[Google Scholor]
  10. Li, X. and Shi, Y., 2013. On the rainbow vertex-connection. Discussiones Mathematicae Graph Theory, 33(2), pp.307-313.[Google Scholor]
  11. Schiermeyer, I., 2013. On minimally rainbow k-connected graphs. Discrete Applied Mathematics, 161(4-5), pp.702-705.[Google Scholor]
  12. Li, X., Shi, Y. and Sun, Y., 2013. Rainbow connections of graphs: A survey. Graphs and combinatorics, 29, pp.1-38.[Google Scholor]
  13. Li, X. and Sun, Y., 2012. Rainbow connections of graphs. Springer Science & Business Media.[Google Scholor]
  14. Uchizawa, K., Aoki, T., Ito, T., Suzuki, A. and Zhou, X., 2013. On the rainbow connectivity of graphs: complexity and FPT algorithms. Algorithmica, 67, pp.161-179.[Google Scholor]
  15. Liu, H., Mestre, \^{A}. and Sousa, T., 2014. Total rainbow k-connection in graphs. Discrete Applied Mathematics, 174, pp.92-101.[Google Scholor]
  16. Chen, L., Huo, B. and Ma, Y., 2016. Hardness results for total rainbow connection of graphs. Discussiones Mathematicae Graph Theory, 36(2), pp.355-362.[Google Scholor]
  17. Jiang, H., Li, X. and Zhang, Y., 2016. Upper bounds for the total rainbow connection of graphs. Journal of Combinatorial Optimization, 32, pp.260-266.[Google Scholor]
  18. Lei, H., Liu, H., Magnant, C. and Shi, Y., 2018. Total rainbow connection of digraphs. Discrete Applied Mathematics, 236, pp.288-305.[Google Scholor]
  19. Ma, Y., Chen, L. and Li, H., 2017. Graphs with small total rainbow connection number. Frontiers of Mathematics in China, 12, pp.921-936.[Google Scholor]
  20. Ma, Y., Chen, L. and Li, H., 2017. Graphs with small total rainbow connection number. Frontiers of Mathematics in China, 12, pp.921-936.[Google Scholor]
  21. Ma, Y.B., Chen, L., Li, H.Z. and Li, H.F., 2016. The total rainbow connection numbers of cubic graphs. utilitas mathematica, 99, pp.143-150.[Google Scholor]
  22. Sun, Y., 2015. On rainbow total-coloring of a graph. Discrete Applied Mathematics, 194, pp.171-177.[Google Scholor]
  23. Hamada, T. and Yoshimura, I., 1976. Traversability and connectivity of the middle graph of a graph. Discrete Mathematics, 14(3), pp.247-255.[Google Scholor]
  24. Li, F., 2013. Rainbow connection numbers of middle and total graphs. Utilitas Mathematica, 91, 243-260.[Google Scholor]
  25. Behzad, M., 1967, July. A criterion for the planarity of the total graph of a graph. In Mathematical Proceedings of the Cambridge Philosophical Society (Vol. 63, No. 3, pp. 679-681). Cambridge University Press.[Google Scholor]