Gallai-Ramsey numbers for rainbow paths
Xihe Li, Pierre Besse, Colton Magnant, Ligong Wang, Noah Watts

TL;DR
This paper investigates Gallai-Ramsey numbers for rainbow paths, providing complete solutions for P4 and conjectures supported by results for P5, linking these numbers to classical Ramsey numbers.
Contribution
The paper fully solves the Gallai-Ramsey problem for P4 and proposes a conjecture for P5, connecting these numbers to known Ramsey numbers.
Findings
Complete solution for P4 case reducing to 2-color Ramsey numbers.
Conjecture that P5 case reduces to 3-color Ramsey numbers.
Supporting results for the P5 conjecture.
Abstract
Given graphs and and a positive integer , the \emph{Gallai-Ramsey number}, denoted by is defined to be the minimum integer such that every coloring of using at most colors will contain either a rainbow copy of or a monochromatic copy of . We consider this question in the cases where . In the case where , we completely solve the Gallai-Ramsey question by reducing to the -color Ramsey numbers. In the case where , we conjecture that the problem reduces to the -color Ramsey numbers and provide several results in support of this conjecture.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLimits and Structures in Graph Theory · Advanced Topology and Set Theory · Advanced Graph Theory Research
Gallai-Ramsey numbers for rainbow paths111Research partially supported by National Natural Science Foundation of China (No. 11871398)
Xihe Li222Department of Applied Mathematics, School of Science, Northwestern Polytechnical University, Xi’an, Shaanxi 710072, P. R. China. 333Xi’an-Budapest Joint Research Center for Combinatorics, Northwestern Polytechnical University, Xi’an, Shaanxi 710129, P. R. China., Pierre Besse444Department of Mathematics, Clayton State University, Morrow, GA 30260, USA., Colton Magnant44footnotemark: 4,
Ligong Wang22footnotemark: 2 33footnotemark: 3, Noah Watts44footnotemark: 4
Abstract
Given graphs and and a positive integer , the Gallai-Ramsey number, denoted by is defined to be the minimum integer such that every coloring of using at most colors will contain either a rainbow copy of or a monochromatic copy of . We consider this question in the cases where . In the case where , we completely solve the Gallai-Ramsey question by reducing to the -color Ramsey numbers. In the case where , we conjecture that the problem reduces to the -color Ramsey numbers and provide several results in support of this conjecture.
1 Introduction
In this work, we only consider edge colorings of graphs. A colored graph is called rainbow if all edges have different colors and monochromatic if all edges have a single color. Given a graph , the -color Ramsey number for , denoted by , is the minimum integer such that every coloring of using at most colors will contain a monochromatic copy of in some color. Given graphs and and a positive integer , the Gallai-Ramsey number, denoted by is defined to be the minimum integer such that every coloring of using at most colors will contain either a rainbow copy of or a monochromatic copy of . Other standard notation can be found in [2].
Recently, there have been many results concerning the case where is a triangle. We refer the interested reader to the survey [5] with a dynamically updated version available at [6]. Other choices for have been much less studied so we consider the case where is a path. For short paths, the structure of colored complete graphs containing no rainbow path is well understood (see Theorems 3 and 4).
When , the structure is extremely strong, yielding the following result.
Theorem 1**.**
For any graph with no isolated vertices, we have
[TABLE]
except when and , in which case
[TABLE]
Note that the restriction of isolated vertices is simply to eliminate trivial case analysis and can be avoided by ensuring there are enough remaining vertices.
Theorem 1 actually completes the classification that was begun in [8] with the following result.
Theorem 2** ([8]).**
For every graph of order , .
When , the structure is not quite as strong as in the case but we believe the following to be true.
Conjecture 1**.**
For any graph with no isolated vertices, we have
[TABLE]
As seen in Theorem 1, there may be one or more exceptional graphs but since our partial results in support of this conjecture eliminate many of the most natural candidates, we feel this conjecture is likely to be true in its stated form.
For the lower bound, the sharpness example for is a -colored complete graph containing no monochromatic copy of . This trivially contains no rainbow copy of since only three colors are used. It therefore suffices to prove (or disprove) the upper bound in Conjecture 1.
This paper is laid out as follows. In Section 2, we review several preliminary results that will be used later in the proofs. These include the aforementioned structural characterizations of graphs with no rainbow small paths. In Section 3, we prove Theorem 1. Finally, Section 4 contains several results in support of Conjecture 1.
2 Preliminaries
We first state the main structural tools that will be used in out proofs. These provide strong structure when short rainbow paths are forbidden.
Theorem 3** ([10]).**
Let , be edge colored such that it contains no rainbow . Then one of the following holds:
(a)* at most two colors are used;*
(b)* and the graph is precisely the -coloring of in which each color induces a matching.*
For this next result, given a color , let be the set of vertices with at least one incident edge in color and let be the set of edges of color .
Theorem 4** ([10]).**
Let , be edge colored such that it contains no rainbow . Then after renumbering the colors, one of the following holds:
(a)* at most three colors are used;*
(b)* color is dominant, meaning that the sets , are disjoint;*
(c)* is monochromatic for some vertex ;*
(d)* there exist three special vertices such that contains plus perhaps some edges incident with , and every other edge is in ;*
(e)* there exist four special vertices such that , , , and every other edge is in ;*
(f)* , , , , and .*
More generally, let be a non-empty set of graphs. Let be the minimum number of vertices such that in every -coloring of , there is a monochromatic copy of some graph in . More specifically, for two sets of graphs and , let be the minimum number of vertices such that in every red-blue coloring of , there is either a red copy of a graph in or a blue copy of a graph in . If either set consists of a single graph, the notation will be simplified to just be the graph, e.g. .
Given a bipartite graph say with , let denote the order of the bigger side of and let denote the smaller side of .
3 Proof of Theorem 1
In this section, we provide the straightforward proof of Theorem 1. As simple as this proof is, it provides an introduction to some of the strategies that will be used in our later results.
Proof.
For the lower bound, the sharpness example for is a -colored complete graph on vertices containing no monochromatic copy of . This trivially also contains no rainbow copy of since only two colors are used. In the special case when , we have but the graph described in Case (b) of Theorem 3, the -coloring of in which each color induces a matching, contains no rainbow copy of and no monochromatic copy of .
For the upper bound, we consider a coloring of where which contains no rainbow copy of . By Theorem 3, there are only two possible cases for what this coloring can look like. If Case (a) holds, then uses only two colors and there is a monochromatic copy of in by the definition of . On the other hand, if Case (b) holds, then , which is a contradiction unless since for any other graph .
If , then trivially . If , then the -coloring of in which each color induces a matching contains no rainbow and no monochromatic copy of . By Theorem 3, for , there is no -coloring of with which does not contain a rainbow . This means that for , we have . ∎
4 Rainbow
In this section, we prove several results in support of Conjecture 1. For the sake of notation, let be the set of graphs for which , those that do not satisfy Conjecture 1. Indeed, Conjecture 1 claims that the set is empty.
Lemma 1**.**
Every graph is disconnected. Furthermore, in order for a -colored complete graph containing no rainbow and no monochromatic copy of to have more than vertices, it must satisfy Case (b) of Theorem 4.
Essentially, this lemma states that in order to prove Conjecture 1, it suffices to consider only disconnected graphs and look within colored complete graphs satisfying Case (b) of Theorem 4.
Proof.
Let be a graph and be a positive integer. Let be a -colored complete graph. The goal of this proof is to show that if either is connected or satisfies any case of Theorem 4 other than Case (b).
We consider a coloring of where which contains no rainbow copy of . If satisfies Case (a), the result is immediate by the definition of . This means we may assume that at least colors appear in . In each of the Cases (c), (d), (e), and (f), contains a monochromatic copy of , and moreover, there is a monochromatic copy of .
- •
If , then trivially , so we may assume .
- •
If is a complete graph, the clearly, and thus there is a monochromatic copy of in .
- •
If is not a complete graph and not in , i.e. has at least one missing edge, then , and thus there is a monochromatic copy of in .
- •
If , then [7]. With at least colors and no rainbow copy of , must be the graph in Case (f), which contains a monochromatic copy of .
- •
If , then . This means that must satisfy one of Cases (c), (d), or (e), each of which contains a monochromatic copy of .
We may therefore suppose that satisfies Case (b) of Theorem 4. If is connected, then merging all colors other than color into a single color would not create a monochromatic copy of . Since , there is a monochromatic copy of in to complete the proof. We may therefore assume that is disconnected. ∎
Next we prove that all bipartite graphs satisfy Conjecture 1.
Lemma 2**.**
If is bipartite, then .
Proof.
Let be a bipartite graph, let be a positive integer, and suppose is a -coloring of where which contains no rainbow copy of and no monochromatic copy of . By Lemma 1, we may assume that is disconnected and satisfies Case (b) of Theorem 4.
Let be a partition of such that there are only edges of color or within for , and there are only edges of color in between the parts. Choose a subset of colors and define vertex sets and such that
(i) and
(ii) is minimal.
Claim 1**.**
If , then .
Proof.
Suppose, for a contradiction, that . Since , we know that where this minimum is achieved say by the part , so . If , then is a better choice than , contradicting the choice of . We may therefore assume that . Now let , and correspondingly and . Then we have and
[TABLE]
contradicting to the choice of . ∎
Now we recolor the edges of to make a -coloring such that
(i) change all edges of color to red;
(ii) for , change all edges of color to blue;
(iii) for , change all edges of color to green.
Let denote the resulting graph and since , there must be a monochromatic copy of , say . Since contains no monochromatic , then must be colored by blue or green and moreover, if then must be green.
First suppose so is green. Then certainly and . For any subsets and with and , the vertices with corresponding edges of color form a monochromatic copy of , which contains a copy of , a contradiction.
Finally suppose . Then by Claim 1, we have for each . Without loss of generality, we may assume that is colored by blue in , which implies . Since , we can choose subsets of vertices with and with . Then the vertices with corresponding edges of color form a monochromatic copy of using color in , which contains a copy of , a contradiction to complete the proof of Lemma 2. ∎
Our next lemma may appear, on the surface, to be a relatively simple observation but it leads to a variety of other results, as presented in the subsection to follow.
Lemma 3**.**
Let be a disconnected graph and be the set of connected graphs containing as a subgraph. If , then .
Proof.
Let be a rainbow -free -coloring of . By Lemma 1, it suffices to consider such colorings that satisfy Case (b) of Theorem 4. We recolor the edges of such that
(i) replace all edges of color with blue;
(ii) for , replace all edges of color with red.
Let be the resulting graph and note that , there is a monochromatic copy of some graph in , where . If is blue, then there is a monochromatic with color in , which contains a , as desired. On the other hand, if is red, then since is connected, there is a monochromatic copy of in color for some in , which contains a , as desired. ∎
Lemma 3 provides a general framework for proving that for various graphs . For example, we will use Lemma 3 to prove that and and others in Subsection 4.1.
4.1 Applications of Lemma 3
In order to apply Lemma 3, we must compute (or at least bound) . We therefore state the following propositions which compute this value for triangles and -cycles.
Proposition 1** ([8]).**
For , .
Proposition 2**.**
For , .
We will provide the proof of Proposition 2 later, but first we apply Propositions 1 and 2 in the following result.
Corollary 5**.**
For ,
(1) * ;*
(2) * .*
Proof.
In order to show that for , it suffices to construct a -coloring of a complete graph of order at least which contains no monochromatic copy of .
First suppose . For , let be a complete graph of order colored entirely with color . Let be a complete graph of order colored entirely with color and let with all edges between these graphs having color . This graph is a coloring of the complete graph of order and contains no monochromatic copy of . See Figure 1(a).
Next suppose . For , let be a complete graph of order colored entirely with color . Let be a complete graph of order colored entirely with color and let with all edges between these graphs having color . This graph is a coloring of the complete graph of order and contains no monochromatic copy of . See Figure 1(b).
Finally, since for , by Lemma 3, we have the desired result. ∎
Before the proof of Proposition 2, we first provide some supporting lemmas.
Lemma 4** ([1]).**
For every connected graph containing at least one edge, we have , where is the minimum number of vertices in some color class under all proper vertex colorings in colors.
Lemma 5** ([3]).**
.
Lemma 6**.**
For , .
Proof.
For the lower bound, let be a complete graph of order colored entirely with color and let be a complete graph of order colored entirely with color . Then let where all edges between the two graphs have color . This graph has order and contains no copy of (so certainly no copy of a graph in ) in color and no copy of in color . See Figure 2.
We prove the upper bound by induction on . For , the result is trivial. Let be a red-blue coloring of and suppose for a contradiction that there is no red copy of a graph in and no blue copy of . By induction on , we may assume there is a blue matching . Since there is no blue , every edge contains a vertex adjacent in red to all but at most one vertex of . (Note that both ends of can have a red edge to a single vertex but then no other red edges.) Additionally, induces a red complete graph.
Since , we can select pairwise disjoint red copies of within and corresponding vertices in (using one end from each matching edge) to form a red copy of . Since there are vertices in the remainder of , we can find a red copy of on these vertices. It is easy to see that the and the can be included into a connected red subgraph, producing the desired red copy of a graph in . ∎
Proof of Proposition 2. The lower bound follows from the following example (much like Figure 1(b)). Let be copy of colored entirely with color and let be a copy of colored entirely with color . The desired example is then the graph of order where all edges between these three subgraphs have color . In , there is no connected subgraph in color of order at least and no copy of in color so contains no graph in . Note that this lower bound is not an immediate corollary of Lemma 4 since we are considering a set of graphs as opposed to a single graph.
For the upper bound, consider a -coloring of , say using red and blue. At least one of these colors must be connected so without loss of generality, suppose blue induces a connected subgraph. By Lemma 5 there is a monochromatic copy of . In order to avoid a monochromatic copy of a graph in , this copy of must be red and red must induce a disconnected subgraph. Suppose the red components have vertex sets where and suppose so . Note that all edges between these components must be blue.
We break the remainder of the proof into cases based on the orders of and .
Case 1**.**
* and .*
Suppose for . Note that . By Lemma 6, there is a blue matching within for each . Since
[TABLE]
for , we can take vertices in , vertices in and to form a blue copy of , denoted by . Note that we can choose and to be vertex disjoint. If , then we are done since along with any combination of the many blue edges between them produces a blue graph in .
Thus, suppose , so there are vertices in the set . Since
[TABLE]
for , we can choose vertices in , vertices in , and vertices in to form a blue copy of that is disjoint from and . Then we get a blue , and since the blue subgraph is connected, we have produced the desired blue graph in .
Case 2**.**
* and .*
Suppose without loss of generality that and , where . If , then there is blue copy of within by Lemma 6. We can then find a blue copy of by taking vertices in , vertices in , and , thereby creating the desired blue graph in . Therefore, we may assume that . By Lemma 6, there is a blue copy of within , and so we can find a blue copy of , denoted by , by using vertices in , vertices in , and .
If , then contains at least vertices, , and . Thus, we can choose vertices in , vertices in , and vertices in to form a blue . Since , we obtain a blue and so we have the desired blue graph in .
If , then contains vertices. Then we can find a blue by taking vertices in , vertices in , and vertices in . This produces the desired blue graph in .
Case 3**.**
* and , or .*
In this case, since , we may assume that since otherwise we can find a blue copy of similarly as Case 2.
Let be a set of vertices such that and, starting with , all vertices of are selected before taking vertices from . Then starting at the next set , we choose in the same way such that . Let . It is easy to see that . Thus we can find a blue by taking all of , all of , and vertices from . This produces the desired blue graph in . ∎
The method in the proof of Proposition 2 can be used to consider Case (b) in rainbow -free colorings, since the structures are analogous. It is also similar to the strategy when considering bipartite graphs in Lemma 2.
Theorem 6**.**
Let be a bipartite graph, and let be the graph obtained from by adding an edge within . For any integer , we have
Proof.
Suppose and let be a rainbow -free -coloring of . By Lemma 1, we may assume satisfies Case (b) of Theorem 4. Then has a partition , where .
Let , , and we may assume that . First, we have the following results concerning Ramsey numbers.
Claim 2**.**
.
Proof.
Let be three vertex sets with . For , we color the edges within with color , and color the edges between such that , and . The resulting coloring is a 3-coloring of without monochromatic . ∎
Claim 3**.**
For , .
Proof.
For the lower bound, let be two vertex sets with and . We use red to color the edges within and use blue to color all the remaining edges. The resulting coloring of contains no red and no blue .
For the upper bound, we will prove by induction on . For , it is trivial. Suppose we have a blue matching in a 2-coloring of with red and blue. If there is no blue , then every edge in contains a vertex, say , adjacent in red to all but at most one vertex of , and induces a red complete graph. Since , we can find pairwise disjoint red using and vertices in . Since there are vertices in the remainder of , we can find a red . The result follows. ∎
Note that since , it is easy to see that . Now we can give an upper bound of .
Claim 4**.**
.
Proof.
If , then by Claim 3 there is a matching in color 1 within for avoiding a in color 2. Hence, we can form a in color 1 by taking , vertices in and vertices in , a contradiction. ∎
By Claims 2 and 4, we have and . In the following, we will divide the rest of the proof into three cases.
Case 1**.**
* and .*
Since , we can form a in color 1 by taking vertices in , vertices in and vertices in , a contradiction.
Case 2**.**
* and .*
Firstly, we choose with . Secondly, we choose with starting with , and all the vertices of are selected before taking vertices from for . Suppose for some we have and , i.e., and . Since , we have . Thus, by Claims 2 and 4 we have
[TABLE]
We can choose such that . Then , and form a in color 1, a contradiction.
Case 3**.**
.
In this case, we have . Let and . We shall show that contains a in color 1.
If , then we choose with and let . If , then we choose with starting with , and all the vertices of are selected before taking vertices from for . Suppose for some we have and , i.e., and . Since , we have . Now we let .
If , then we choose with and let . If , then we choose with starting with , and all the vertices of are selected before taking vertices from for . Suppose for some we have and , i.e., and . Since , we have . Now we let .
Note that we have . Thus . We can choose such that . Then , and form a in color 1, which contains a , a contradiction. ∎
Next some results about complete graphs.
Theorem 7**.**
For and , we have .
Proof.
First a claim about the -color Ramsey number for .
Claim 5**.**
.
Proof.
In the case , the result follows from [8] where it was shown that for . Thus, we may assume that . For a contradiction, suppose that is a -coloring of a complete graph using red and blue without monochromatic , where . Without loss of generality, we may assume that red is connected. Then there are at most disjoint red copies of , and denote these by , where . Let , and note that there is no red copy of in . Moreover, we have
[TABLE]
Case 1**.**
.
From the known lower bounds of Ramsey numbers for small complete graphs, we have for , and from [4], we have for . Thus, for all we have . Therefore, we have
[TABLE]
Since there is no red copy of in , there must be a blue copy of in . In fact, we can find disjoint copies of blue in by a simple greedy application of the same argument. Call these blue cliques . Consider the -coloring of by taking one vertex from each clique for . Since
[TABLE]
for any tree of order (see [9]), there is a blue copy of in . This gives a blue copy of a graph in in , a contradiction.
Case 2**.**
.
In this case, we have . Thus
[TABLE]
Therefore, we can greedily find vertex disjoint blue copies of blue in . Since , we can find the desired blue copy of a graph in by a same argument as above.
Case 3**.**
.
In this case, we have . Thus we have
[TABLE]
Therefore, we can greedily find vertex disjoint blue copies of in . Since , we can find the desired blue copy of a graph in by a same argument as above. ∎
In the remainder of the proof, we show that by constructing a 3-coloring of where , which contains no monochromatic copy of . Let be a -coloring of without monochromatic using red and blue. Let be disjoint copies of . Let be a monochromatic with green. We form a by adding only green edges between . Since each green must contains a vertex of , there is no green copy of , and clearly there is no red or blue copy of . Thus we have , and so . ∎
Theorem 8**.**
For any connected graph , we have .
Proof.
For a contradiction, suppose is a rainbow -free -coloring of without a monochromatic copy of . If , then is a bipartite graph, and the result is true by Lemma 2.
If , then is a tripartite graph. By Lemma 1, we may assume that satisfies Case (b) of Theorem 4. Let be a partition of such that there are only colors or within for and only color on edges between these parts. Without loss of generality, suppose that . Now we recolor the edges of to make a -coloring such that
(1) all edges of color become red;
(2) all edges of color become blue; and
(3) all edges of other colors become green.
Let denote the resulting -coloring. Since contains no monochromatic and , there is a monochromatic copy of in and to avoid such a subgraph in , this subgraph must be green. Moreover, these two green copies of must appear in distinct parts, say and . Without loss of generality, suppose . Since , we can construct two disjoint copies of in color in , one by taking vertices in , vertices in , and vertices in , and the other one by taking vertices in , vertices in , and vertices in , a contradiction.
We may therefore assume . We have the following claim.
Claim 6**.**
If , then , where is the minimum number of vertices in some color class over all proper vertex-colorings in colors.
Proof.
For a contradiction, suppose is a 2-coloring of using red and blue without monochromatic copy of a graph in , where . Without loss of generality, we may assume that red is connected. Then there is at most one red copy of , denoted by . Let , and so there is no red copy of in . Moreover, we have
[TABLE]
Thus we can greedily find disjoint blue copies of in , say with vertex sets . In order to avoid a blue copy of a graph in , there must be only red edges in between the sets of vertices .
Consider a proper vertex-coloring of with colors, and let be the number of vertices colored by color for . We first form a red copy of in , denoted by , by taking vertices in for each . Then we form a second red copy of in , denoted by , by selecting vertices in for (where ). Therefore, there is a red copy of a graph in within , a contradiction. ∎
In the remainder of the proof, we will show that by constructing a -coloring of , where . Let be a -coloring of without a monochromatic copy of , say using colors red and blue. Let be disjoint copies of . Let be a monochromatic in green. We form a by adding all green edges between the disjoint graphs . Since each green copy of must contains at least vertices from , there can be no green copy of , and clearly there is no red or blue copy of since there is no copy of in either color. Thus, we have , so , as claimed. ∎
5 Conclusion
In light of Lemma 1, since almost all graphs are connected, we get the following immediate corollary.
Corollary 9**.**
For almost all graphs , we have .
In order to confirm Conjecture 1 for more general classes of graphs, we require bounds on the corresponding - and -color Ramsey numbers. As the area of Ramsey Theory develops, more results relating to Conjecture 1 are likely to become feasible.
Through Lemma 3, we initiate the discussion of Ramsey numbers of classes of graphs obtained from disconnected graphs by adding edges. While largely unexplored, this area appears to be very fertile for future research.
Problem 1**.**
Given a positive integer and a disconnected graph , find .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. A. Burr. Ramsey numbers involving graphs with long suspended paths. J. London Math. Soc. (2) , 24(3):405–413, 1981.
- 2[2] G. Chartrand, L. Lesniak, and P. Zhang. Graphs & digraphs . CRC Press, Boca Raton, FL, fifth edition, 2011.
- 3[3] T. Denley. The Ramsey numbers for disjoint unions of cycles. Discrete Math. , 149(1-3):31–44, 1996.
- 4[4] P. Erdös. Some remarks on the theory of graphs. Bull. Amer. Math. Soc. , 53:292–294, 1947.
- 5[5] S. Fujita, C. Magnant, and K. Ozeki. Rainbow generalizations of Ramsey theory: a survey. Graphs Combin. , 26(1):1–30, 2010.
- 6[6] S. Fujita, C. Magnant, and K. Ozeki. Rainbow generalizations of Ramsey theory - a dynamic survey. Theo. Appl. Graphs , 0(1), 2014.
- 7[7] A. Gyárfás, M. Ruszinkó, G. N. Sárközy, and E. Szemerédi. Three-color Ramsey numbers for paths. Combinatorica , 27(1):35–69, 2007.
- 8[8] A. Gyárfás and G. N. Sárközy. Ramsey number of a connected triangle matching. J. Graph Theory , 83(2):109–119, 2016.
