betaFeedback

WorksMathematics

Spanning Even Linear Forests with Isolated Edges Share the Anti-Ramsey Numbers of Perfect Matchings

Abstract

The anti-Ramsey number AR(n,F)AR(n,F) is the maximum number of colors in an edge-coloring of the complete graph KnK_n containing no rainbow copy of FF. I prove that every spanning linear forest on an even number n≥6n\ge6 of vertices whose components have even orders and which has an isolated edge has the same anti-Ramsey number as a perfect matching on nn vertices. The orders of the longer path components may be different.

Introduction

All undirected graphs considered in this paper are finite and simple. For a graph GG, its vertex and edge sets are denoted by V(G)V(G) and E(G)E(G), and its order and size are ∣V(G)∣|V(G)| and e(G)=∣E(G)∣e(G)=|E(G)|, respectively. The complete graph on nn vertices is denoted by KnK_n, and PnP_n denotes the path on nn vertices, so that PnP_n has n−1n-1 edges. The symbol G∪HG \cup H denotes the vertex-disjoint union of two graphs, and kGkG denotes the disjoint union of kk copies of GG. We write G≅HG \cong H for graph isomorphism and G⊆HG \subseteq H when HH contains a subgraph isomorphic to GG; this subgraph need not be induced. A linear forest is a graph whose components are paths. An isolated edge means a component isomorphic to P2P_2. We call a linear forest even if every component has an even number of vertices. A perfect matching is a set of pairwise vertex-disjoint edges covering all vertices. When a matching MM is contained in a graph GG, we also use MM for its edge set, and G−MG-M denotes deletion of those edges while retaining all vertices.

An edge-coloring cc assigns a color to each edge of a graph; it is not required to be proper. A subgraph is rainbow if all its edges have distinct colors. For a graph FF of order at most nn, the anti-Ramsey number AR⁡(n,F)\operatorname{AR}(n,F) is the maximum number of colors in an edge-coloring of KnK_n with no rainbow copy of FF. A representative graph of a coloring is a spanning subgraph obtained by choosing exactly one edge of each color. It is therefore rainbow and has as many edges as the coloring has colors.

Anti-Ramsey theory was introduced by Erdős, Simonovits, and Sós [3]. Classical results on paths and cycles were obtained by Simonovits and Sós [16] and Montellano-Ballesteros and Neumann-Lara [14], respectively. For matchings, Schiermeyer [15] determined the rainbow threshold for sufficiently large host orders. Chen, Li, and Tu [2] and Fujita, Kaneko, Schiermeyer, and Suzuki [5] determined the anti-Ramsey numbers of tP2tP_2 for n≥2t+1n \ge2t+1. Perfect matchings form the remaining spanning case, which was settled by Haas and Young [9]. Jahanbekam and West [11] studied the related packing problem of forcing edge-disjoint rainbow spanning subgraphs, including perfect matchings, cycles, and trees. These results provide a broader setting for the study of rainbow structures that cover the entire host graph.

Linear forests have also received substantial attention in anti-Ramsey theory. Bialostocki, Gilboa, and Roditty [1] determined the anti-Ramsey numbers of graphs with at most four edges, including P3∪P2P_3 \cup P_2, P3∪2P2P_3 \cup2P_2, and P4∪P2P_4 \cup P_2. Gilboa and Roditty [8] developed methods for studying the disjoint union of a fixed graph with copies of P2P_2 or P3P_3. For sufficiently large host orders, they obtained exact values for several short-path forests and bounds for a path together with a matching. Fang, Győri, Lu, and Xiao [4] obtained bounds for linear forests and determined the exact anti-Ramsey number of 2P42P_4. Xie and Yuan [17] subsequently determined the exact anti-Ramsey numbers of fixed linear forests containing an even-order path for sufficiently large complete host graphs, and characterized the extremal colorings. The spanning case, in which the forest uses every vertex of the host graph, requires an exact treatment at the smallest possible host order.

Recent work has focused on forests formed by short paths and isolated edges. He and Jin [10] determined anti-Ramsey numbers for P3∪tP2P_3 \cup tP_2 and 2P3∪tP22P_3 \cup tP_2 in specified ranges of the host order. Jie, He, and Jin [12] determined anti-Ramsey numbers of kP3∪tP2kP_3 \cup tP_2 for k≥2k \ge2, t≥(k2−k+4)/2t \ge(k^2-k+4)/2, and n≥3k+2t+1n \ge3k+2t+1. Jie and Jin [13] investigated spanning forests of the form kP3∪tP2kP_3 \cup tP_2 under a condition relating the numbers of the two types of components. Ghalavand and Li [7] determined AR⁡(3k+2t,kP3∪tP2)\operatorname{AR}(3k+2t,kP_3 \cup tP_2) for all k≥1k \ge1 and t≥2t \ge2, without an additional relation between kk and tt. These spanning results concern forests with three-vertex path components. For even components, Ghalavand, Jie, Jin, Li, and Pan [6] established the following result for spanning forests consisting of paths on four vertices and isolated edges.

