Rainbow triangles sharing one common vertex or edge111BN was partially supported by NSFC (No. 11971346).
Abstract
Let be an edge-colored graph on vertices. For a vertex
, the color degree of in , denoted by ,
is the number of colors appearing on the edges incident with .
Denote by .
By a theorem of H. Li, an -vertex edge-colored graph contains a rainbow
triangle if . Inspired by this
result, we consider two related questions concerning
edge-colored books and friendship subgraphs of edge-colored graphs.
Let be a positive integer.
We prove that if where ,
then contains rainbow triangles sharing one common edge;
and if where ,
then contains rainbow triangles sharing one common vertex.
The special case of both results improves H. Li’s theorem.
The main novelty of our proof of the first result is a combination of the recent
new technique for finding rainbow cycles due to Czygrinow, Molla, Nagle, and Oursler
and some recent counting technique from [26]. The proof of the second result
is with the aid of the machine implicitly in the work of Turán numbers
for matching numbers due to Erdős and Gallai.
Keywords: edge-colored graph; color degree;
books; friendship graphs
AMS Classification 2020: 05C15, 05C38.
1 Introduction
In 1907, Mantel [28] proved that every triangle-free graph on vertices has size at most . Rademacher (see [12, pp.91]) showed that there are indeed at least triangles in a graph on vertices and at least edges but not only one triangle. The -fan (usually called friendship graph), denoted by , is a graph which consists of triangles sharing a common vertex. The book is a graph which consists of triangles sharing a common edge. Erdős [11] extended Mantel’s theorem and conjectured that there is a in if , which was later confirmed by Edwards in an unpublished manuscript [9] and independently by Khadžiivanov and Nikiforov [23]. Erdős, Füredi, Gould, and Gunderson [12] also studied Turán numbers of , and proved that if is odd; and if is even, for . These results immediately imply the fact that every graph on vertices with minimum degree at least contains a for and also a for . In this paper, we consider edge-colored versions of these extremal problems.
A subgraph of an edge-colored graph is properly colored (rainbow) if every two adjacent edges (all edges) have pairwise different colors. The rainbow and properly-colored subgraphs have been shown closely related to many graph properties and other topics, such as classical stability results on Turán functions [29], Bermond-Thomassen Conjecture [16], and Caccetta-Häggkvist Conjecture [1], etc. For more rainbow and properly-colored subgraphs under Dirac-type color degree conditions, we refer to [17, 18, 10, 6, 8].
The study of rainbow triangles has a rich history, and there are many classical open problems on them. In some classical problems, the host graph is complete. One conjecture due to Erdős and Sós [14] asserts that the maximum number of rainbow triangles in a 3-edge-coloring of the complete graph , denoted by , satisfied that , where and are as equal as possible. By using Flag Algebra, Balogh et al. [2] confirmed this conjecture for sufficiently large and for any . The other example is a recent conjecture by Aharoni (see [1]), which can imply Caccetta-Häggkvist Conjecture [5], a big and fundamental open problem in digraph. The conjecture says that given any positive integer , if is an -vertex edge-colored graph with color classes, each of size at least , then contains a rainbow cycle of length at most . For more recent developments on Aharoni’s conjecture, we refer to the work [7, 20, 21] and more references therein. A special case of Aharoni’s conjecture is about rainbow triangles. The relationship between directed triangles and rainbow triangles has been extensively used before (see [27, 24, 25]).
We would like to introduce a construction from Li [24]. Suppose that is an -vertex digraph satisfying out-degree of every vertex is at least . Let . We construct an edge-colored graph such that: ; for each arc , we color the edge with the color . In this way, the number of colors appearing on edges incident with different from equals to . Thus, finding a directed triangle in is equivalent to finding a rainbow triangle in such an edge-colored graph. More importantly for us, the idea of constructing the auxiliary digraph will also be an important constitution for our proofs in this paper.
Our theme of this paper is closely related to the color degree conditions for rainbow triangles. Let be an edge-colored graph. For every vertex , the color degree of , denoted by , is the number of distinct colors appearing on the edges which are incident to . The minimum color degree of , denoted by (or in short, ), equals to . It is an easy observation that every graph on vertices contains a triangle if minimum degree is at least . H. Li and Wang [27] considered a rainbow version and conjectured that the minimum color degree condition ensures the existence of a rainbow triangle in . This conjecture was confirmed by H. Li [24] in 2013.
Theorem 1 (H. Li [24]).
Let be an edge-colored graph on vertices. If then contains a rainbow triangle.
Independently, B. Li, Ning, Xu and Zhang [25] proved a weaker condition suffices for the existence of rainbow triangles, and moreover, characterized the exceptional graphs under the condition . Very recently, X. Li, Ning, Shi and Zhang [26] proved a counting version of Theorem 1, i.e., there are at least rainbow triangles in an edge-colored graph , which is best possible.
Hu, Li and Yang [22] proposed the following conjecture: Let be an edge-colored graph on vertices. If then contains vertex-disjoint rainbow triangles. Besides the work on Turán numbers of books and -fans mentioned before, our another motivation is to study the converse of Hu-Li-Yang’s conjecture, i.e., rainbow triangles sharing vertices or edges. As the selections for us, we shall study the existence of rainbow triangles sharing one common vertex or an edge under color degree conditions, in views of the famous books and friendship graphs in graph theory.
Our original result is the following one which improves Li’s theorem. Indeed, we can go farther.
Theorem 2.
Let be an edge-colored graph on vertices with .
(i) If then contains two rainbow triangles sharing one common edge;
(ii) If then contains two rainbow triangles sharing one common vertex.
This paper is organized as follows. In Section 2, we will list our main theorems. In Section 3, we introduce some necessary notations and terminology and prove some lemmas. In Section 4, we prove general versions of Theorem 2, i.e., Theorems 3 and 4. We conclude this paper with some more discussions on the sharpness of our results, together some propositions on and on uncolored graphs.
2 Main theorems
Our main results are given as follows.
Theorem 3.
Let be a positive integer and be an edge-colored graph on vertices. If then contains rainbow triangles sharing one edge.
Theorem 4.
Let be a positive integer and be an edge-colored graph on vertices. If then contains rainbow triangles only sharing one common vertex.
Setting in Theorem 3, the following example shows that the bound “” is sharp. Furthermore, it follows from Example 1 that the tight color degree should be at least when .
Example 1. Let be a properly-colored balanced complete 3-partite graph with and , where is a positive integer. Then for each vertex , while contains no and (see Figure 1).

