---
title: Edge-Coloring and Forbidden Patterns
url: https://www.emergentmind.com/topics/edge-coloring-problems-with-forbidden-patterns
type: topic
---

# Edge-Coloring and Forbidden Patterns

Edge-coloring problems with forbidden patterns study constraints on colored graphs in which specified color configurations are excluded, either as exact colored subgraphs, as homomorphic images of colored obstructions, or as prescribed color distributions on a target graph. In one general formulation, the input is a graph \(X\), the colors are \([r]\), and the question is whether \(E(X)\) can be colored so that no member of a finite obstruction family \(\mathcal F\) admits a color-preserving homomorphism into the resulting colored graph [2507.19000]. The subject therefore encompasses decision problems, extremal thresholds, counting questions, and structural colorings such as rainbow-avoiding, parity-constrained, and locally proper colorings.

## 1. Formal models for forbidden patterns

A general obstruction-based language is given by edge-colored graphs \((G,\gamma)\), with \(\gamma:E(G)\to[r]\), and a finite family \(\mathcal F\) of finite edge-colored graphs over the same color set. The coloring problem \(\Col(\mathcal F)\) asks whether an uncolored input graph \(X\) has an edge-coloring \(\gamma:E(X)\to[r]\) such that \((X,\gamma)\) is \(\mathcal F\)-free in the homomorphism sense, while the extension problem \(\Ext(\mathcal F)\) asks for an \(\mathcal F\)-free extension of a partial edge-coloring \(\xi\) on \(X\) [2507.19000]. This homomorphism-based formulation is broad enough to subsume Ramsey-type avoidance, monochromatic clique avoidance, and mixed cycle/clique restrictions.

A complementary formulation constrains the color classes inside a forced copy of a graph \(G\). For a family \(\mathcal F\) of graphs, the parameter
\[
f(n,G\mid \mathcal F)
\]
is the smallest \(k\) such that every edge-coloring of \(K_n\) with at least \(k\) colors contains a copy of \(G\) in which each color class induces a member of \(\mathcal F\) [2408.04257]. Anti-Ramsey theory appears as the special case \(\mathcal F=\{K_2\}\), local rainbow colorings correspond to \(\mathcal F=\{tK_2:t\ge 1\}\), strong odd colorings correspond to the family of all odd graphs, and class-parity colorings correspond to the family of all odd graphs together with all even graphs [2408.04257].

A third formalization treats forbidden patterns as local transition rules on consecutive edges. In a forbidden-transition graph \((G,T)\), a transition is an unordered pair of incident edges, \(T\) specifies the permitted transitions, and a walk is compatible if every consecutive pair of edges belongs to \(T\). Properly colored walks in edge-colored graphs are a special case obtained by declaring \(\{e,f\}\in T(v)\) exactly when the colors of \(e\) and \(f\) differ [2009.12892]. This suggests a common viewpoint in which forbidden patterns may be encoded as local constraints on edge pairs, global colored obstructions, or admissible color-class families.

## 2. Local pattern avoidance in proper edge-colorings

One important branch of the subject imposes forbidden patterns on proper edge-colorings. A proper edge-coloring of \(G\) is a map \(c:E(G)\to\{1,2,\dots,k\}\) such that adjacent edges receive distinct colors. Within this setting, Gyárfás and Sárközy introduced A-, B-, and C-colorings: an A-coloring is a proper edge-coloring such that the union of any two color classes contains no \(P_5\) and no \(C_4\); a B-coloring is a proper edge-coloring such that every \(C_4\) is rainbow; and a C-coloring satisfies both conditions [2606.06831]. Strong edge-coloring is the more restrictive condition that all distance-2 edges must receive distinct colors.

