GO-V.ORG
As seen in

rainbow coloring

with three colors. Every two non-adjacent vertices can be connected by a rainbow path, either directly through the center vertex (bottom left) or by detouring around one triangle to avoid a repeated edge color (bottom right). In graph theory, a path in an edge-colored graph is said to be rainbow if no color repeats on it. A graph is said to be rainbow-connected (or rainbow colored) if there is a rainbow path between each pair of its vertices. If there is a rainbow shortest path between each pair of vertices, the graph is said to be strongly rainbow-connected (or strongly rainbow colored). Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

, with three colors. Every two non-adjacent vertices can be connected by a rainbow path, either directly through the center vertex (bottom left) or by detouring around one triangle to avoid a repeated edge color (bottom right). In graph theory, a path in an edge-colored graph is said to be rainbow if no color repeats on it. A graph is said to be rainbow-connected (or rainbow colored) if there is a rainbow path between each pair of its vertices. If there is a rainbow shortest path between each pair of vertices, the graph is said to be strongly rainbow-connected (or strongly rainbow colored). \text{rc}(G) = \text{src}(G) = 1 if and only if G is a complete graph. \text{rc}(G) = \text{src}(G) = m if and only if G is a tree. The above shows that in terms of the number of vertices, the upper bound \text{rc}(G) \leq n - 1 is the best possible in general. In fact, a rainbow coloring using n - 1 colors can be constructed by coloring the edges of a spanning tree of G in distinct colors. The remaining uncolored edges are colored arbitrarily, without introducing new colors. When G is 2-connected, we have that \text{rc}(G) \leq \lceil n/2 \rceil . Moreover, this is tight as witnessed by e.g. odd cycles. For every bridgeless graph G with radius r , rc(G)\le r(r+2) . The very strong rainbow connection number ( vsrc(G) ) is the minimum number of colors required to color the edges of a graph G such that every shortest path between any two vertices is a rainbow path. While approximating vsrc(G) for a general graph G is an NP-hard problem, it can be solved in polynomial time for certain graph classes, such as cactus graphs. \text{rc}(C_n) = \text{src}(C_n) = \lceil n/2 \rceil , for each integer n \geq 4 , where C_n is the cycle graph. \text{rc}(W_n) = 3 , for each integer n \geq 7 , and \text{src}(W_n) = \lceil n/3 \rceil , for n \geq 3 , where W_n is the wheel graph. The problem of deciding whether \text{rc}(G) = 2 for a given graph G is NP-complete. Because \text{rc}(G) = 2 if and only if \text{src}(G) = 2 , it follows that deciding if \text{src}(G) = 2 is NP-complete for a given graph G . ==See also== Rainbow matching

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"rainbow coloring". 1781042685. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1358635812

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·