Theorem 1.1. [6] If k,t≥1k,t \ge1, then

AR⁡(4k+2t,kP4∪tP2)=AR⁡(4k+2t,(2k+t)P2).\operatorname{AR}(4k+2t,kP_4 \cup tP_2)=\operatorname{AR}(4k+2t,(2k+t)P_2).

The present paper extends Theorem 1.1 to arbitrary even component orders. More precisely, we prove that if

F≅P2a1∪⋯∪P2aq∪tP2,ai≥2,t≥1,F \cong P_{2a_1}\cup\cdots\cup P_{2a_q}\cup tP_2,\qquad a_i\ge2,\quad t\ge1,

where q≥0q\ge0 and n=2∑i=1qai+2t≥6n=2\sum_{i=1}^{q}a_i+2t\ge6, then AR⁡(n,F)=AR⁡(n,n2P2)\operatorname{AR}(n,F)=\operatorname{AR}(n,\frac{n}{2}P_2). Here the union and sum over the longer paths are empty when q=0q=0, so this statement also includes perfect matchings. No equality among the integers a1,…,aqa_1,\ldots,a_q is assumed.

Every even linear forest FF on 2s2s vertices with an isolated edge satisfies sP2⊆F⊆P2s−2∪P2sP_2\subseteq F\subseteq P_{2s-2}\cup P_2. Thus it is enough to determine AR⁡(2s,P2s−2∪P2)\operatorname{AR}(2s,P_{2s-2}\cup P_2). We use a representative graph containing a rainbow perfect matching and select endpoint labels that maximize the number of arcs in an associated digraph. Comparing this labeling with the result of swapping the labels on a single matching edge shows that at least half of the nonmatching edges contribute arcs. The directed extremal results of Zhou and Li [18], together with the auxiliary bounds proved here, then yield a long directed path. Expanding its vertices back into matching edges produces a rainbow path disjoint from one unused matching edge.

We specify the directed notation used in that reduction. A digraph DD has a vertex set V(D)V(D) and an arc set A(D)A(D), with no loops and at most one arc in each direction between two distinct vertices. Opposite arcs are allowed. Its number of arcs is a(D)=∣A(D)∣a(D)=|A(D)|. The notation u→vu \to v means that (u,v)∈A(D)(u,v) \in A(D). For a vertex vv, its outdegree and indegree are dD+(v)d_D^{+}(v) and dD−(v)d_D^{-}(v), and its total degree is dD(v)=dD+(v)+dD−(v)d_D(v)=d_D^{+}(v)+d_D^{-}(v). For U⊆V(D)U \subseteq V(D), the induced subdigraph on UU is denoted by D[U]D[U]; D−vD-v means D[V(D)∖{v}]D[V(D) \setminus\{v\}]. For disjoint sets U,WU,W, let aD(U,W)a_D(U,W) denote the total number of arcs with one endpoint in UU and the other in WW, counting both directions. When PP is a path, V(P)V(P) is its vertex set. The complete symmetric digraph on rr vertices, denoted by K↔r\overleftrightarrow{K}_r, contains both arcs between every pair of distinct vertices. An isolated directed two-cycle is a component on two vertices containing both opposite arcs and having no arcs to or from other vertices. A directed Hamilton cycle visits every vertex exactly once before returning to its starting vertex. The directed path on nn distinct vertices, all of whose arcs point along the path, is denoted by P→n\overrightarrow{P}_n. Finally, ex⁡dir(s,P→n)\operatorname{ex}_{\mathrm{dir}}(s,\overrightarrow{P}_n) is the maximum number of arcs in a digraph on ss vertices containing no copy of P→n\overrightarrow{P}_n. The notation ⌊x⌋\lfloor x \rfloor denotes the integer part of xx.

Section 2 contains the published results used in the proof and the auxiliary directed-path bounds. Section 3 determines AR⁡(2s,P2s−2∪P2)\operatorname{AR}(2s,P_{2s-2}\cup P_2) and deduces the result for spanning even linear forests. Section 4 concludes the paper.