The main novelty of our proof of Theorem 3 is a combination of the recent new technique for finding rainbow cycles due to Czygrinow, Molla, Nagle, and Oursler [6] and some recent counting technique from [26]. In particular, Czygrinow et al. [6] extended H. Li’s theorem by proving that for every integer , every edge-colored graph on many vertices satisfying admits a rainbow -cycle . One novel concept introduced in [6] is called restriction color, and it will be used in our proof. The proof of Theorem 4 is with the aid of the machine implicitly in the work of Turán number for matching numbers due to Erdős and Gallai [13]. (For details, see the proof of Lemma 13.)
3 Additional notations and lemmas
Some of our notations come from [6, 26]. Let be an edge-colored graph. Let be an edge-coloring of . For a color and a vertex , define the -neighborhood of as
-neighborhood in of as
where , and is the neighborhood of in . Define
For the sake of simplicity, let and . Moreover, let . The monochromatic degree of , denoted by , is the maximum number of edges incident to colored with a same color (i.e., .) For a graph , we denote the monochromatic degree of by .
W.l.o.g., assume that and for each vertex . (When there is no danger of ambiguity, we use for short.)
The following concept of restriction was firstly introduced in [6, Section 3].
Definition 5 (restriction color [6]).
Let be an edge-colored graph. Fix and . Suppose for and . We say restricts color for if is a rainbow and . Denote by the number of colors restricted for by .
Denote by the number of rainbow triangles containing ; by the number of rainbow triangles containing both and (i.e., containing the edge ); and .
According to the definition of restriction color, we have the following proposition.
Proposition 6.
Let be a vertex of and . Then and .
Proof.
For , we have . If is a restriction color for to with respect to , then and , and . Thus, is a rainbow triangle. It follows and . ∎
Remark 1. Throughout this paper, we say that an edge-colored graph is edge-minimal if for any , there exists a vertex incident to such that . Hence, contains neither monochromatic paths of length 3 nor monochromatic triangles.
The form of the following lemma is motivated by [26], but its proof is a mixture of techniques from [6, 26]. For the sake of simplicity, define the color set .
Lemma 7.
Let be an edge-colored graph which is edge-minimal. Then for , we have,
Proof of Lemma 7. For convenience, let , for , and for in the following. Let . For and , define a directed graph on as follows: the arc exists if and only if the following hold: (1) and ; and (2) . Since is edge-minimal, the existence of gives . (Indeed, since the arc exists, we have . If , there exists a monochromatic path of length 3, a contradiction!) Hence . Evidently, . Thus,
(1) |
As for , there are at most colors which only appear on edges from to . Then there are at least vertices in . Therefore,
(2) |
The proof is complete.
Since , we have the following corollary.
Corollary 8.
Let be an edge-colored graph which is edge-minimal. Then for , we have,
4 Edge-colored books and friendship graphs
4.1 Edge-colored books
The aim of this subsection is to prove Theorem 3.
Before the proof, it’s better to introduce a notation, which indeed is some term from Corollary 8. For , let
(3) |
Set
(4) | ||||
For two disjoint subsets , the set of colors appearing on the edges between and in is denoted by . We say an edge is a rainbow triangle edge of if is a rainbow triangle. Denote by the edge set of rainbow triangle edges of .
First we prove a result on a vertex with maximum monochromatic degree, i.e., a vertex with . Recall that we assume , where . Thus, . Also, means the set of all vertices such that .
Lemma 9.
Let be an edge-colored graph. Then for a vertex with we have . If and then there hold:
(a) ;
(b) for all ; and
(c) if , then .
If , then for all and both and in Ineq (5) equal to 0. Since , we have and for . Therefore, both (a) and (b) hold.
Note that . We have . Hence, for . Since is edge-minimal and , we have ; indeed, if , then there exists a monochromatic path of length 3 as . Furthermore, for any edge , is a rainbow triangle edge of . Hence . This proves (c). The proof is complete.
Lemma 10.
Let be a positive integer and be a graph on vertices. If then contains a .
Proof of Lemma 10. Suppose to the contrary that there is no in . If there exists a vertex with , then where . In this case, there is a . Suppose for all . Then for any edge , we have
Hence and . It follows that . Since each vertex in is of degree , we have . Similarly, for , we also have . Hence, . Then . Since is an integer, , and so , a contradiction. This proves Lemma 10.
Now we are ready to prove Theorem 3.
Proof of Theorem 3. We prove the theorem by contradiction. Let be a counterexample such that is as small as possible. We use instead of in the following. Let be a vertex with . By Lemma 10, we can assume .
If there exists an integer such that , then there exists a vertex satisfying , a contradiction. Thus,
(where the second inequality holds as the condition that ). It follows that for all by Lemma 7. Therefore, . That is, for . By Lemma 9 we have for all and for . Since contains no rainbow triangles sharing one common edge, for all .
Claim. There exists a vertex such that .
Proof.
Then, we infer
that is, , a contradiction.
4.2 Edge-colored friendship graphs
The aim of this subsection is to prove Theorem 4.
A matching of a graph consists of some vertex-disjoint edges. The matching number of a graph is the maximum number of pairwise disjoint edges in , denoted by . Erdős and Gallai [13] determined Turán number of a matching with given size.
A covering of a graph is a subset of such that every edge of has at least one end vertex in . A covering is a minimum covering if has no covering with . The number of vertices in a minimum covering of is called the covering number of , and is denoted by .
Lemma 11.
For a graph on vertices, we have . Furthermore, is complete if and only if .
Proof of Lemma 11. The sufficiency of condition is clear. We establish its necessity by the contradiction. Suppose that is not complete. Then there exist two vertices such that . Hence is a covering of . Thus, , a contradiction.
Now we will prove a useful bound on and , which is partly inspirited by the proof of Turán numbers of matchings by Erdős and Gallai [13]. Following Berge [4, pp. 176] (see also Erdős and Gallai [13, pp. 354]), for a graph with and , choose independent edges and call them -edges and the remaining edges -edges. Add a vertex to and connect with every vertex which is not incident with -edges (i.e., any vertex not in the edges of the matching of size ) by an edge. For all the new edges (i.e., the edges we add) and the old -edges (i.e., the matching), we call them -edges. A path is called alternating if its edges are alternately -edges and -edges. For a vertex, we say that it is a -vertex if it is reachable from by an alternating path which only ends with -edges. Apparently, is a -vertex.
Let be the set of all -vertices of , and be the components of obtained from by deleting . There is a well-known fact ([3, 4, pp. 169-170], [19, pp. 141-142]) on the relationship among -edges, -vertices and .
Fact 12.
Each -edge incident to a -vertex is also incident to some odd (i.e., is odd) and each odd has exactly one -edge incident to a -vertex.
It follows that each -edge is either incident to a -vertex and an odd , or is an edge of some (see Figure 1, the edges colored blue are -edges).

