![MathJax Logo](/templates/jsp/_style2/_tandf/pb2/images/math-jax.gif)
Abstract
Let be a connected graph with
. The rainbow connection number
is the smallest
for which there is a map
such that any two vertices can be connected by a path whose edge colors are all distinct. The generalized composition
is obtained by replacing each
with the graph
. We prove
if each
has at least
vertices, improving known upper bounds of Basavaraju et al. and Gologranc et al. (2014). We prove the same result when
but with some additional conditions. When
, we show that the largest possible value of
is related to whether every vertex of
is contained in a triangle or not.
1 Introduction
In 2008 Chartrand et al. [Citation1] introduced new concepts that use edge-coloring to strengthen the connectedness property of a graph. An edge-coloring on a graph is a map
(also called “
-coloring”). A rainbow path is a path whose edge colors are all distinct. A rainbow coloring is an edge-coloring in which any two vertices can be connected by a rainbow path. The rainbow connection number
is the smallest
for which
has a rainbow
-coloring. A strong rainbow coloring is an edge-coloring in which any two vertices can be connected by a rainbow geodesic. The strong rainbow connection number
is the smallest
for which
has a strong rainbow
-coloring.
We have [Citation1]
(1)
(1)
The reader is referred to [Citation2] for a detailed survey. It is known that computing rc and src is NP-hard [Citation3]. Many studies have focused on special classes of graphs or graph operations, such as Cartesian product, strong product, lexicographic product (see [Citation4] and [Citation5]), and graph join (see [Citation6]).
We study generalized composition, which can be thought of as “blowing-up” vertices into individual graphs. Let , and
be any graphs. The generalized composition
is obtained by replacing each
with
and adding a new edge between every vertex of
and every vertex of
whenever
. We call this operation as
-composition. See .
Examples.
is the usual graph join, and a
-composition is known as a sequential join. The special case
is known as composition or lexicographic product.
We always assume that is non-trivial and connected. If
is not a complete graph, then its diameter is
. So
(2)
(2) If each
has at least
vertices, we show that (2) becomes an equality. When
, this improves the results of Basavaraju et al. [Citation4]
and Gologranc et al. [Citation5]
.
If , the bound (2) can be strict. However, we show that equality occurs when
and some conditions are met (either each
has at least one edge, or
has the property that there is a 3-walk between every pair
possibly with
). When
, we show that the largest possible value of
determines whether every vertex of
is contained in a triangle or not.
2 Results
2.1 A preliminary bound
Let . Its common neighborhood
is the intersection of
over all
. A set of vertices is independent if any two are non-adjacent, or co-neighboring if
for all
.
Lemma 1
Let be a co-neighboring set. Then
(1) |
| ||||
(2) | If moreover |
Proof
This is based on an idea in [Citation1]. Let . Given a
-coloring
on
, define the color code of
with respect to
as
(3)
(3) Note that there are at most
distinct codes.
Claim
There is a rainbow geodesic between if and only if
.
In fact, any geodesic between and
has the form
with
, which is rainbow if and only if
. Now we prove the lower bounds.
(1) Let . Suppose
, so there is a strong rainbow
-coloring on
. Since
, there are
with the same code. By the claim, there are no rainbow geodesics between them, a contradiction.
(2) Let . Suppose
, so there is a rainbow
-coloring on
. Since
, there are
with the same code. Let
be a rainbow geodesic between
and
. Then
, since
is co-neighboring. By the claim,
is not a rainbow geodesic. So
. Since
is independent,
. The length of
is at least
, contradicting
. □
Below is the reason we only study the rc of -compositions, not the src.
Corollary 1
The src of -compositions cannot be bounded above in terms of
alone.
Proof
Let . Replace some
with
such that
, and replace any other vertex with
, to get a
-composition graph
. The set
is co-neighboring and
, so by Lemma 1 (1) we have
. □
2.2 Diameter at least four
Theorem 1
Let and
. If each
has at least
vertices, then
.
We prove the upper bound separately for later use.
Lemma 2
If each has at least
vertices, then
(4)
(4)
Proof
Let and
. We will construct a rainbow
-coloring on
, where
. Define a map
arbitrarily on each
, and put
(5)
(5) for all
adjacent in
. We show that
is a rainbow coloring.
Let ,
with
non-adjacent in
. We will find a rainbow path between
and
.
Case 1: or
.
Choose a common neighbor of
. If
, then the path
is rainbow. Otherwise, the path
is rainbow.
Case 2: .
Choose a path in
. Define the numbers
as
and
, for each
. Thus
(6)
(6) and
(7)
(7) Consider the following path,
(8)
(8) The color sequence of this path is
(9)
(9) The numbers above are
consecutive integers in decreasing order. Since
, these numbers are all different modulo
. So
is a rainbow path.
Case 3: .
Use the path in Case 2 after deleting the penultimate vertex. □
2.3 Diameter three
The conclusion of Theorem 1 can fail when even if we control the number of vertices in each
. Below is a class of such examples.
Theorem 2
If and some vertex of
is not contained in any triangle, then for any fixed
we have
(10)
(10) where the maximum is taken over all possible graphs
such that each
has at least
vertices.
Proof
By Lemma 2, the maximum is at most 4. To build a tight example, choose some not in any triangle. Replace
with
where
, and every other vertex with
to form a
-composition graph
. Then
is co-neighboring and
is independent (otherwise
would be in a triangle) so
by Lemma 1. □
If some additional conditions are met, we do have an exact result.
Theorem 3
Let be a connected graph with
, and let
be arbitrary graphs with at least three vertices each. Suppose that one of the following holds,
(1) | each | ||||
(2) |
|
Then .
Proof
Let and
.
First, assume that (1) holds. We will construct a rainbow 3-coloring on . We start with the following procedure.
(1) | For each | ||||
(2) | Choose a bipartition | ||||
(3) | Put all isolated vertices of | ||||
(4) | Choose a non-isolated vertex of |
Now we define a map as follows.
(1) |
| ||||
(2) |
| ||||
(3) |
|
We show that is a rainbow coloring. Let
be non-adjacent. Then
and
for some non-adjacent
in
.
Case 1: or
.
Choose a walk in
.
Subcase 1.1: and
.
Choose and
. Then
is rainbow.
Subcase 1.2: and
.
The path is rainbow.
Subcase 1.3: is not isolated in
and
.
Choose and
. Then
is rainbow.
Subcase 1.4: is isolated in
and
is isolated in
.
Choose adjacent . The path
is rainbow.
Case 2: .
Choose a path in
.
Subcase 2.1: and
.
Choose . Then the path
is rainbow.
Subcase 2.2: and
.
Choose and
. Then
is rainbow.
Subcase 2.3: and
.
Choose any . Then
is rainbow.
Subcase 2.4: and
.
Choose and
. Then
is rainbow.
This proves that if (1) holds, then . If (2) holds, we are done by the next lemma which we prove separately for later use. □
Lemma 3
If contains a 3-walk between any
(possibly with
), and each
has at least 3 vertices, then
.
Proof
We will construct a rainbow 3-coloring on . Let
. Define a map
arbitrarily on each
, and put
(11)
(11) for all
adjacent in
. We prove that
is a rainbow coloring.
Let be non-adjacent, say
and
with
non-adjacent in
. Choose any walk
in
. We use this walk to find a rainbow path between
and
.
If , use
. If
, use
as a rainbow path. □
2.4 Diameter two
The rc of a graph can sometimes determine the structure of that graph. For instance, if and only if
is a complete graph, while
if and only if
is a tree (see [Citation1]). Below, we show that if
then the largest possible value of
determines whether every vertex of
is contained in a triangle or not.
Theorem 4
If and
, then
(12)
(12) where the maximum is taken over all possible graphs
such that each
has at least
vertices.
Proof
Suppose that every vertex is contained in a triangle. This assumption together with implies that
has a 3-walk between any
(possibly
). So by Lemma 3 we have
for any
-composition graph
.
Now we build a tight example. Replace a vertex with
where
, and every other vertex with
, to get a
-composition graph
. Then
is co-neighboring and
so
by Lemma 1 (1), i.e.
. This implies
, because any rainbow 2-coloring must also be a strong rainbow coloring.
If some vertex does not lie on any triangle, we are done by Theorem 2. □
3 Concluding remarks and open problems
We have proved when each
has at least
vertices. We have also studied what happens when
, but we did not consider the case that some
has less than
vertices.
Theorem 3 (2) is a partial converse to Theorem 2 because if contains a 3-walk between any
(possibly with
), then every vertex is contained in a triangle. These two statements are not equivalent, but it might be interesting to consider whether the weaker statement is enough. If it is, then the conclusion of Theorem 4 will also be true in the case
.
References
- ChartrandG.JohnsG.L.McKeonK.A.ZhangP., Rainbow connection in graphs Math. Bohem. 1332008 85–98
- LiX.SunY., Rainbow Connections of Graphs2012Springer
- S. Chakraborty, E. Fischer, A. Matsliah, R. Yuster, Hardness and algorithms for rainbow connectivity, in: 26th International Symposium on Theoretical Aspects of Computer Science STACS, 2011, pp. 243–254.
- BasavarajuM.ChandranL.S.RajendraprasadD.RamaswamyA., Rainbow connection number of graph power and graph products Graphs Combin. 302014 1363–1382
- GolograncT.MekišG.PeterinI., Rainbow connection and graph products Graphs Combin. 302014 591–607
- SeptyantoF.SugengK.A., Rainbow connections on graph joins Australas. J. Combin. 692017 375–381