Auxiliary lemmas

In this section, we collect the auxiliary results needed to prove our main theorems. We recall relevant results from the literature and establish the additional lemmas used in our proofs.

Lemma 2.1 (Haas and Young [9]). If s≥2s \ge2 is an integer, then

AR⁡(2s,sP2)={3,s=2,(s−2)(3s+1)2+1,3≤s≤6,(s−2)(2s−3)+2,s≥7.\operatorname{AR}(2s,sP_2)= \begin{cases} 3, & s=2,\\ \dfrac{(s-2)(3s+1)}{2}+1, & 3 \le s \le6,\\ (s-2)(2s-3)+2, & s \ge7. \end{cases}

The following Hamilton-cycle bound and its equality characterization are special cases of the directed-cycle results of Zhou and Li [18].

Lemma 2.2 (Zhou and Li [18]). Let HH be a digraph on r≥3r \ge3 vertices without a directed Hamilton cycle. Then a(H)≤(r−1)2a(H) \le(r-1)^2. If r≥4r \ge4 and a(H)=(r−1)2a(H)=(r-1)^2, then HH is obtained from K↔r−1\overleftrightarrow{K}_{r-1} by adding a vertex zz and either all arcs from zz to the other vertices or all arcs from the other vertices to zz.

Lemma 2.3. Let P=v1→v2→⋯→vrP=v_1 \to v_2 \to\cdots\to v_r be a longest directed path in a digraph DD. For every x∈V(D)∖V(P)x \in V(D) \setminus V(P),

aD({x},V(P))≤r−1.a_D(\{x\},V(P)) \le r-1.

Proof. Since PP is a longest directed path, neither x→v1x \to v_1 nor vr→xv_r \to x can be present; otherwise PP could be extended to a directed path on r+1r+1 vertices. It remains to consider the arcs

vi→x(1≤i≤r−1)andx→vi+1(1≤i≤r−1).v_i \to x \quad(1 \le i \le r-1) \qquad\text{and} \qquad x \to v_{i+1} \quad(1 \le i \le r-1).

For each i=1,…,r−1i=1,\ldots,r-1, at most one of the two arcs

vi→x,x→vi+1v_i \to x, \qquad x \to v_{i+1}

can be present. Indeed, if both were present, then

v1→⋯→vi→x→vi+1→⋯→vrv_1 \to\cdots\to v_i \to x \to v_{i+1} \to\cdots\to v_r

would be a directed path on r+1r+1 vertices, contradicting the maximality of PP. These r−1r-1 pairs are pairwise disjoint, and every remaining possible arc between xx and V(P)V(P) belongs to exactly one of them. Hence the number of arcs between xx and V(P)V(P) is at most r−1r-1.

Lemma 2.4 (Zhou and Li [18]). For every integer s≥3s \ge3,

ex⁡dir(s,P→3)=⌊s24⌋.\operatorname{ex}_{\mathrm{dir}}\left(s,\overrightarrow{P}_3\right)=\left\lfloor\frac{s^2}{4}\right\rfloor.

Lemma 2.5. Let DD be a digraph on r+2r+2 vertices, where r≥4r \ge4. If a longest directed path in DD has rr vertices, then a(D)≤r2a(D) \le r^2.

Proof. Choose a longest directed path PP in DD, and put H=D[V(P)]H=D[V(P)] and W=V(D)∖V(P)={x,y}W=V(D)\setminus V(P)=\{x,y\}. By Lemma 2.3,

aD(W,V(P))≤2(r−1).(1)a_D(W,V(P)) \le2(r-1). \tag*{(1)}

Moreover,

a(D)=a(H)+aD(W,V(P))+a(D[W]),a(D[W])≤2.a(D)=a(H)+a_D(W,V(P))+a(D[W]), \qquad a(D[W]) \le2.

Suppose first that HH contains a directed Hamilton cycle. No arc can join WW to V(H)V(H): an arc directed from an outside vertex to the cycle produces a directed path starting at that vertex and then visiting all rr cycle vertices; an arc in the opposite direction similarly produces a directed path ending at the outside vertex. Either construction gives a directed path on r+1r+1 vertices, contrary to the choice of PP. Thus

a(D)≤r(r−1)+2≤r2.a(D) \le r(r-1)+2 \le r^2.

We may therefore assume that HH contains no directed Hamilton cycle. Lemma 2.2 gives a(H)≤(r−1)2a(H) \le(r-1)^2. If a(H)≤(r−1)2−1a(H) \le(r-1)^2-1, or if a(H)=(r−1)2a(H)=(r-1)^2 and a(D[W])≤1a(D[W]) \le1, then

a(H)+a(D[W])≤(r−1)2+1.a(H)+a(D[W]) \le(r-1)^2+1.

Together with (1), this yields

a(D)≤(r−1)2+1+2(r−1)=r2.a(D) \le(r-1)^2+1+2(r-1)=r^2.

It remains to consider the case a(H)=(r−1)2a(H)=(r-1)^2 and a(D[W])=2a(D[W])=2. In particular, both x→yx\to y and y→xy\to x are present. By the equality statement in Lemma 2.2, there is a vertex z∈V(H)z\in V(H) such that, writing C=V(H)∖{z}C=V(H)\setminus\{z\}, we have D[C]≅K↔r−1D[C]\cong\overleftrightarrow{K}_{r-1}, and either all arcs from zz to CC or all arcs from CC to zz are present, with no arcs in the opposite direction.

We first show that aD(W,C)=0a_D(W,C)=0. Take u∈Wu\in W, and let ww be the other vertex of WW. If u→cu\to c is present for some c∈Cc\in C, then w→u→cw\to u\to c, followed by a directed Hamilton path of D[C]D[C] starting at cc, gives a directed path on r+1r+1 vertices. If c→uc\to u is present, a directed Hamilton path of D[C]D[C] ending at cc, followed by c→u→wc\to u\to w, gives the same contradiction. Hence no arc joins WW to CC.

Finally, suppose that all arcs between zz and CC are directed from zz to CC. For any u∈Wu\in W, an arc u→zu\to z could be followed by a directed Hamilton path of HH starting at zz, giving a directed path on r+1r+1 vertices. Thus only z→xz\to x and z→yz\to y are possible. If instead all arcs are directed from CC to zz, the analogous argument using a directed Hamilton path of HH ending at zz rules out z→xz\to x and z→yz\to y. Consequently, in either case,

aD(W,{z})≤2.a_D(W,\{z\})\le2.

Therefore,

a(D)=a(H)+aD(W,C)+aD(W,{z})+a(D[W])≤(r−1)2+4<r2,a(D)=a(H)+a_D(W,C)+a_D(W,\{z\})+a(D[W])\le(r-1)^2+4<r^2,

where the final inequality follows from r≥4r\ge4. This completes the proof.

Lemma 2.6. For every integer s≥3s\ge3,

ex⁡dir(s,P→s−1)≤{0,s=3,4,s=4,10,s=5,(s−2)2,s≥6.\operatorname{ex}_{\rm dir}(s,\overrightarrow{P}_{s-1})\le \begin{cases} 0, & s=3,\\ 4, & s=4,\\ 10, & s=5,\\ (s-2)^2, & s\ge6. \end{cases}

Proof. For s=3s=3, avoiding P→2\overrightarrow{P}_2 means having no arcs. For s=4s=4, the required bound is Lemma 2.4.

Consider s=5s=5, and let DD contain no P→4\overrightarrow{P}_4. A longest path has at most three vertices. If it has at most two, Lemma 2.4 gives a(D)≤6a(D)\le6. Otherwise, let HH be induced by its three vertices. If HH has a Hamilton cycle, the argument in Lemma 2.5 shows that no arc joins it to the other two vertices, and a(D)≤6+2=8a(D)\le6+2=8. If it has no Hamilton cycle, Lemmas 2.2 and 2.3 give

a(D)≤(3−1)2+2(3−1)+2=10.a(D)\le(3-1)^2+2(3-1)+2=10.

We prove the bound for s≥6s\ge6 by induction on ss. For the base case s=6s=6, let DD contain no P→5\overrightarrow{P}_5, and let r≤4r\le4 be the order of a longest path PP. If r=4r=4, Lemma 2.5 gives a(D)≤16a(D)\le16. If r≤2r\le2, Lemma 2.4 gives a(D)≤9a(D)\le9. If r=3r=3, put H=D[V(P)]H=D[V(P)]. When HH has a Hamilton cycle, there are no arcs between HH and its complement, so a(D)≤6+6=12a(D)\le6+6=12. Otherwise, Lemmas 2.2 and 2.3 give

a(D)≤(3−1)2+3(3−1)+3(3−1)=16=(6−2)2.a(D)\le(3-1)^2+3(3-1)+3(3-1)=16=(6-2)^2.

The last term bounds all arcs among the three vertices outside PP.

Now let s≥7s \ge7 and assume the assertion for s−1s - 1. Let DD contain no P→s−1\overrightarrow{P}_{s-1}, and choose a longest path P=v1→⋯→vrP = v_1 \to\cdots\to v_r. Then r≤s−2r \le s - 2. If r=s−2r = s - 2, Lemma 2.5 gives the required bound directly. Suppose r≤s−3r \le s - 3. The last vertex vrv_r has no outgoing arc to a vertex outside PP. At most 2(r−1)2(r - 1) arcs incident with vrv_r have their other endpoint on PP, and at most s−rs - r have their other endpoint outside PP. Thus

dD(vr)≤2(r−1)+(s−r)=s+r−2≤2s−5.d_D(v_r) \le2(r - 1) + (s - r) = s + r - 2 \le2s - 5.

Since every path in DD has at most s−3s - 3 vertices, the digraph D−vrD - v_r contains no P→s−2\overrightarrow{P}_{s-2}. It has s−1s - 1 vertices, so the induction hypothesis gives a(D−vr)≤(s−3)2a(D - v_r) \le(s - 3)^2. Deleting a vertex removes exactly its total degree many arcs. Consequently,

a(D)=a(D−vr)+dD(vr)≤(s−3)2+2s−5=(s−2)2.a(D) = a(D - v_r) + d_D(v_r) \le(s - 3)^2 + 2s - 5 = (s - 2)^2.

This completes the induction.

Lemma 2.7. For every integer s≥3s \ge3, 2ex⁡dir⁡(s,P→s−1)+s≤AR⁡(2s,sP2)2\operatorname{ex}_{\operatorname{dir}}(s,\overrightarrow{P}_{s-1}) + s \le\operatorname{AR}(2s,sP_2).

Proof. By Lemma 2.1, the values of AR⁡(2s,sP2)\operatorname{AR}(2s,sP_2) for s=3,4,5,6s = 3,4,5,6 are 6,14,25,396,14,25,39, respectively. Lemma 2.6 gives

2ex⁡dir⁡(3,P→2)+3≤3≤6,2ex⁡dir⁡(4,P→3)+4≤12≤14,2\operatorname{ex}_{\operatorname{dir}}(3,\overrightarrow{P}_2) + 3 \le3 \le6,\qquad2\operatorname{ex}_{\operatorname{dir}}(4,\overrightarrow{P}_3) + 4 \le12 \le14,
2ex⁡dir⁡(5,P→4)+5≤25,2ex⁡dir⁡(6,P→5)+6≤38≤39.2\operatorname{ex}_{\operatorname{dir}}(5,\overrightarrow{P}_4) + 5 \le25,\qquad2\operatorname{ex}_{\operatorname{dir}}(6,\overrightarrow{P}_5) + 6 \le38 \le39.

For s≥7s \ge7, the two lemmas give

2ex⁡dir⁡(s,P→s−1)+s≤2(s−2)2+s=(s−2)(2s−3)+2=AR⁡(2s,sP2).2\operatorname{ex}_{\operatorname{dir}}(s,\overrightarrow{P}_{s-1}) + s \le2(s - 2)^2 + s = (s - 2)(2s - 3) + 2 = \operatorname{AR}(2s,sP_2).

Main results

We first consider P2s−2∪P2P_{2s-2} \cup P_2, which contains every even linear forest on 2s2s vertices having an isolated edge as a spanning subgraph. The proof combines the directed-path bounds from Section 2 with an endpoint labeling of a rainbow perfect matching that maximizes the arc count of an auxiliary digraph. The result for all such forests then follows by subgraph monotonicity and the perfect-matching formula.

Theorem 3.1. For every integer s≥3s \ge3,

AR⁡(2s,P2s−2∪P2)=AR⁡(2s,sP2).\operatorname{AR}(2s,P_{2s-2} \cup P_2) = \operatorname{AR}(2s,sP_2).

Proof. The forest P2s−2∪P2P_{2s-2} \cup P_2 contains a perfect matching. Consequently, every edge-coloring of K2sK_{2s} without a rainbow sP2sP_2 also avoids a rainbow P2s−2∪P2P_{2s-2} \cup P_2. Thus

AR⁡(2s,P2s−2∪P2)≥AR⁡(2s,sP2).\operatorname{AR}(2s,P_{2s-2} \cup P_2) \ge\operatorname{AR}(2s,sP_2).

For the reverse inequality, consider an edge-coloring of K2sK_{2s} using q>AR⁡(2s,sP2)q > \operatorname{AR}(2s,sP_2) colors. By the definition of the anti-Ramsey number, this coloring contains a rainbow perfect matching MM.

Choose one representative edge of each color, choosing the corresponding edge of MM whenever that color appears on MM. These choices are compatible because the edges of MM have distinct colors. The resulting spanning graph GG contains MM, satisfies e(G)=qe(G)=q, and has pairwise distinctly colored edges. Write

M={uivi:1≤i≤s}.M=\{u_i v_i: 1\le i\le s\}.

For each ii, there are two ways to assign the endpoint labels ai,bia_i,b_i:

(ai,bi)=(ui,vi)or(ai,bi)=(vi,ui).(a_i,b_i)=(u_i,v_i)\quad\text{or}\quad(a_i,b_i)=(v_i,u_i).

Hence there are 2s2^s possible complete labelings of MM. For each labeling, define a digraph DD on {1,…,s}\{1,\ldots,s\} by

i→j⟺biaj∈E(G),i≠j.i\to j\quad\Longleftrightarrow\quad b_i a_j\in E(G),\qquad i\ne j.

The direction goes from the index of the bb-endpoint to the index of the aa-endpoint, regardless of the numerical order of the indices. More explicitly, for two distinct matching edges indexed by ii and jj,

Edge of GGContribution to DD
biaj=ajbib_i a_j=a_j b_ii→ji\to j
aibj=bjaia_i b_j=b_j a_ij→ij\to i
aiaja_i a_jno arc
bibjb_i b_jno arc

Table 1.

Thus each nonmatching edge contributes exactly one arc when its endpoints have different label types, and no arc otherwise. Reversing the written order of its endpoints does not create another arc.

The matching edges contribute no arcs because i≠ji\ne j is required. Moreover, for each ordered pair (i,j)(i,j), only the edge biajb_i a_j can supply the arc i→ji\to j. Therefore DD is a simple loopless digraph, and distinct contributing edges supply distinct arcs. Write a(D)a(D) for its number of arcs.

Claim 3.2. There exists an endpoint labeling of MM for which

a(D)≥q−s2≥AR(2s,sP2)−s2.a(D)\ge\frac{q-s}{2}\ge\frac{\mathrm{AR}(2s,sP_2)-s}{2}.

Proof of the claim. Choose a labeling maximizing a(D)a(D), which is possible because there are only 2s2^s labelings.

For each ii, let tit_i be the number of edges in E(G)∖E(M)E(G)\setminus E(M) having one endpoint in {ai,bi}\{a_i,b_i\}, and let cic_i count those edges that contribute arcs to DD. Equivalently, cic_i is the number of arcs of DD incident with ii.

Interchange the labels aia_i and bib_i, keeping all other labels fixed, and let DiD_i be the resulting digraph. Each nonmatching edge incident with {ai,bi}\{a_i,b_i\} has exactly one endpoint whose label type changes. After the interchange, each of the cic_i previously contributing edges has either two aa-endpoints or two bb-endpoints and therefore contributes no arc. Each of the remaining ti−cit_i-c_i edges now has one aa-endpoint and one bb-endpoint and consequently contributes exactly one arc. All arcs with neither endpoint ii remain unchanged. Hence

a(Di)=a(D)−ci+(ti−ci)=a(D)+ti−2ci.(2)a(D_i)=a(D)-c_i+(t_i-c_i)=a(D)+t_i-2c_i. \tag*{(2)}

By the maximality of a(D)a(D), we have a(Di)≤a(D)a(D_i) \leq a(D). Therefore

2ci≥ti(1≤i≤s).2c_i \geq t_i \qquad(1 \leq i \leq s).

Every arc of DD is counted at each of its two ends, so

∑i=1sci=2a(D).\sum_{i=1}^{s} c_i = 2a(D).

Similarly, every nonmatching edge joins two distinct matching edges and is counted in the corresponding two quantities tit_i. Thus

∑i=1sti=2∣E(G)∖E(M)∣=2(q−s).\sum_{i=1}^{s} t_i = 2|E(G) \setminus E(M)| = 2(q-s).

Summing 2ci≥ti2c_i \geq t_i gives

4a(D)=2∑i=1sci≥∑i=1sti=2(q−s).4a(D) = 2\sum_{i=1}^{s} c_i \geq\sum_{i=1}^{s} t_i = 2(q-s).

Consequently,

a(D)≥q−s2>AR⁡(2s,sP2)−s2,a(D) \geq\frac{q-s}{2} > \frac{\operatorname{AR}(2s,sP_2)-s}{2},

where the strict inequality follows from q>AR⁡(2s,sP2)q > \operatorname{AR}(2s,sP_2).

Fix the labeling supplied by Claim 3.2. By the directed-path arc bound and Lemma 2.7, every digraph on ss vertices containing no directed path on s−1s-1 vertices has at most

AR⁡(2s,sP2)−s2\frac{\operatorname{AR}(2s,sP_2)-s}{2}

arcs. Our digraph exceeds this bound, so it contains a directed path

i1→i2→⋯→is−1,i_1 \to i_2 \to\cdots\to i_{s-1},

where the indices are distinct.

For each 1≤h≤s−21 \leq h \leq s-2, the definition of DD gives

bihaih+1∈E(G).b_{i_h}a_{i_{h+1}} \in E(G).

Combining these connecting edges with the matching edges aihbiha_{i_h}b_{i_h}, for 1≤h≤s−11 \leq h \leq s-1, produces the path

ai1bi1ai2bi2⋯ais−1bis−1a_{i_1}b_{i_1}a_{i_2}b_{i_2}\cdots a_{i_{s-1}}b_{i_{s-1}}

in GG. Its 2s−22s-2 vertices are distinct because the indices are distinct and the matching edges are pairwise disjoint.

Exactly one index jj is absent from {i1,…,is−1}\{i_1,\ldots,i_{s-1}\}. The matching edge ajbja_jb_j is disjoint from this path. Together, the path and this unused matching edge form a copy of P2s−2∪P2P_{2s-2} \cup P_2.

All edges of this copy belong to GG and therefore have distinct colors. Thus the copy is rainbow. We have shown that every edge-coloring of K2sK_{2s} using more than AR⁡(2s,sP2)\operatorname{AR}(2s,sP_2) colors contains a rainbow P2s−2∪P2P_{2s-2} \cup P_2. Consequently,

AR⁡(2s,P2s−2∪P2)≤AR⁡(2s,sP2).\operatorname{AR}(2s,P_{2s-2} \cup P_2) \leq\operatorname{AR}(2s,sP_2).

Together with the reverse inequality established above, this proves the theorem.

Theorem 3.3. Let FF be an even linear forest on n=2s≥6n = 2s \ge6 vertices, and suppose that FF has at least one component isomorphic to P2P_2. Then

AR⁡(n,F)=AR⁡(n,sP2)={(s−2)(3s+1)2+1,3≤s≤6,(s−2)(2s−3)+2,s≥7.\operatorname{AR}(n,F)=\operatorname{AR}(n,sP_2)=\begin{cases} \frac{(s-2)(3s+1)}{2}+1, & 3\le s\le6,\\ (s-2)(2s-3)+2, & s\ge7. \end{cases}

Proof. Every even-order path has a perfect matching, obtained by pairing consecutive vertices along the path. Taking these matchings over all components gives sP2⊆FsP_2\subseteq F.

Choose one P2P_2 component of FF. Since the remaining path components have total order n−2n-2, partition the vertices of Pn−2P_{n-2} into consecutive blocks whose orders equal those of these components. Deleting the edges between successive blocks leaves paths isomorphic to the remaining components of FF. Together with the separate P2P_2, these paths form a spanning copy of FF in Pn−2∪P2P_{n-2}\cup P_2.

If H⊆H′H\subseteq H', every coloring avoiding a rainbow HH also avoids a rainbow H′H', so AR⁡(n,H)≤AR⁡(n,H′)\operatorname{AR}(n,H)\le\operatorname{AR}(n,H'). Applying this observation to the two containments and using Theorem 3.1 gives

AR⁡(n,sP2)≤AR⁡(n,F)≤AR⁡(n,Pn−2∪P2)=AR⁡(n,sP2).\operatorname{AR}(n,sP_2)\le\operatorname{AR}(n,F)\le\operatorname{AR}(n,P_{n-2}\cup P_2)=\operatorname{AR}(n,sP_2).

The equality of the anti-Ramsey numbers follows, and their explicit values are given by Lemma 2.1.

Conclusion

Every spanning even linear forest with an isolated edge has the same anti-Ramsey number as a perfect matching on the same vertex set. Thus, within this family, the value depends only on the total order, regardless of the number and orders of the path components. The proof reduces the problem to Pn−2∪P2P_{n-2}\cup P_2 and combines a maximizing endpoint labeling with directed-path bounds. This extends the known result for kP4∪tP2kP_4\cup tP_2 to arbitrary even component orders.

Conflict of interest

The authors declare that they have no conflict of interest.

Data availability

No data was used in this investigation.

Use of artificial intelligence

The author used AI tools for algebraic checks, language editing, locating relevant auxiliary results, and examining proof ideas. The author reviewed and verified all mathematical statements, calculations, proofs, and references and takes full responsibility for the manuscript.

References

  1. [1]A. Bialostocki, S. Gilboa, Y. Roditty, Anti-Ramsey numbers of small graphs, Ars Combin. 123 (2015) 41–53.
  2. [2]H. Chen, X. Li, J. Tu, Complete solution for the rainbow numbers of matchings, Discrete Math. 309 (2009) 3370–3380. https://doi.org/10.1016/j.disc.2008.10.002.
  3. [3]P. Erdős, M. Simonovits, V.T. Sós, Anti-Ramsey theorems, in: Infinite and Finite Sets, Vol. II, Colloq. Math. Soc. János Bolyai, Vol. 10, North-Holland, Amsterdam, 1975, pp. 633–643.
  4. [4]C. Fang, E. Győri, M. Lu, J. Xiao, On the anti-Ramsey number of forests, Discrete Appl. Math. 291 (2021) 129–142. https://doi.org/10.1016/j.dam.2020.08.027.
  5. [5]S. Fujita, A. Kaneko, I. Schiermeyer, K. Suzuki, A rainbow k-matching in the complete graph with r colors, Electron. J. Combin. 16 (2009) R51. https://doi.org/10.37236/140.
  6. [6]A. Ghalavand, Q. Jie, Z. Jin, X. Li, L. Pan, On the anti-Ramsey number under edge deletion, Bull. Malays. Math. Sci. Soc. 49 (2026) 147. https://doi.org/10.1007/s40840-026-02147-w.
  7. [7]A. Ghalavand, X. Li, Anti-Ramsey numbers for spanning linear forests of 3-vertex paths and matchings, arXiv:2509.25949, 2025, revised 2026. https://doi.org/10.48550/arXiv.2509.25949.
  8. [8]S. Gilboa, Y. Roditty, Anti-Ramsey numbers of graphs with small connected components, Graphs Combin. 32 (2016) 649–662. https://doi.org/10.1007/s00373-015-1581-y.
  9. [9]R. Haas, M. Young, The anti-Ramsey number of perfect matching, Discrete Math. 312 (2012) 933–937. https://doi.org/10.1016/j.disc.2011.10.017.
  10. [10]M. He, Z. Jin, Rainbow short linear forests in edge-colored complete graph, Discrete Appl. Math. 361 (2025) 523–536. https://doi.org/10.1016/j.dam.2024.11.002.
  11. [11]S. Jahanbekam, D.B. West, Anti-Ramsey problems for t edge-disjoint rainbow spanning subgraphs: cycles, matchings, or trees, J. Graph Theory 82 (2016) 75–89. https://doi.org/10.1002/jgt.21888.
  12. [12]Q. Jie, M. He, Z. Jin, Rainbow forest consisting of short paths in Kₙ, Discrete Appl. Math. 376 (2025) 260–269. https://doi.org/10.1016/j.dam.2025.06.041.
  13. [13]Q. Jie, Z. Jin, Rainbow-free colorings for spanning linear forest consisting of short paths, Discrete Appl. Math. 386 (2026) 30–57. https://doi.org/10.1016/j.dam.2026.01.016.
  14. [14]J.J. Montellano-Ballesteros, V. Neumann-Lara, An anti-Ramsey theorem on cycles, Graphs Combin. 21 (2005) 343–354. https://doi.org/10.1007/s00373-005-0619-y.
  15. [15]I. Schiermeyer, Rainbow numbers for matchings and complete graphs, Discrete Math. 286 (2004) 157–162. https://doi.org/10.1016/j.disc.2003.11.057.
  16. [16]M. Simonovits, V.T. Sós, On restricted colourings of Kₙ, Combinatorica 4 (1984) 101–110. https://doi.org/10.1007/BF02579162.
  17. [17]T.-Y. Xie, L.-T. Yuan, On the anti-Ramsey numbers of linear forests, Discrete Math. 343 (2020) 112130. https://doi.org/10.1016/j.disc.2020.112130.
  18. [18]W. Zhou, B. Li, The Turán number of directed paths and oriented cycles, Graphs Combin. 39 (2023) 47. https://doi.org/10.1007/s00373-023-02647-7.

Paper details

vlnc:W_zhebwjra
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 12

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

AI tools

View statement
Looking for related papers…
Contents