Furthermore, we can assert that contains exactly -edges. If , then there exist at least two vertices in incident to , a contradiction to Fact 12. Note that each vertex in is incident with an -edge; otherwise the vertex is connected with by an -edge, a contradiction. The following equation on can be deduced implicitly from Erdős and Gallai [13, pp. 355].
(6) |
Since for , by Lemma 11, we have the following lemma.
Lemma 13.
Let be a graph on vertices and be the partition as remarked above. Then
(7) |
Lemma 14.
Let be a graph on vertices and be the partition as remarked above. Then and is not empty. Furthermore, if , then
(1) is complete and odd for ;
(2) and the covering of consists of all vertices of and vertices of for .
Proof of Lemma 14. Since , is not complete. If , then contains exactly -edges, which implies that , a contradiction. Hence . follows from Ineq (7).
If , then all inequalities become equalities in Ineq (7). Hence for all . From Lemma 11, is complete.
Recall is the edge set of rainbow triangle edges of . Let denote the subgraph induced by the edge set . Let denote a minimum covering of . Thus . Now we are ready to prove Theorem 4.
Proof of Theorem 4. We prove the theorem by contradiction. Let be a counterexample with the smallest order , and then is as small as possible. Choose such that . Then . Since , by Corollary 8 and Lemma 9 we have . Hence . Then by Lemma 14.
Let be a color satisfying . Now we define two disjoint vertex subsets of . If , let be a maximum rainbow neighborhood of in and . If , let be a maximum rainbow neighborhood of in and . Set , and . Thus, . Apparently, and
(8) |
Define for .
According to the definition of , there is no rainbow triangle edge of in . For , if , then we have
(9) |
Let and be the oriented graph of defined as follows: let and orient each edge in by if . Then for , all in-arcs from are assigned the color , and all out-arcs from are assigned pairwise distinct colors which are different from as is edge-minimal. Hence and . Since for any , there exists a vertex such that
(10) |
In the following, we prove a useful claim on a vertex with .
Claim. for all .
Proof.
Apparently, we have
(11) |
If , then is properly-colored. Therefore, consists of isolated vertices by (9). Thus, for , . Hence by Ineqs (8) and (11), we have Now we have for all .
Assume that . Then for and , if (otherwise, there is a monochromatic , a contradiction). Thus for , we have . By Ineqs (8) and (11), we have
(12) | ||||
Since , we have . Since , , which gives that for all and all inequalities in Ineq (12) become equalities.
Meanwhile, we have as if . Hence for ,
(13) | ||||
Then for all . ∎
Let be the partition of as remarked in Lemma 13. Since is non-complete, by Claim, , which guarantees that and . Since , by Lemma 13, we have
We first consider the case of . By Lemma 14(2), for there exists exactly one vertex such that , as . For any and , the fact gives that . Since , . Since , by Claim, each vertex in is incident to all vertices in . For , there is only one vertex such that . Hence . Since , we have the following inequality:
as . This is a contradiction.
Next we consider the case that . The goal of the coming part is to prove that for any .
Suppose that there exists a vertex with . Recall that , and and are disjoint. Then by Claim and (8), we have
a contradiction. Thus, for any vertex , we have . Set . Recall the rule of the construction of (above the proof of Claim). We have for any . Since , each vertex satisfies that . Hence .
Since and , we have , and hence . Note that . To avoid the graph consisting of two rainbow triangles sharing one common vertex in , we have for . Since is also a vertex with , we have , a contradiction.
5 Concluding remarks
One may wonder the sharpness of Theorems 3 and 4. For Theorem 3, by Example 1, we know when (in this case, the subgraph is with order ), the color degree guaranteeing a properly colored should be larger than .
For uncolored friendship subgraphs, we first prove the following result.
Proposition 15.
Let be a positive integer and be a graph on vertices. If then contains a .
Proof of Proposition 15. We proceed the proof by induction on . The basic case is easily derived from Theorem 4. Let and suppose the result holds for . Suppose to the contrary that there is no in . Let be the center of a and . Since , each edge is contained in at least triangles. As , there exist vertices in . According to pigeonhole principle, there exists a in .
As we have already mentioned in the introduction, as corollaries of the result of Erdős et al. [12] on -fans and Erdős’ conjecture on books, respectively, the following results hold.
Proposition 16.
Let be a positive integer and be a graph on vertices. If then contains a .
Proposition 17.
Let be a positive integer and be a graph on vertices. If then contains a .
For Theorem 4, the corresponding color degree condition may be acceptable when one considers a nearly spanning . One evidence is that, if we consider the color degree condition for the spanning (that is, ), then the sufficient condition is that which equals to (see the following).
Fact 18.
Let be an edge-colored graph on vertices where is odd. If then contains a properly-colored .
Acknowledgment
The results presented here were reported by the first author in a workshop to congratulate the birthday of Prof. Jinjiang Yuan. The authors are very grateful to Prof. Jinjiang Yuan for his encouragement and comments.
References
- [1] R. Aharoni, M. DeVos, R. Holzman, Rainbow triangles and the Caccette-Häggkvist conjecture, J. Graph Theory 92 (2019), no. 4, 347–360.
- [2] J. Balogh, P. Hu, B. Lidický, F. Pfender, J. Volec, M. Young, Rainbow triangles in three-colored graphs, J. Combin. Theory. Ser. B 126 (2017), 83–113.
- [3] H.B. Belck, Regula̋re Faktoren von Graphen, J. Reine Angew. Math. 188 (1950), 228-252.
- [4] C. Berge, Théorie des graphes et ses applications (French), Collection Universitaire de Mathématiques, II Dunod, Paris 1958 viii+277 pp.
- [5] L. Caccetta, R. Häggkvist, On minimal digraphs with given girth, Proc. Ninth Southeastern Conf. on Combinatorics, Graph Theory, and Computing, Boca Raton, FLA, (1978), 181–187.
- [6] A. Czygrinow, T. Molla, B. Nagle, R. Oursler, On odd rainbow cycles in edge-colored graphs, European J. Combin. 94 (2021), Paper No. 103316, 10 pp.
- [7] M. Devos, M. Drescher, D. Funk, S. de la Maza, K. Guo, T. Huynh, B. Mohar, A. Montejano, Short rainbow cycles in graphs and matroids, J. Graph Theory (2020) 1–11, 2020.
- [8] L. Ding, J. Hu, G. Wang, D. Yang, Properly colored short cycles in edge-colored graphs, European J. Combin. 100 (2022), Paper No. 103436, 12 pp.
- [9] C.S. Edwards, A lower bound for the largest number of triangles with a common edge, (1977) (unpublished manuscript).
- [10] S. Ehard, E. Mohr, Rainbow triangles and cliques in edge-colored graphs, European J. Combin. 84 (2020), Paper No. 103037, 12pp.
- [11] P. Erdős, On a theorem of Rademacher-Turán, Illinois J. Math. 6 (1962), 122–127.
- [12] P. Erdős, Z. Füredi, R.J. Gould, D.S. Gunderson, Extremal graphs for intersecting triangles, J. Combin. Theory. Ser. B 64 (1995), No.1, 89–100.
- [13] P. Erdős, T. Gallai, On maximal paths and circuits of graphs, Acta Math. Acad. Sci. Hungar 10(3-4)(1959), 337–373.
- [14] P. Erdős, A. Hajnal, On Ramsey like theorems. Problems and results, Combinatorics, Proc. Conf. Combinatorial Math., Math. Inst., Oxford, 1972, Math. Inst. Appl., Oxford, 1972, pp. 123–140, Inst. Math. Appl., Southend, 1972.
- [15] P. Erdős, M. Simonovits, V.T. Sós, Anti-Ramsey theorems, in: Infinite and Finite Sets, (Colloq. Keszthely 1973), Colloq. Math. Soc. JÁnos Bolyai, 10 (1975), 633–643.
- [16] S. Fujita, R. Li, G. Wang, Decomposing edge-coloured graphs under colour degree constraints, Combin. Probab. Comput. 28 (2019), no. 5, 755–767.
- [17] S. Fujita, R. Li, S. Zhang, Color degree and monochromatic degree conditions for short properly colored cycles in edge-colored graphs, J. Graph Theory 87 (2018), no. 3, 362–373.
- [18] S. Fujita, B. Ning, C. Xu, S. Zhang, On sufficient conditions for rainbow cycles in edge-colored graphs, Discrete Math. 342 (2019), no. 7, 1956–1965.
- [19] T. Gallai, On factorisation of graphs, Acta Math. Acad. Sci. Hung. 1 (1950), 133-153.
- [20] P. Hompe, P. Pelikánová, A. Pokorná, S. Spirkl, On Aharoni’s rainbow generalization of the Cacceta-Ha̋ggkvist conjecture, Discrete Math. 344 (2021), 112319, pp 4.
- [21] P. Hompe, S. Spirkl, Further approximations for Aharoni’s rainbow generalization of the Caccetta-Ha̋ggkvist conjecture, Electronic J. Combin. 29 (1), 2022.
- [22] J. Hu, H. Li, D. Yang, Vertex-disjoint rainbow triangles in edge-colored graphs, Discrete Math. 343 (2020), No. 12, 112117, 5 pp.
- [23] N. Khadžiivanov, V. Nikiforov, Solution of a problem of P. Erdős about the maximum number of triangles with a common edge in a graph, C. R. Acad. Bulgare Sci. 32 (1979), 1315–1318 (in Russian).
- [24] H. Li, Rainbow ’s and ’s in edge-colored graphs, Discrete Math. 313 (2013), No. 19, 1893–1896.
- [25] B. Li, B. Ning, C. Xu, S. Zhang, Rainbow triangles in edge-colored graphs, European J. Combin. 36 (2014), 453–459.
- [26] X. Li, B. Ning, Y. Shi, S. Zhang, Counting rainbow triangles in edge-colored graphs, arXiv:2112.14458.
- [27] H. Li, G. Wang, Color degree and heterochromatic cycles in edge-colored graphs, European J. Combin. 33 (2012), no. 8, 1958–1964.
- [28] W. Mantel, Problem 28, soln. by H. Gouvental, W. Mantel, J. Teixeira de Mattes, F. Schuh and W. A. Wythoff, Wiskundige Opgaven 10 (1907) 60–61.
- [29] L. Yuan, Anti-Ramsey numbers for paths, arXiv:2102.00807.