TOPICS
Search

Rainbow Subgraph


A rainbow subgraph of a vertex-colored graph is a subgraph whose vertices have pairwise distinct colors (Angles d'Auriac et al. 2016). In a graph with an edge coloring, a rainbow subgraph is a subgraph whose edges have pairwise distinct colors.

If a rainbow subgraph is also tropical, then it is a colorful subgraph.

For a graph H, let f(n,e,H) be the least number of colors in an edge coloring of some graph on n vertices with at least e edges in which every copy of H is a rainbow subgraph. Shahab (2026) proved

 f(n,|_n^2/4_|+1,C_7)=(1/8+o(1))n^2
(1)

with o(1) tending to zero as n->infty in little-O notation, where |_x_| is the floor function. Together with the result of Bucić et al. (2026) for k>=4, this proves the Burr-Erdős-Graham-Sós conjecture

 f(n,|_n^2/4_|+1,C_(2k+1))=(1/8+o(1))n^2
(2)

for every fixed integer k>=3. This is Problem 809 in the Erdős problems collection.

Chao et al. (2026) proved that a simple graph with m edges and an edge coloring using r>=3 colors has at most

 sqrt((2(r-2))/(9r))m^(3/2)
(3)

rainbow triangles, meaning rainbow copies of the cycle graph C_3. The constant is sharp whenever an affine plane of order r-1 exists. In that case, the extremal graphs are balanced graph blow-ups of the complete graph on the points of such an affine plane, with colors assigned by parallel classes of lines, together with possible isolated vertices.

For every epsilon>0, Xu (2026, Theorem 1.1) proved that, for all sufficiently large integers m and all 1<=k<=2m, every finite simple graph with km edges and at most m edges of each color contains at least (1-epsilon)m rainbow forests with pairwise disjoint edge sets, each with exactly k edges. The edge coloring need not be proper. For every k>2m, a graph on k vertices with km differently colored edges has no k-edge forest, showing that the parameter range cannot be extended in general. The color bound is also sharp. A matching with m(m+1) edges, using m colors each m+1 times, has no rainbow forest of size m+1. Xu (2026) credits Codex with identifying the edge-count lemma and shorter proof that removed the proper-coloring assumption, and ChatGPT with helping develop the argument.


See also

Burr-Erdős-Graham-Sós Conjecture, Colorful Cycle, Colorful Subgraph, Edge Coloring, Rainbow Cycle, Tropical Subgraph, Vertex-Colored Graph

Explore with Wolfram|Alpha

References

Angles d'Auriac, J.-C.; Cohen, N.; El Maftouhi, A.; Harutyunyan, A.; Legay, S.; and Manoussakis, G. "Connected Tropical Subgraphs in Vertex-Colored Graphs." Disc. Math. Theor. Comput. Sci. 17, 31-42, 2016. https://doi.org/10.46298/dmtcs.2151.Bucić, M.; Chen, K.; and Ma, J. "On a Maximal Anti-Ramsey Conjecture of Burr, Erdős, Graham, and Sós." 24 Mar 2026. https://arxiv.org/abs/2603.18952.Burr, S. A.; Erdős, P.; Graham, R. L.; and Sós, V. T. "Maximal Antiramsey Graphs and the Strong Chromatic Number." J. Graph Theory 13, 263-282, 1989.Chao, T.-W.; Sankar, M.; and Yu, H.-H. H. "On Colorful Kruskal-Katona Theorems." 1 Oct 2026. https://arxiv.org/abs/2610.02165.Shahab, A. "The Burr-Erdős-Graham-Sós Conjecture for the Seven-Cycle." 29 Sep 2026. https://arxiv.org/abs/2609.38286.Xu, B. "Nearly Optimal Packings of Equally Sized Rainbow Forests." 19 Nov 2026. https://arxiv.org/abs/2609.29351v4.

Cite this as:

Weisstein, Eric W. "Rainbow Subgraph." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RainbowSubgraph.html

Subject classifications