A graceful difference labeling (gdl for short) of a directed graph \(G\) with vertex set \(V\) is a bijection \(f:V\rightarrow\{1,\ldots,\vert V\vert\}\) such that, when each arc $uv$ is assigned the difference label \(f(v)-f(u)\), the resulting arc labels are distinct. We conjecture that all disjoint unions of circuits have a gdl, except in two particular cases. We prove partial results which support this conjecture.
A graph labeling is the assignment of labels, traditionally represented by integers, to the vertices or edges, or both, of a graph, subject to certain conditions. As mentioned in the survey by Gallian [1], more than one thousand papers are devoted to this subject. Among all variations, the most popular and studied graph labelings are the \(\beta\)-valuations introduced by Rosa in 1966 [2], and later called graceful labelings by Golomb [3]. Formally, given a graph \(G\) with vertex set \(V\) and \(q\) edges, a graceful labeling of \(G\) is an injection \(f:V\rightarrow\{0,1,\ldots,q\}\) such that, when each edge \(uv\) is assigned the label \(\vert f(v)-f(u)\vert\), the resulting edge labels are distinct. In other words, the vertices are labeled using integers in \(\{0,1,\ldots,q\}\), and these vertex labels induce an edge labeling from \(1\) to \(q\). The famous Ringel-Kotzig conjecture, also known as the graceful labeling conjecture, hypothesizes that all trees are graceful. It is the focus of many papers and is still open, even for some very restricted graph classes such that trees with 5 leaves, and trees with diameter 6. The survey by Gallian [1] lists several papers dealing with graceful labelings of particular classes of graphs, such that the disjoint union of cliques, the disjoint union of cycles, and the union of cycles with one common vertex.
For a directed graph with vertex set \(V\) and \(q\) edges, a graceful labeling of \(G\) is an injection \(f:V\rightarrow\{0,1,\ldots,q\}\) such that, when each arc (i.e., directed edge) \(uv\) is assigned the label \((f(v)-f(u))\ (mod\ q+1)\), the resulting arc labels are distinct. As mentioned in [1] and [4], most results and conjectures on graceful labelings of directed graphs concern directed cycles, the disjoint union of directed cycles, and the union of directed cycles with one common vertex or one common arc. In particular, it is proved that \(n\overrightarrow{\bf C_3}\), the disjoint union of \(n\) copies of the directed cycle with three vertices, has a graceful labeling only if \(n\) is even. However, it is not known whether this necessary condition is also sufficient.
In this paper, we study graceful difference labelings of directed graphs, which are defined as follows. A graceful difference labeling (gdl for short) of a directed graph \(G=(V,A)\) is a bijection \(f:V\rightarrow\{1,\ldots,\vert V\vert\}\) such that, when each arc \(uv\) is assigned the difference label \(f(v)-f(u)\), the resulting arc labels are distinct. The absolute value \(|f(v)-f(u)|\) is called the magnitude of arc \(uv\), while \(f(v)\) is the vertex label of \(v\). Note that in a gdl of \(G\), two arcs \(uv\) and \(u’v’\) may have the same magnitude \(|f(v)-f(u)|=|f(v’)-f(u’)|\) but their difference labels must then be opposite, i.e., \(f(v)-f(u)=-(f(v’)-f(u’))\).
Given two graphs \(G_i=(V_i,A_i)\) and \(G_j=(V_j,A_j)\) with \(V_i\cap V_j=\emptyset,\) their disjoint union, denoted \(G_i+G_j\), is the graph with vertex set \(V_i\cup V_j\) and arc set \(A_i\cup A_j\). By \(pG\) we denote the disjoint union of \(p\) copies of \(G\). For \(k\ge 2\) we denote by \(\overrightarrow{\bf C_k}\) a circuit on \(k\) vertices isomorphic to the directed graph with vertex set \(V=\{v_1,\ldots, v_k\}\) and arc set \(A=\{v_iv_{i+1}:\ 1\le i< k\}\cup\{v_kv_1\}\). The circuit \(\overrightarrow{\bf C_3}\) is also called a directed triangle, or simply a triangle. For all graph theoretical terms not defined here the reader is referred to [5].
Not every directed graph has a gdl. Indeed, a necessary condition for \(G=(V,A)\) to have a gdl is \(\vert A\vert\le2(\vert V\vert-1)\). Nevertheless this condition is not sufficient since, for example, \(\overrightarrow{\bf C_3}\) has no gdl. Indeed, all bijections \(f:V\rightarrow\{1,2,3\}\) induce two difference labels equal to 1, or two equal to -1. As a second example, \(\overrightarrow{\bf C_2}+\overrightarrow{\bf C_3}\) has no gdl. Indeed:
We are interested in determining which disjoint unions of circuits have a gdl. As already mentioned in the previous section, \(\overrightarrow{\bf C_3}\) and \(\overrightarrow{\bf C_2}+\overrightarrow{\bf C_3}\) have no gdl. We conjecture that these two graphs are the only two exceptions. As first result, we show that if \(G\) is a circuit of length \(k=2\) or \(k\geq 4\), then \(G\) has a gdl. We next prove that if \(G\) has a gdl, and if \(G’\) is obtained by adding to \(G\) a circuit of even length \(k=2\) or \(k\geq6\), or two disjoint circuits of length 4, then \(G’\) also has a gdl. We also show that the disjoint union of \(\overrightarrow{\bf C_4}\) with a circuit of odd length has a gdl. All together, these results prove that if \(G\) is the disjoint union of circuits, among which at most one has an odd length, then \(G\) has a gdl, unless \(G=\overrightarrow{\bf C_3}\) or \(G=\overrightarrow{\bf C_2}+\overrightarrow{\bf C_3}\).
We next show that the disjoint union of \(n\geq 2\) circuits of length 3 has a gdl, and this is also the case if a \(\overrightarrow{\bf C_4}\) is added to \(n\overrightarrow{\bf C_3}\). Hence, if \(G\) is the union of disjoint circuits with no odd circuit of length \(k\geq 5\), then \(G\) has a gdl, unless \(G=\overrightarrow{\bf C_3}\) or \(G=\overrightarrow{\bf C_2}+\overrightarrow{\bf C_3}\). In order to prove the above stated conjecture, it will thus remain to show that if \(G\) is the disjoint union of circuits with at least two odd circuits, among which at least one has length \(k\geq 5\), then \(G\) has a gdl.
Our first lemma shows that all circuits have a gdl, except \(\overrightarrow{\bf C_3}\).Lemma 1. The circuit \(\overrightarrow{\bf C_k}\) with \(k=2\) or \(k\geq 4\) has a gdl. Moreover, if \(k\geq 5\), then \(\overrightarrow{\bf C_k}\) has a gdl with exactly one arc of magnitude 1.
Proof. Clearly, \(\overrightarrow{\bf C_2}\) has a gdl since the two bijections \(f\ : \ V\rightarrow\{1,2\}\) have \(1\) and \(-1\) as difference labels. So assume \(k\geq 4\). We distinguish four cases, according to the value of \(k\mod4\):
Lemma 2. If a graph \(G\) has a gdl, then \(G+2\overrightarrow{\bf C_{4}}\) also has a gdl.
Proof. Let \(\{v_1,v_2,v_3,v_4\}\) be the vertex set of the first \(\overrightarrow {\bf C_{4}}\), and let \(\{v_1v_2,v_2v_3,v_3v_4,v_4v_1\}\) be its arc set. Also, let \(\{v_5,v_6,v_7,v_8\}\) be the vertex set of the second \(\overrightarrow{\bf C_{4}}\), and let \(\{v_5v_6,v_6v_7,v_7v_8,v_8v_5\}\) be its arc set. Suppose \(G=(V,A)\) has a gdl \(f\). Define \(f'(v)=f(v)+4\) for all \(v\in V\) as well as \(f'(v_1)=1, f'(v_2)=\vert V\vert+8, f'(v_3)=2, f'(v_4)=\vert V\vert+6, f'(v_5)=3, f'(v_6)=\vert V\vert+5, f'(v_7)=4,\) and \(f'(v_8)=\vert V\vert+7\). Clearly, \(f’\) is a bijection between \(V\cup\{v_1,\ldots,v_8\}\) and \(\{1,\ldots,\vert V\vert +8\}\). Moreover, the difference labels on the arcs of the two circuits are \(f'(v_2)-f'(v_1)=\vert V\vert+7, f'(v_3)-f'(v_2)=-(\vert V\vert+6), f'(v_4)-f'(v_3)=\vert V\vert+4, f'(v_1)-f'(v_4)=-(\vert V\vert+5), f'(v_6)-f'(v_5)=\vert V\vert+2, f'(v_7)-f'(v_6)=-(\vert V\vert+1), f'(v_8)-f'(v_7)=\vert V\vert+3,\) and \(f'(v_5)-f'(v_8)=-(\vert V\vert+4)\). Since all magnitudes in \(G\) are at most equal to \(\vert V\vert-1\), \(f’\) is a gdl for \(G+2\overrightarrow{\bf C_{4}}\).
Note that in the proof of Lemma 2, \(G\) can be the empty graph \(G\) with no vertex and no arc. Hence \(2\overrightarrow{\bf C_{4}}\) has a gdl.Lemma 3. If a graph \(G\) has a gdl, then \(G+\overrightarrow{\bf C_{2k}}\) also has a gdl for \(k\ge 1,k\ne 2\).
Proof. Suppose \(G=(V,A)\) has a gdl \(f\), and let \(\{v_1,\ldots,v_{2k}\}\) be the vertex set and \(\{v_1v_2,\ldots,v_{2k-1}v_{2k},v_{2k}v_1\}\) be the arc set of \(\overrightarrow{\bf C_{2k}}\). We consider two case.
Lemma 4. \(2\overrightarrow{\bf C_2}+\overrightarrow{\bf C_3}\) has a gdl.
Proof. Let \(\{v_1,\ldots,v_7\}\) be the vertex set and \(\{v_1v_2\), \(v_2v_1\), \(v_3v_4\), \(v_4v_3\), \(v_5v_6\), \(v_6v_7\), \(v_7v_5\}\) be the arc set of \(2\overrightarrow{\bf C_2}+\overrightarrow{\bf C_3}\). By considering the vertex labels \(f(v_1)=1\), \(f(v_2)=6\), \(f(v_3)=3\), \(f(v_4)=7\), \(f(v_5)=2\), \(f(v_6)=4\) and \(f(v_7)=5\), it is easy to observe that \(f\) is a gdl.
Lemma 5. \(\overrightarrow{\bf C_4}+\overrightarrow{\bf C_{2k+1}}\) has a gdl for every \(k\ge 1\).
Proof. Let \(G=\overrightarrow{\bf C_4}+\overrightarrow{\bf C_{2k+1}}\). We distinguish two cases:
Lemma 6. \(\overrightarrow{\bf C_k}+\overrightarrow{\bf C_3}\) has a gdl for every \(k\ge 5\).
Proof. Let \(\{v_1,\ldots,v_{k+3}\}\) be the vertex set and \(\{v_1v_2, \ldots, v_{k-1}v_{k}\), \(v_kv_1\), \(v_{k+1}v_{k+2}\), \(v_{k+2}v_{k+3}\), \(v_{k+3}v_{k+1} \}\) be the arc set of \(G=\overrightarrow{\bf C_k}+\overrightarrow{\bf C_3}\). Consider the gdl \(f\) defined in the proof of Lemma 1 for \(\overrightarrow{\bf C_k}\), and set \(f'(v_i)=f(v_i)+2\) for all \(i=1,\ldots,k\). If the only arc of magnitude 1 has a difference label equal to -1, then define \(f'(v_{k+1})=1\), \(f'(v_{k+2})=2\), and \(f'(v_{k+3})=k+3\), else define \(f'(v_{k+1})=2\), \(f'(v_{k+2})=1\), and \(f'(v_{k+3})=k+3\). Clearly, \(f’\) is a bijection between \(\{v_1,\ldots,v_{k+3}\}\) and \(\{1,\ldots,k+3\}\). To conclude that \(f’\) is a gdl, it is sufficient to prove that the difference labels on \(\overrightarrow{\bf C_3}\) do not appear on \(\overrightarrow{\bf C_k}\).
All together, the previous lemmas show that if \(G\) be the disjoint union of circuits, among which at most one has an odd length, then \(G\) has a gdl if and only if \(G \neq \overrightarrow{\bf C_3}\) and \(G\neq \overrightarrow{\bf C_2}+\overrightarrow{\bf C_3}\).
We now consider the disjoint union of \(n\) circuits of length 3, and show that these graphs have a gdl for all \(n\geq 2\).Lemma 7. For every \(n\geq 2\), the graph \(n\overrightarrow{\bf C_3}\) has a gdl with at most one arc of magnitude \(3n-2\), and all other arcs of magnitude strictly smaller than \(3n-2\).
Proof. The graphs in Figures 1, 2, 3, 4, 5, 6, 7 and 8 show the existence of the desired gdl for \(2\leq n \leq 9\).
Figure 1. \(2\overrightarrow{\bf C_3}\).
Figure 2. \(3\overrightarrow{\bf C_3}\)
Figure 3. \(4\overrightarrow{\bf C_3}\).
Figure 4. \(5\overrightarrow{\bf C_3}\).
Figure 5. \(6\overrightarrow{\bf C_3}\).
Figure 6. \(7\overrightarrow{\bf C_3}\).
Figure 7. \(8\overrightarrow{\bf C_3}\).
Figure 8. \(9\overrightarrow{\bf C_3}\).
We now prove the result by induction on \(n\). So, consider the graph \(n\overrightarrow{\bf C_3}\) with \(n\geq 10\), and assume the result is true for less than \(n\) directed triangles. Let \(t\) and \(r\) be two integers such that \(-4\leq r \leq 2\) and \(n=7t+r.\)
We thus have \(t\geq 2\). We will show how to construct a gdl for \(n\overrightarrow{\bf C_3}\) given a gdl for \(t\overrightarrow{\bf C_3}\). We thus have to add \(n-t\) directed triangles to \(t\overrightarrow{\bf C_3}\). For this purpose, define $$\theta=\left\lceil\frac{n-t}{2}\right\rceil=3t+\left\lceil\frac{r}{2}\right\rceil.$$
It follows that \(n-t=2\theta\) if \(r\) is even, and \(n-t=2\theta-1\) if \(r\) is odd. We now prove the lemma by considering the 4 cases A,B,C,D defined in Table 1. \setlength{\doublerulesep}{\arrayrulewidth}
\(n-t\) | \(r\) | \(\theta\) | Case |
---|---|---|---|
\(2\theta\) | -4 | \(3t-2\) | A |
-2 | \(3t-1\) | ||
0 | \(3t\) | ||
2 | \(3t+1\) | B | |
\(2\theta-1\) | -3 | \(3t-1\) | C |
-1 | \(3t\) | ||
1 | \(3t+1\) | D |
Triangle \(T_i\) | \(f(v_{3i-2})\) | \(f(v_{3i-1})\) | \(f(v_{3i})\) |
---|---|---|---|
\(T_1\) | \(1\) | \(2\theta\) | \(6\theta+3t-6\) |
\(T_2\) | \(2\) | \(6\theta+3t-3\) | \(4\theta+3t-2\) |
\(T_3\) | \(3\) | \(6\theta+3t-4\) | \(2\theta+1\) |
\(T_4\) | \(4\) | \(4\theta+3t-1\) | \(6\theta+3t-2\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2k-1}\) | \(2k-1\) | \(2\theta+k\) | \(6\theta+3t-2k+2\) |
\(T_{2k}\) | \(2k\) | \(6\theta+3t-2k+1\) | \(4\theta+3t-k+1\) |
\(k=3,\ldots,\theta-3\) | |||
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
Also, let \(f’\) be a gdl for \(t\overrightarrow{\bf C_3}\) with at most one arc of magnitude \(3t-2\), and all other arcs of magnitude strictly smaller than \(3t-2\). Define \(f(v_i)=f'(v_i)+3\theta\) for \(i=6\theta+1,\ldots,6\theta+3t\). One can easily check that \(f\) is a bijection between the vertex set \(\{v_1,\ldots,v_{6\theta+3t}\}\) and \(\{1,\ldots,6\theta+3t=3n\}\).
For each \(T_i\), we define its small difference label (small-dl for short) as the minimum among \(\vert f(v_{3i-1})-f(v_{3i-2})\vert\), \(\vert f(v_{3i})-f(v_{3i-1})\vert\), and \(\vert f(v_{3i-2})-f(v_{3i})\vert\). Similarly, the big difference label (big-dl) of \(T_i\) is the maximum of these three values, and the medium one (medium-dl) is the third value on \(T_i\). Table 3 gives the small, medium and big difference labels of \(T_1,\ldots,T_{2\theta}\). By considering two dummy directed triangles \(D_1\) and \(D_2\), we have grouped the triangles into \(\theta+1\) pairs \(\pi_0,\ldots,\pi_{\theta}\), as shown in Table 3. Two triangles belong to the same pair \(\pi_i\) if their small difference labels have the same magnitude. The difference labels given for \(D_1\) and \(D_2\) are artificial, but are helpful for simplifying the proof.
Pair | Triangle | Small-dl | Medium-dl | Big-dl |
---|---|---|---|---|
\(\pi_0=(T_{1},T_{2})\) | \(T_1\) | \(2\theta\) | \(4\theta+3t-4\) | \(-(6\theta+3t-4)\) |
\(T_2\) |
\(-2\theta\) | \(-(4\theta+3t-2)\) | \(6\theta+3t-2\) | |
\(\pi_1=(T_{3},T_{4})\) | \(T_3\) | \(-(2\theta-1)\) | \(-(4\theta+3t-3)\) | \(6\theta+3t-4\) |
\(T_4\) | \(2\theta-1\) | \(4\theta+3t-5\) | \(-(6\theta+3t-6)\) | |
\(\pi_2=(D_{1},T_{5})\) | \(D_1\) | \(-(2\theta-2)\) | \(-(4\theta+3t-5)\) | \(6\theta+3t-7\) |
\(T_5\) | \(2\theta-2\) | \(4\theta+3t-7\) | \(-(6\theta+3t-9)\) | |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(\pi_k=(T_{2k},T_{2k+1})\) | \(T_{2k}\) | \(-(2\theta-k)\) | \(-(4\theta+3t-3k+1)\) | \(6\theta+3t-4k+1\) |
\(k=3,\ldots,\theta-1\) | \(T_{2k+1}\) | \(\theta-k\) | \(4\theta+3t-3k-1\) | \(-(6\theta+3t-4k-1)\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(\pi_{\theta}=(T_{2\theta},D_{2})\) | \(T_{2\theta}\) | \(-\theta\) | \(-(\theta+3t+1)\) | \(2\theta+3t+1\) |
\(D_{2}\) | \(\theta\) | \(\theta+3t-1\) | \(-(2\theta+3t-1)\) |
Consider the first case. Remember that there is at most one arc on \(T_{2\theta+1},\ldots,T_{2\theta+t}\) with magnitude \(3t-2\), all other arcs having a smaller magnitude. Since at most one arc on \(T_{1},\ldots,T_{2\theta}\) has a magnitude equal to \(\theta\geq 3t-2\), we conclude that such a situation can only occur at most once (with \(\theta=3t-2\)), and we can avoid it by flipping all triangles \(T_{2\theta+1},\ldots,T_{2\theta+t}\).
More precisely, by flipping a directed triangle \(\overrightarrow{C_3}\) with vertex set \(\{x,y,z\}\) and arc set \(\{xy,yz,zx\}\), we mean exchanging the vertex labels of \(y\) and \(z\). Hence, the set of difference labels is modified from \(\{f(y)-f(x), f(z)-f(y), f(x)-f(z)\}\) to \(\{f(z)-f(x), f(y)-f(z), f(x)-f(y2)\}\), which means that each difference label of the original set appears with an opposite sign in the modified set, but with the same magnitude.
Consider the second case, and let \(i\) and \(j\) be such that \(b^x_{i}=m^y_{j}\) for \(x,y\) in \(\{1,2\}\).Note that \(0\leq j < i \leq \theta\). We say that \(\pi_i\) is conflicting with \(\pi_j\) and we write \(\pi_i\rightarrow \pi_j\). If \(\pi_i\) is not conflicting with \(\pi_j\), we write \(\pi_i\nrightarrow \pi_j\). Note that
Indeed, if \(\pi_i\rightarrow \pi_j\rightarrow \pi_k\), then there are \(x,y,z,w\) in \(\{1,2\}\) such that \(b^x_i=m^y_j\) and \(b^z_j=m^w_k\). Then: $$|b^w_k|=|m^w_k|+|s^w_k|=|b^z_j|+|s^w_k|\geq|b^y_j|+|s^w_k|-2=|m^y_j|+|s^y_j|+|s^w_k|-2=|b^x_i|+|s^y_j|+|s^w_k|-2.$$
Since \(|b^x_i|\geq 2\theta+3t+1, |s^w_k |> |s^y_j|> |s^x_i|\geq\theta\), we have \(\min\{|b^1_k|,|b^2_k|\}\geq|b^w_k|-2\geq4\theta+3t\). Hence, \(\pi_k\nrightarrow \pi_{\ell}\) for all \(\ell< k\) since there is no arc with medium magnitude at least equal to \(4\theta+3t\).
We now show how to avoid conflicting pairs \(\pi_i\) and \(\pi_j\) with both \(i\) and \(j\) at least equal to 2. Conflicts involving \(\pi_0\) and \(\pi_1\) (i.e., \(T_{1},\ldots,T_{4}\)) will be handled later. Consider \(i\) and \(j\) such that \(2\leq j< i< \theta\) and \(\pi_i\rightarrow \pi_j\). Since \(b^1_i\) and \(m^2_j\) are positive, while \(b^2_i\) and \(m^1_j\) are negative, we either have \(b^1_i=m^2_j\) or \(b^2_i=m^1_j\). In the first case, we say that \(\pi_i\) is \(12-\)conflicting with \(\pi_j\), while in the second case, we say that \(\pi_i\) is \(21-\)conflicting with \(\pi_j\). Note that
Indeed, if \(\pi_i\) is \(12-\)conflicting with \(\pi_j\), then \(b^1_i=m^2_j\), which implies \(b^2_{i-1}\!=\!-b^1_i\!-\!2\!=\!-m^2_j\!-\!2\!=\!m^1_j\). Since \(\max\{|b^1_{i+1}|,|b^2_{i+1}|\}=|b^1_{i+1}|=b^1_i-4< m^2_j\leq \min\{|m^1_j|,|m^2_j|\}\), we have \(\pi_{i+1}\nrightarrow \pi_j\).
Similarly, if \(\pi_i\) is \(21-\)conflicting with \(\pi_j\), then \(b^2_i=m^1_j\), which implies \(b^1_{i+1}\!=\!-b^2_i\!-\!2\!=\!-m^1_j\!-\!2\!=\!m^2_j\). Moreover, since \(\min\{|b^1_{i-1}|,|b^2_{i-1}|\}=|b^2_{i-1}|=|b^2_i|+4>m^1_j= \max\{|m^1_j|,|m^2_j|\}\), we have \(\pi_{i-1}\nrightarrow \pi_j\). Observe also that:Indeed, let us first show that \(\pi_i\nrightarrow \pi_{j-1}\). If \(j=2\), then \(m^1_1\!=\!m^1_2\!-\!2\!=\!-\!m^2_2\!-\!4\) and \(m^2_1\!=\!-m^1_2\!=\!m^2_2\!+\!2\). Since we have either \(b^1_i=m^2_2\) and \(b^2_i=-m^2_2+2\), or \(b^2_i=m^1_2\) and \(b^1_i=-m^1_2+2\), we see that \(\pi_i\nrightarrow \pi_1\). For \(j>2\), observe that \(b^1_i,b^2_i,m^1_j,m^2_j\) all have the same parity, while \(m^1_{j-1},m^2_{j-1}\) have the opposite parity. Hence \(\pi_i\nrightarrow \pi_{j-1}\).
Similarly, \(\pi_i\nrightarrow \pi_{j+1}\) for all \(2\leq j \leq \theta-1\) since the parity of \(m^1_{j+1},m^2_{j+1}\) is the opposite of the parity of \(b^1_i,b^2_i\).
Now, let \(x,y\in\{1,2\}\) be such \(b^x_i=m^y_j\). If \(1\leq kj+1\), \(\max\{|m^1_k|,|m^2_k|\}\leq\min\{|b^1_i|,|b^2_i|\}-2\).
In both cases, none of \(m^1_k\) and \(m^2_k\) can be equal to \(b^1_i\) or \(b^2_i\), which proves that \(\pi_i\nrightarrow \pi_{k}\) for \(k\geq 1, k\neq j-1,j,j+1\).
In what follows, we will remove conflicts by flipping some triangles. More precisely, by flipping \(\pi_i\), we mean flipping both triangles in \(\pi_i\). Note that:Indeed, if \(\pi_i\) is \(12-\)conflicting with \(\pi_j\), then \(b^1_i=m^2_j\), \(b^2_{i-1}=m^1_j\), and there is no triangle with a big-dl equal to \(-m^1_j=-b^2_{i-1}\) or \(-m^2_j=-b^1_i\). Similarly, if \(\pi_i\) is \(21-\)conflicting with \(\pi_j\), then \(b^2_i=m^1_j\), \(b^1_{i+1}=m^2_j\), and there is no triangle with a big-dl equal to \(-m^1_j=-b^2_{i}\) or \(-m^2_j=-b^1_{i+1}\). Hence, we have \(\pi_k\nrightarrow \pi_j\) for all \(k\leq \theta\) after the flip of \(\pi_j\).
Now, let \(J\) be the set of integers \(j\) such that \(\pi_i\rightarrow \pi_j\rightarrow \pi_k\) for at least one pair \(i,k\) of integers with \(2\leq k< j< i\leq \theta\). Also, let \(J'\) be the set of integers \(j'\) such that there is \(k\geq 2\) and \(j\neq j'\) in \(J\) with \(\pi_j\rightarrow \pi_k\) and \(\pi_{j'}\rightarrow \pi_k\). Note that \(J\cap J'=\emptyset\). Indeed, consider \(j'\in J'\), and \(j\neq j'\) in \(J\) such that \(\pi_j\rightarrow \pi_k\) and \(\pi_{j'}\rightarrow \pi_k\). It follows from (2), (3) and (4) that \(j'\!=\!j\!-\!1\) or \(j'\!=\!j\!+\!1\). Since \(j\in J\), \(m^1_{j}\) and \(m^2_{j}\) have the same parity as the big difference labels on \(T_5,\ldots,T_{2\theta}\), which means that \(m^1_{j'}\) and \(m^2_{j'}\) have the opposite parity. Hence, there is no \(i\) with \(\pi_i\rightarrow \pi_{j'}\), which proves that \(j'\notin J\).
By flipping all \(\pi_{\ell}\) with \(\ell\in J\cup J’\), we get \(\pi_i\nrightarrow \pi_j\) for all \(2\leq j< i\leq \theta\) with \(i\) or \(j\) in \(J\cup J'\). Indeed, it follows from (1) that we cannot have \(\pi_i\rightarrow \pi_j\) with both \(i\) and \(j\) in \(J\cup J'\), since this would imply the existence of \(k,k'\) with \(2\leq k < k'\leq \theta\) and \(\pi_{k'}\rightarrow \pi_i\rightarrow \pi_j\rightarrow \pi_k\). Hence, it follows from (6) and (7) that \(\pi_i\nrightarrow \pi_j\) for \(i\) or \(j\) in \(J\), \(2\leq j< i \leq \theta\). Moreover, as observed above, \(j'\in J'\) implies that \(m^1_{j'}\) and \(m^2_{j'}\) do not have the same parity as the big difference values on \(T_5,\ldots,T_{2\theta}\). Hence, it follows from (6) that \(\pi_i\nrightarrow \pi_j\) for \(i\) or \(j\) in \(J'\), \(2\leq j< i\leq \theta\).
So, after the flipping of all \(\pi_{\ell}\) with \(\ell\in J\cup J’\), the remaining conflicts \(\pi_i\rightarrow \pi_j\) with \(2\leq j < i\leq \theta\) are such that \(\{i,j\}\cap (J\cup J')=\emptyset\) . Consider any such conflict. If there is \(i'\neq i\) such that \(\pi_{i'}\rightarrow \pi_j\), then we know from (4) that \(i'=i-1\) or \(i+1\). Without loss of generality, we may assume \(i'=i+1\) (else we permute the roles of \(i\) and \(i'\)). Since none of \(j,i,i'\) belongs to \(J\cup J'\), there is no \(k\) such that \(\pi_k\rightarrow \pi_i\), \(\pi_k\rightarrow \pi_{i'}\) or \(\pi_j\rightarrow \pi_k\). Also, it follows from (4) that there is no \(k\neq i,i'\) such that \(\pi_k\rightarrow \pi_{j}\)
After all these flips, there is no \(\pi_i\rightarrow \pi_j\) with \(2\leq j< i\leq \theta\). We consider now triangles \(T_1,T_2,T_3,T_4\) involved in \(\pi_0\) and \(\pi_1\). If there is \(j\geq 2\) such that \(\pi_j\rightarrow \pi_1\) then we know from (5) that \(\pi_j\nrightarrow \pi_k\) for all \(2\leq k 2\theta/3\). Indeed, we have seen above that if \(i\leq 2\theta/3\), then \(\min\{|b^1_j|,|b^2_j|\}>4\theta+3t-2\), which means that \(\pi_j\nrightarrow \pi_1\). So, \(\pi_j\) was not flipped, and by flipping \(\pi_1\), we get \(\pi_j\nrightarrow \pi_1\) for all \(2\leq j\leq \theta\).
Since the parity of \(m^0_1\) and \(m^0_2\) is the opposite of the parity of \(b^1_i\) and \(b^2_i\) for all \(i\geq 2\), we have \(\pi_j\nrightarrow \pi_0\) for all \(2\leq j\leq \theta\). Hence, the only possible remaining conflict is between \(\pi_0\) and \(\pi_1\). This can only occur if \(b^0_1=b^1_1\) and \(\pi_1\) was flipped. In such a case, we flip \(\pi_0\) to remove this last conflict.
Case B : \(n=2\theta+t\), \(\theta=3t+1\) We treat this case as the previous one. More precisely, the vertex labels \(f(v_i)\) on \(T_1,\ldots,T_{2\theta}\) are given in Table 4. Given a gdl \(f’\) for \(t\overrightarrow{\bf C_3}\) with at most one arc of magnitude \(3t-2\), and all other arcs of magnitude strictly smaller than \(3t-2\), we set \(f(v_i)=f'(v_i)+3\theta\) for \(i=6\theta+1,\ldots,6\theta+3t\). Again, one can easily check that \(f\) is a bijection between \(\{v_1,\ldots,v_{6\theta+3t}\}\) and \(\{1, \ldots,6\theta+3t=3n\}\).Triangle \(T_i\) | \(f(v_{3i-2})\) | \(f(v_{3i-1})\) | \(f(v_{3i})\) |
---|---|---|---|
\(T_1\) | \(1\) | \(2\theta+1\) | \(6\theta+3t-3\) |
\(T_2\) | \(2\) | \(6\theta+3t\) | \(4\theta+3t\) |
\(T_3\) | \(3\) | \(6\theta+3t-1\) | \(2\theta+2\) |
\(T_4\) | \(4\) | \(4\theta+3t-1\) | \(6\theta+3t-2\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2k-1}\) | \(2k-1\) | \(2\theta+k\) | \(6\theta+3t-2k+2\) |
\(T_{2k}\) | \(2k\) | \(6\theta+3t-2k+1\) | \(4\theta+3t-k+1\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2\theta-1}\) | \(2\theta-1\) | \(3\theta+3t+1\) | \(4\theta+3t+1\) |
\(T_{2\theta}\) | \(2\theta\) | \(4\theta+3t+2\) | \(3\theta\) |
Pair | Triangle | Small-dl | Medium-dl | Big-dl |
---|---|---|---|---|
\(\pi_0=(T_1,T_2)\) | \(T_1\) | \(2\theta\) | \(4\theta+3t-4\) | \(-(6\theta+3t-4)\) |
\(T_2\) |
\(-2\theta\) | \(-(4\theta+3t-2)\) | \(6\theta+3t-2\) | |
\(\pi_1=(T_3,T_4)\) | \(T_3\) | \(-(2\theta-1)\) | \(-(4\theta+3t-3)\) | \(6\theta+3t-4\) |
\(T_4\) | \(2\theta-1\) | \(4\theta+3t-5\) | \(-(6\theta+3t-6)\) | |
\(\pi_2=(D_1,T_5)\) | \(D_1\) | \(-(2\theta-2)\) | \(-(4\theta+3t-5)\) | \(6\theta+3t-7\) |
\(T_5\) | \(2\theta-2\) | \(4\theta+3t-7\) | \(-(6\theta+3t-9)\) | |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(\pi_k=(T_{2k},T_{2k+1})\) | \(T_{2k}\) | \(-(2\theta-k)\) | \(-(4\theta+3t-3k+1)\) | \(6\theta+3t-4k+1\) |
\(k=3,\ldots,\theta-2\) | \(T_{2k+1}\) | \(2\theta-k\) | \(4\theta+3t-3k-1\) | \(-(6\theta+3t-4k-1)\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(\pi_{\theta-1}=(T_{2\theta-2},D_{2})\) | \(T_{2\theta-1}\) | \(-(\theta+1)\) | \(-(\theta+3t+4)\) | \(2\theta+3t+5\) |
\(D_{2}\) | \(\theta+1\) | \(\theta+3t+2\) | \(-(2\theta+3t+3)\) | |
\(\pi_{\theta}=(T_{2\theta-1},T_{2\theta})\) | \(T_{2\theta-1}\) | \(\theta\) | \(\theta+3t+2\) | \(-(2\theta+3t+2)\) |
\(T_{2\theta}\) | \(-\theta\) | \(-(\theta+3t+2)\) | \(2\theta+3t+2\) |
Triangle \(T_i\) | \(f(v_{3i-2})\) | \(f(v_{3i-1})\) | \(f(v_{3i})\) |
---|---|---|---|
\(T_1\) | \(1\) | \(2\theta\) | \(6\theta+3t-6\) |
\(T_2\) | \(2\) | \(6\theta+3t-3\) | \(4\theta+3t-2\) |
\(T_3\) | \(3\) | \(6\theta+3t-4\) | \(2\theta+1\) |
\(T_4\) | \(4\) | \(4\theta+3t-3\) | \(6\theta+3t-5\) |
\(T_5\) | \(5\) | \(2\theta+2\) | \(6\theta+3t-7\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2k}\) | \(2k\) | \(6\theta+3t-2k-2\) | \(4\theta+3t-k-1\) |
\(T_{2k+1}\) | \(2k+1\) | \(2\theta+k\) | \(6\theta+3t-2k-3\) |
\(k=3,\ldots,\theta-3\) | |||
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
Pair | Triangle | Small-dl | Medium-dl | Big-dl |
---|---|---|---|---|
\(\pi_0=(T_1,T_2)\) | \(T_1\) | \(2\theta-1\) | \(4\theta+3t-6\) | \(-(6\theta+3t-7)\) |
\(T_2\) | \(-(2\theta-1)\) | \(-(4\theta+3t-4)\) | \(6\theta+3t-5\) | |
\(\pi_1=(T_3,T_4)\) | \(T_3\) | \(-(2\theta-2)\) | \(-(4\theta+3t-5)\) | \(6\theta+3t-7\) |
\(T_4\) | \(2\theta-2\) | \(4\theta+3t-7\) | \(-(6\theta+3t-9)\) | |
\(\pi_2=(D_1,T_5)\) | \(D_1\) | \(-(2\theta-3)\) | \(-(4\theta+3t-7)\) | \(6\theta+3t-10\) |
\(T_5\) | \(2\theta-3\) | \(4\theta+3t-9\) | \(-(6\theta+3t-12)\) | |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(\pi_k=(T_{2k},T_{2k+1})\) | \(T_{2k}\) | \(-(2\theta-k-1)\) | \(-(4\theta+3t-3k-1)\) | \(6\theta+3t-4k-2\) |
\(k=3,\ldots,\theta-1\) | \(T_{2k+1}\) | \(2\theta-k-1\) | \(4\theta+3t-3k-3\) | \(-(6\theta+3t-4k-4)\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
Again, the triangles are grouped in pairs, using one dummy triangle \(D_1\) which is paired with \(T_5\). Notice that for every \(uv\) on a \(T_i\) with \(i\leq 2\theta-1\) and every \(u’v’\) on a \(T_j\) with \(j>2\theta-1\), we have \(f(v)-f(u)\neq f(v’)-f(u’)\) since the smallest possible magnitude for \(uv\) is \(\theta\geq 3t-1\), while the largest possible magnitude for \(u’v’\) is \(3t-2\). Hence, also in this case, we do not have to flip \(T_{2\theta+1},\ldots,T_{2\theta+t}\). Note also that the largest magnitude is \(6\theta+3t-5=3n-2\), and there is exactly one arc with this magnitude.
Since \(\theta2\theta-1\), which means that no medium-dl can be equal to a small-dl. Using the same arguments, as in the previous cases, we can avoid conflicts involving \(\pi_2,\ldots,\pi_{\theta-1}\).
If there is \(j\geq 2\) such that \(\pi_j\rightarrow \pi_0\), then assume there is \(i>j\) such that \(\pi_i\rightarrow \pi_j\). If \(i\leq 2\theta/3\), then \(\min\{|b^1_i|,|b^2_i|\}\geq 6\theta+3t-4(2\theta/3)-4=10\theta/3+3t-4\). It follows that \(j\leq (2\theta+3)/9\) else \(\max\{|m^1_j|,|m^2_j|\}\leq 4\theta+3t-3(2\theta+3)/9-4=10\theta/3+3t-5\). Hence \(\min\{|b^1_j|,|b^2_j|\}\geq 6\theta+3t-4(2\theta+3)/9-4=46\theta/9+3t-48/9>4\theta+3t-4\), which contradicts \(\pi_j\rightarrow \pi_0\). Hence, we necessarily have \(i>2\theta/3\), and since \(j\) cannot belong to \(J\cup J’\), we conclude that \(j\) was not flipped. Hence, by flipping \(\pi_0\), we get \(\pi_j\nrightarrow \pi_0\) for all \(j\geq 2\).
Since the parity of \(m^1_1\) and \(m^2_1\) is the opposite of the parity of \(b^1_i\) and \(b^2_i\) for all \(i\geq 2\), we have \(\pi_j\nrightarrow \pi_1\) for all \(j\geq 2\). Hence, the only possible remaining conflict is between \(\pi_0\) and \(\pi_1\). This can only occur if \(b^1_0=b^1_1\) and \(\pi_1\) was flipped. In such a case, we flip \(\pi_1\) to remove this last conflict.
Case D : \(n=2\theta+t-1\), \(\theta=3t+1\) Consider the vertex labels \(f(v_i)\) on \(T_1,\ldots,T_{2\theta-1}\) shown in Table 8. Given a gdl \(f’\) for \(t\overrightarrow{\bf C_3}\) with at most one arc of magnitude \(3t-2\), and all other arcs of magnitude strictly smaller than \(3t-2\), we set \(f(v_i)=f'(v_i)+3\theta-1\) for \(i=6\theta-2,\ldots,6\theta+3t-3\). One can easily check \(f\) is a bijection between \(\{v_1,\ldots,v_{6\theta+3t-3}\}\) and \(\{1, \ldots,6\theta+3t-3=3n\}\).
The small, medium, and big difference labels for triangles \(T_1,\ldots,T_{2\theta}\) are given in Table \ref{dl4}. Again, the triangles are grouped in pairs, using one dummy triangle \(D_1\) which is paired with \(T_5\). Notice that for every \(uv\) on a \(T_i\) with \(i\leq 2\theta-1\) and every \(u’v’\) on a \(T_j\) with \(j>2\theta-1\), we have \(f(v)-f(u)\neq f(v’)-f(u’)\) since the smallest possible magnitude for \(uv\) is \(\theta-2=3t-1\), while the largest possible magnitude for \(u’v’\) is \(3t-2\). Hence, also in this case, we do not have to flip \(T_{2\theta+1},\ldots,T_{2\theta+t}\). Note also that the largest magnitude is \(6\theta+3t-5=3n-2\), and there is only one arc with this magnitude.
Since \(\theta=3t+1\), we have \(\theta+3t+1=2\theta\), which means that no medium-dl can be equal to a small-dl. The small, medium and big difference labels on \(T_1,\ldots,T_{2\theta-5}\) are exactly the same as those of Table \ref{dl3}. Using the same arguments, as in the previous case, we can avoid conflicts involving \(\pi_0,\ldots,\pi_{\theta-3}\).
Triangle \(T_i\) | \(f(v_{3i-2})\) | \(f(v_{3i-1})\) | \(f(v_{3i})\) |
---|---|---|---|
\(T_1\) | \(1\) | \(2\theta\) | \(6\theta+3t-6\) |
\(T_2\) | \(2\) | \(6\theta+3t-3\) | \(4\theta+3t-2\) |
\(T_3\) | \(3\) | \(6\theta+3t-4\) | \(2\theta+1\) |
\(T_4\) | \(4\) | \(4\theta+3t-3\) | \(6\theta+3t-5\) |
\(T_5\) | \(5\) | \(2\theta+2\) | \(6\theta+3t-7\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2k}\) | \(2k\) | \(6\theta+3t-2k-2\) | \(4\theta+3t-k-1\) |
\(T_{2k+1}\) | \(2k+1\) | \(2\theta+k\) | \(6\theta+3t-2k-3\) |
\(k=3,\ldots,\theta-3\) | |||
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2\theta-4}\) | \(2\theta-4\) | \(4\theta+3t-1\) | \(3\theta+3t+1\) |
\(T_{2\theta-3}\) | \(2\theta-3\) | \(4\theta+3t+2\) | \(3\theta-2\) |
\(T_{2\theta-2}\) | \(2\theta-2\) | \(3\theta+3t\) | \(4\theta+3t+1\) |
\(T_{2\theta-1}\) | \(2\theta-1\) | \(3\theta-1\) | \(4\theta+3t\) |
Triangle \(T_i\) | \(f(v_{3i-2})\) | \(f(v_{3i-1})\) | \(f(v_{3i})\) |
---|---|---|---|
\(T_1\) | \(1\) | \(2\theta\) | \(6\theta+3t-6\) |
\(T_2\) | \(2\) | \(6\theta+3t-3\) | \(4\theta+3t-2\) |
\(T_3\) | \(3\) | \(6\theta+3t-4\) | \(2\theta+1\) |
\(T_4\) | \(4\) | \(4\theta+3t-3\) | \(6\theta+3t-5\) |
\(T_5\) | \(5\) | \(2\theta+2\) | \(6\theta+3t-7\) |
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2k}\) | \(2k\) | \(6\theta+3t-2k-2\) | \(4\theta+3t-k-1\) |
\(T_{2k+1}\) | \(2k+1\) | \(2\theta+k\) | \(6\theta+3t-2k-3\) |
\(k=3,\ldots,\theta-3\) | |||
\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |
\(T_{2\theta-4}\) | \(2\theta-4\) | \(4\theta+3t-1\) | \(3\theta+3t+1\) |
\(T_{2\theta-3}\) | \(2\theta-3\) | \(4\theta+3t+2\) | \(3\theta-2\) |
\(T_{2\theta-2}\) | \(2\theta-2\) | \(3\theta+3t\) | \(4\theta+3t+1\) |
\(T_{2\theta-1}\) | \(2\theta-1\) | \(3\theta-1\) | \(4\theta+3t\) |
Lemma\label{C4C3} \(\overrightarrow{\bf C_4}+n\overrightarrow{\bf C_3}\) has a gdl for every \(n\ge 1\).
Proof. The graphs in Figures 9, 10, 11, 12, 13, 14 and 15 show the existence of the desired gdl for \(2\leq n \leq 8\).
Figure 9. \(2\overrightarrow{\bf C_3}+\overrightarrow{\bf C_4}\).
Figure 10. \(3\overrightarrow{\bf C_3}+\overrightarrow{\bf C_4}\).
Figure 11. \(4\overrightarrow{\bf C_3}+\overrightarrow{\bf C_4}\).
Figure 12. \(5\overrightarrow{\bf C_3}+\overrightarrow{\bf C_4}\).
Figure 13. \(6\overrightarrow{\bf C_3}+\overrightarrow{\bf C_4}\).
Figure 14. \(7\overrightarrow{\bf C_3}+\overrightarrow{\bf C_4}\).
Figure 15. \(8\overrightarrow{\bf C_3}+\overrightarrow{\bf C_4}\)
Theorem 1. If \(G\) is the disjoint union of circuits, among which at most one has an odd length, or all circuits of odd length have 3 vertices, then \(G\) has a gdl, unless \(G=\overrightarrow{\bf C_{3}}\) or \(G=\overrightarrow{\bf C_{2}}+\overrightarrow{\bf C_{3}}\).
Conjecture 1. If \(G\) is the disjoint union of circuits, then \(G\) has a gdl, unless \(G=\overrightarrow{\bf C_{3}}\) or \(G=\overrightarrow{\bf C_{2}}+\overrightarrow{\bf C_{3}}\).