A recent addition to this hierarchy is the D-coloring. For a graph \(G\), a D-coloring is a proper edge-coloring such that every diamond subgraph, meaning an induced \(K_4-e\), is rainbow [2606.06831]. Equivalently, if two edges \(uv,wx\) are at distance \(2\) in the line graph and their four endpoints span at least three of the four possible connecting edges, then \(uv\) and \(wx\) must receive distinct colors [2606.06831]. The associated parameter is the D-chromatic index \(\chi'_D(G)\), and the basic inequalities
\[
\chi'_s(G)\ge \chi'_B(G)\ge \chi'_D(G)\ge \chi'(G)
\]
place D-coloring strictly between ordinary proper edge-coloring and stronger rainbow-type conditions [2606.06831].

A different proper-coloring constraint forbids rainbow cycles globally. A proper rainbow-cycle-forbidding edge-coloring is a proper edge-coloring in which every cycle has at least two edges with the same color; a graph is PRCF-good if it admits such a coloring and PRCF-bad otherwise [2106.05324]. This condition is not expressed by forbidding one fixed small subgraph, but by excluding the entire class of rainbow cycles. It therefore sits naturally beside D-coloring and B-coloring as a proper edge-coloring problem with a forbidden pattern family rather than a single forbidden adjacency relation.

## 3. Unavoidability, omnitonality, and density thresholds

A large extremal literature asks when density in each color forces the appearance of prescribed colored patterns. For each \(r\) and \(t\), the finite family \(\mathcal F_t^r\) consists of certain \(r\)-edge-colored complete graphs \(K_{kt}\) whose vertex set is partitioned into parts \(V_i\) of size \(t\), each \(H[V_i]\) and each \(H[V_i\times V_j]\) is monochromatic, all \(r\) colors appear, and every part is essential in the sense that removing it makes some color disappear. For sufficiently large \(n\), any \(r\)-edge-colored \(K_n\) with at least \(C n^{2-1/(t r^{r-1})}\) edges in each color contains a member of \(\mathcal F_t^r\), and it is conjectured that the exponent \(2-1/t\) is sufficient [1912.06302]. In the case \(r=2\), Girão and Narayanan proved the \(2-1/t\) exponent, and the same paper gives a short proof by dependent random choice [1912.06302].

In the bipartite host \(K_{n,n}\), the threshold picture becomes more explicit. For every fixed \(t\), there exists \(z_2(n,t)=\mathcal O(n^{2-1/t})\) such that any 2-edge-coloring of \(K_{n,n}\) with at least \(z_2(n,t)\) edges in each color contains a colored copy of \(K_{t,2t}\) in which one color induces a \(K_{t,t}\) [2407.08873]. This leads to the notions of bipartite \(r\)-tonality and bipartite omnitonality: a bipartite graph \(G\) is bipartite \(r\)-tonal iff there exists \(U\) contained in one bipartition class with \(e_G(U,N_G(U))=r\), and \(G\) is bipartite omnitonal iff such a set exists for every \(0\le r\le e(G)\); every tree is bipartite omnitonal [2407.08873].

For 2-colorings of the complete graph, omnitonality is characterized differently. A graph \(G\) is omnitonal if, for every \(0<r<e(G)\), there exists both a partition \(V(G)=X\cup Y\) with \(e(X,Y)=r\) and a subset \(W\subseteq V(G)\) with \(e(G[W])=r\) [1810.12375]. Every omnitonal graph is bipartite, and every tree is omnitonal; for bipartite amoebas, the threshold satisfies
\[
\operatorname{ot}(n,G)=\operatorname{ex}(n,G)
\]
for all sufficiently large \(n\) [1810.12375]. Balanceable graphs are the analogous class for balanced red-blue distributions, and the later work on the evolution of unavoidable bichromatic patterns shows that for every \(\varepsilon>0\) there are graphs \(G\) with \(bal(n,G)\ge c n^{2-\varepsilon}\), while there are also graphs with \(bal(n,G)\le c(G)\), with the latter class characterized exactly [2204.04269]. This suggests a spectrum ranging from constant thresholds to near-quadratic thresholds depending on the structural flexibility of the target graph.

## 4. Specific extremal pattern families

The D-coloring problem provides a concrete recent example of a proper edge-coloring problem with a forbidden pattern. For maximum degree \(\Delta\), the D-chromatic index satisfies
\[
\chi'_D(G)\le \left\lfloor \frac{9}{16}\Delta^2+\frac{1}{2}\Delta\right\rfloor,
\]
the conjectured sharp bound is
\[
\chi'_D(G)\le \frac{1}{2}\Delta^2+\frac{1}{2}\Delta,
\]
and this conjecture is verified for \(\Delta\le 5\) [2606.06831]. Complete graphs are extremal, since
\[
\chi'_D(K_{\Delta+1})=\binom{\Delta+1}{2}=\frac{1}{2}\Delta^2+\frac{1}{2}\Delta,
\]
and the planar case is isolated by a separate conjecture with sharp examples [2606.06831].

Rainbow-cycle avoidance in complete bipartite graphs yields a different extremal family. For every \(k\ge 2\), if \(n\ge 5k-6\), then any proper \(n\)-edge-coloring of \(K_{k,n}\) contains a multicolored \(C_{2k}\); in contrast, when \(k\) is odd, there exists a proper \(2k\)-edge-coloring of \(K_{2k,2k}\) forbidding multicolored \(C_{2k}\) [1407.0043]. The case of \(C_6\) is completely determined:
\[
FMC(6)=\{(m,6):3\le m\le 6\}\cup\{(3,7)\}\cup\{(m,8):3\le m\le 8\},
\]
where \(FMC(6)\) denotes the pairs \((m,n)\) for which some proper coloring of \(K_{m,n}\) forbids multicolored \(C_6\) [1407.0043].

The PRCF condition gives yet another family of forbidden rainbow patterns. The Hoffman–Singleton graph is PRCF-bad, which answers positively the question whether PRCF-bad graphs of girth greater than \(4\) exist [2106.05324]. The same paper shows that sufficiently large generalized polygons yield PRCF-bad graphs of girth \(6\), \(8\), \(12\), and \(16\), with the split Cayley hexagon and the Ree–Tits octagon providing the girth-\(12\) and girth-\(16\) cases [2106.05324]. A plausible implication is that forbidding rainbow cycles in a proper edge-coloring becomes increasingly rigid on sparse, high-girth incidence structures.

## 5. Complexity, extensions, and forbidden-color lists

In the homomorphism framework, the relation between uncolored and partially colored instances is governed by colored determiners. Under Assumption 3.1—existence, for each color, of an \(\mathcal F\)-safe, \(d\)-remote colored determiner—the problems \(\Col(\mathcal F)\) and \(\Ext(\mathcal F)\) are polynomial-time equivalent [2507.19000]. For obstruction families consisting of monochromatic odd cycles and cliques, possibly together with all colorings of a fixed \(K_m\), the same paper proves a P/NP-complete dichotomy: \(\Col(\mathcal F)\) is in P in a trivial clique-free case and NP-complete otherwise [2507.19000].

The forbidden-transition model yields a parameterized complexity picture for local color-sequence constraints. Finding a compatible path in a forbidden-transition graph is W[1]-hard when parameterized by the distance to a linear forest, and therefore also by treewidth or pathwidth [2009.12892]. By contrast, compatible paths are fixed-parameter tractable by treecut-width, and an algebraic rank-based dynamic program decides whether an edge-colored graph of treewidth \(k\) has a properly colored Hamiltonian cycle in deterministic time
\[
2^{O(k)}\cdot O\bigl(|V(G)|+|V(T)|+\ell\bigr),
\]
where \(\ell\) is the number of colors [2009.12892]. This separates arbitrary forbidden-transition systems from the specific “no consecutive equal colors” pattern.

A different restriction model assigns each edge a list of forbidden colors. If \(G\) is \((d,s)\)-edge colorable and \(L\) is a \(\beta\)-sparse list assignment, then for
\[
s\ge 11 \quad\text{and}\quad \beta \le 2^{-11} s d^{-1} (2n)^{-29 d s^{-2}},
\]
there exists a proper \(d\)-edge coloring of \(G\) that avoids \(L\) [1904.07728]. The same paper proves a stronger sparse-support statement: if \(|L'(e)|\le s-1\) for every edge and the set of edges with \(L'(e)\neq\emptyset\) forms a distance-3 matching, then \(L'\) is avoidable [1904.07728]. These results treat forbidden colors themselves as the obstruction family and use the presence of many 2-colored \(4\)-cycles as a local recoloring resource.

## 6. Enumeration and asymptotic optimization

Counting pattern-avoiding colorings produces a parallel extremal theory. For a pattern \(\widehat F\), written as a partition of \(E(F)\) into at most \(r\) color classes, \(c_{r,\widehat F}(G)\) denotes the number of \(r\)-edge-colorings of \(G\) avoiding \(\widehat F\) [1605.08013]. When \(F=K_k\), there always exists a complete multipartite graph on \(n\) vertices that is \((r,\widehat{K_k})\)-extremal, and for every non-monochromatic pattern except the small exceptional patterns \(T_0\) and, for \(r=2\), \(P_2\), every \((r,\widehat{K_k})\)-extremal graph is complete multipartite [1605.08013]. For the rainbow triangle pattern \(F_3\), any graph with near-maximal number of 3-edge-colorings avoiding \(F_3\) must be almost complete [1605.08013].

For forbidden monochromatic cliques, the Erdős–Rothschild-type quantity \(F(G;\mathbf{k})\) counts \(s\)-edge-colorings in which color \(c\) contains no \(K_{k_c}\), and \(F(n;\mathbf{k})\) is the maximum over all \(n\)-vertex graphs [1605.05074]. For every \(\mathbf{k}\) and \(n\), at least one extremal graph is complete multipartite, and a finite optimization problem \(Q(\mathbf{k})\) satisfies
\[
\lim_{n\to\infty}\frac{\log_2 F(n;\mathbf{k})}{\binom{n}{2}} = Q(\mathbf{k}),
\]
together with a stability theorem describing near-extremal complete multipartite graphs [1605.05074]. This places asymptotic counting inside a finite-template framework closely analogous to reduced graphs in extremal graph theory.

The color-class family viewpoint produces further asymptotic regimes. For every \(p\ge 5\),
\[
Lr(n,K_p),\ Sod(n,K_p),\ Sp(n,K_p),\ Cp(n,K_p),\ Lp(n,K_p)
\]
are all asymptotically
\[
(1+o(1))\,\operatorname{ex}\bigl(n,K_{\lceil p/2\rceil}\bigr),
\]
where \(Lr\), \(Sod\), \(Sp\), \(Cp\), and \(Lp\) denote local-rainbow, strong-odd, strong-parity, class-parity, and local-parity thresholds, respectively [2408.04257]. By contrast, conflict-free and odd-colored copies satisfy \(Od(n,G)=O(n)\) for every graph \(G\) [2408.04257]. A plausible conclusion is that forbidding patterns globally inside each color class tends to produce quadratic Turán-type behavior, whereas vertex-local uniqueness or oddness conditions are often linear.

Source: https://www.emergentmind.com/topics/edge-coloring-problems-with-forbidden-patterns