Some Results on Cordial Digraphs
Show more
Abstract: A digraph is a graph in which each edge has an orientation. A linear directed path, , is a path whose all edges have the same orientation. A linear simple graph is called directed cordial if it admits 0 - 1 labeling that satisfies certain condition. In this paper, we study the cordiality of directed paths  and their second power . Similar studies are done for  and the join  . We show that ,  and  are directed cordial. Sufficient conditions are given to the join   to be directed cordial.

1. Introduction

One of the major problems concerning graph labeling is the cordialities of graphs. It is related to many applications in computer science and communication network. An excellent reference on this subject in the survey is by Gallian  and Harary . A path ${P}_{n}={a}_{0}{a}_{1}\cdots {a}_{n-1}$ is an alternating sequence of distinct vertices and $n-1$ edges. ${P}_{n}$ is said to be linearly directed if all its edges have the same direction: clockwise or counterclockwise. The distance $d\left(x,y\right)$ between two vertices $x,y$ in V of a graph $G=\left(V,E\right)$ is the length of shortest path joining them in G. The second power of a path ${P}_{n}$, denoted ${P}_{n}^{2}$, is the union of ${P}_{n}$ and the set of all edges ${a}_{i}{a}_{j}$ with distance 2 and $i. In Particular ${P}_{2}^{2}\cong {C}_{2}$, ${P}_{3}^{2}\cong {C}_{3}$ . The origin concept of cordial graphs is due to Cahit . In 1990, Cahit  proved the following: each tree is cordial; a complete graph ${K}_{n}$ is cordial if and only if $n\le 3$ and a complete bipartite graph ${K}_{n,m}$ is cordial for all positive integers n and m. In this paper, we only deal with linearly directed paths and their second power together with the union and join of directed paths. Let $G={P}_{n}$ be a digraph and let $f:V\to \left\{0,1\right\}$ be a labeling of its vertices and its set of edges, and let ${P}_{n}$ be linearly directed (see Figure 1).

We define the edge labeling as follows ${f}^{*}:E\to \left\{0,1\right\}$

${f}^{*}\left({v}_{i}{v}_{i+1}\right)={2}^{{v}_{i}}\left(\mathrm{mod}2\right)$

Let ${v}_{0}$ and ${v}_{1}$ be the numbers of vertices that are labeled by 0 and 1, respectively, in G and let ${e}_{0}$ and ${e}_{1}$ be the corresponding numbers of edges. Such a labeling is called cordial if both $|{v}_{0}-{v}_{1}|\le 1$ and $|{e}_{0}-{e}_{1}|\le 1$ holds . A graph is called cordial if it admits a cordial labeling . If a linearly directed path is cordial, we call it a directed cordial path. The directed second power of a path is a linearly directed path with the added edges in ${P}_{n}^{2}$ that are endowed with directions defined as follows: ${a}_{i}{a}_{i+1},{a}_{i+1}{a}_{i+2}$ and ${a}_{i+2}{a}_{i}$ have the same orientation (see Figure 2).

Given two disjoint paths ${P}_{n}$ and ${P}_{m}$, then their union, ${P}_{n}\cup {P}_{m}$, is simply the unions of their sets of vertices and edges. If ${x}_{i}$ and ${a}_{i}$ represent the numbers of vertices and edges that are labeled i in ${P}_{n}$, respectively, and the corresponding quantities for ${P}_{m}$ are ${y}_{i}$ and ${b}_{i}$. Therefore, it is obvious that ${v}_{0}-{v}_{1}=\left({x}_{0}-{x}_{1}\right)+\left({y}_{0}-{y}_{1}\right)$ and ${e}_{0}-{e}_{1}=\left({a}_{0}-{a}_{1}\right)+\left({b}_{0}-{b}_{1}\right)$.

The join (sum) ${P}_{n}+{P}_{m}$ is obtained from ${P}_{n}\cup {P}_{m}$ by adding all edges that join each vertex of ${P}_{n}$ to all vertices of ${P}_{m}$. Consider ${P}_{n}$ and ${P}_{m}$ have the same orientation. Then, we define the direction of all new edges that are connecting vertices of ${P}_{n}$ and ${P}_{m}$ to be from vertices of ${P}_{n}$ to vertices of ${P}_{m}$. It follows that $|{v}_{0}-{v}_{1}|=|\left({x}_{0}-{x}_{1}\right)+\left({y}_{0}-{y}_{1}\right)|$, and $|{e}_{0}-{e}_{1}|=|\left({a}_{0}-{a}_{1}\right)+\left({b}_{0}-{b}_{1}\right)-m\left({x}_{0}-{x}_{1}\right)|$.

We shall show that ${P}_{n},{P}_{n}^{2}$ and ${P}_{n}\cup {P}_{m}$ are directed cordial for all positive integers n, m. Some sufficient conditions are given to make the join ${P}_{n}+{P}_{m}$ is directed cordial. It is worth noting that, although ${K}_{4}={P}_{2}+{P}_{2}$ is directed cordial but according to Cahit , it is not cordial.

Figure 1. Linearly Directed Path.

Figure 2. The Directed Second Power of a Path Have The Same Orientation.

2. Terminology and Notation

Let ${M}_{2r}$ denote the labeling $01\cdots 01$ (r times), and the labeling $01\cdots 010$ is denoted by ${M}_{2r+1}$. We let ${{M}^{\prime }}_{2r}$ denote the labeling $10\cdots 10$. Let ${L}_{4r}$ denote the labeling $0011\cdots 0011$ (r-times) and ${{L}^{\prime }}_{4r}$ denote the labeling $1100\cdots 1100$ (r-times), where $r\ge 1$. The labeling $0\cdots 0$ (r-times) is denoted by ${0}_{r}$. Similarly, $1\cdots 1$ (r-times) is denoted by ${1}_{r}$. We can modify this by adding symbols at one end or the other (or both), thus ${L}_{4r}101$ denotes the labeling $0011\cdots 0011101$, when $r\ge 1$ and 101 when $r=0$. Similarly, $0{{L}^{\prime }}_{4r}1$ is the labeling $01100\cdots 11001$ when $r\ge 1$ and 01 when $r=0$.

3. Directed Cordial Paths

Let $G=\left(V,E\right)$ be a graph where G is linearly directed path. We show that each linearly directed path is directed cordial.

Lemma 3.1.

The directed path ${P}_{m}$, is directed cordial; $m\ge 2$.

Proof: Let us first examine the particular cases ${P}_{2}$ and ${P}_{3}$.

For ${P}_{2}$, we choose the labeling 01; therefore ${x}_{0}={x}_{1}=1,{a}_{0}=0,{a}_{1}=1$. Without any loss of generality, one may use the clockwise direction and hence $|{v}_{0}-{v}_{1}|=0$, and, $|{e}_{0}-{e}_{1}|=1$. So ${P}_{2}$ is directed cordial.

For ${P}_{3}$, we choose the labeling 010; therefore ${x}_{0}=2,{x}_{1}=1$, and ${a}_{0}={a}_{1}=1$, also we may consider the direction of ${P}_{3}$ as done in ${P}_{2}$ ; hence $|{v}_{0}-{v}_{1}|=1$ and $|{e}_{0}-{e}_{1}|=0$, so ${P}_{3}$ is directed cordial (Figure 3).

To complete the proof, we need to study the following four cases:

Case (1). ${P}_{m};m\equiv 0\left(\mathrm{mod}4\right)$.

Suppose that $m=4r,r\ge 1$. We choose the labeling, ${L}_{4r}$ for ${P}_{4r}$. Therefore ${x}_{0}={x}_{1}=2r$, ${a}_{0}=2r-1$, and ${a}_{1}=2r$. Consequently, $|{v}_{0}-{v}_{1}|=0$ and, $|{e}_{0}-{e}_{1}|=1$. Thus ${P}_{4r}$ is directed cordial. Figure 4 illustrates the directed cordial path ${P}_{8}$.

Case (2). ${P}_{m};m\equiv 1\left(\mathrm{mod}4\right)$.

Suppose that $m=4r+1,r\ge 1$. Then, one can choose the labeling, ${L}_{4s}0$ for ${P}_{2r+1}$. Therefore ${x}_{0}=2r+1,{x}_{1}=2r$, and ${a}_{0}={a}_{1}=2r$. Consequently, $|{v}_{0}-{v}_{1}|=1$ and, $|{e}_{0}-{e}_{1}|=0$. Thus ${P}_{4r+1}$ is directed cordial. Figure 5 illustrates the directed cordial path ${P}_{5}$.

Case (3). ${P}_{m};m\equiv 2\left(\mathrm{mod}4\right)$.

Suppose that $m=4r+2;r\ge 1$. Then, one can choose the labeling, ${M}_{2r}$ for ${P}_{4r+2}$. Therefore, ${x}_{0}={x}_{1}=2r$, ${a}_{0}=2r-1$, and ${a}_{1}=2r$. Consequently, $|{v}_{0}-{v}_{1}|=0$ and, $|{e}_{0}-{e}_{1}|=1$. Thus ${P}_{4r+2}$ is directed cordial. Figure 6 illustrates the directed cordial path ${P}_{6}$.

Case (4). ${P}_{m};m\equiv 3\left(\mathrm{mod}4\right)$.

Figure 3. Linearly directed cordial path P2 and P3.

Figure 4. Linearly directed cordial path P8.

Figure 5. Linearly directed cordial path P5.

Figure 6. Linearly directed cordial path P6.

Suppose that $m=4r+3;r\ge 1$. Then, one can choose the labeling ${M}_{2r+1}$ for ${P}_{4r+3}$. Therefore, ${x}_{0}=2r+1,{x}_{1}=2r$, and ${a}_{0}={a}_{1}=2r$. Consequently, $|{v}_{0}-{v}_{1}|=1$ and, $|{e}_{0}-{e}_{1}|=0$. Thus ${P}_{4r+3}$ is directed cordial. Figure 7 illustrates the directed cordial path ${P}_{7}$. Thus the lemma is proved.

4. The Directed Cordiality of ${P}_{n}^{2}$

It is known that the number of edges in ${P}_{n}^{2}$ is $2n-3$. In this section we show that ${P}_{n}^{2}$ is directed cordial for all positive integers $n\ge 2$.

Theorem 4.1. Each directed second power path, ${P}_{n}^{2}$, is directed cordial for all $n\ge 2$.

Proof: By previous theorem ${P}_{2}^{2}\cong {P}_{2}$.

Now, we need to study the following four cases:

Case (1). ${P}_{n}^{2};n\equiv 0\left(\mathrm{mod}4\right)$.

Suppose that $n=4r;r\ge 1$. Without loss of generality, we may take the anti-clock direction throughout. Then, one can choose the labeling, ${L}_{4r}$ for ${P}_{4r}$.Therefore, ${x}_{0}={x}_{1}=2r,{a}_{0}=4r-1$, and ${a}_{1}=4r-2$. Consequently, $|{v}_{0}-{v}_{1}|=0$ and, $|{e}_{0}-{e}_{1}|=1$. Figure 8 illustrates the directed cordial path ${P}_{8}^{2}$.

Case (2). ${P}_{n}^{2};n\equiv 1\left(\mathrm{mod}4\right)$.

Suppose that $n=4r+1;r\ge 1$. Then, one can choose the labeling, ${M}_{2r+1}$ for ${P}_{4r+1}$. Therefore, ${x}_{0}=2r+1,{x}_{1}=2r,{a}_{0}=4r-1$, and ${a}_{1}=4r$. Consequently, $|{v}_{0}-{v}_{1}|=|{e}_{0}-{e}_{1}|=1$. Figure 9 illustrates the directed cordial path ${P}_{9}^{2}$.

Case (3). ${P}_{n}^{2};n\equiv 2\left(\mathrm{mod}4\right)$.

Suppose that $n=4r+2;r\ge 1$. Then, one can choose the labeling, ${{M}^{\prime }}_{2r}10$ for ${P}_{4r+2}$. Therefore, ${x}_{0}={x}_{1}=2r+1,{a}_{0}=4r+1$, and ${a}_{1}=4r$. Consequently, $|{v}_{0}-{v}_{1}|=0$ and, $|{e}_{0}-{e}_{1}|=1$. Figure 10 illustrates the directed cordial path ${P}_{6}^{2}$.

Case (4). ${P}_{n}^{2};n\equiv 3\left(\mathrm{mod}4\right)$.

Suppose that $n=4r+3;r\ge 0$. Then, one can choose the labeling, ${M}_{2r}1$ for ${P}_{4r+3}$. Therefore, ${x}_{0}=2r+1,{x}_{1}=2r+2,{a}_{0}=4r+2$ and ${a}_{1}=4r+1$. Consequently, $|{v}_{0}-{v}_{1}|=|{e}_{0}-{e}_{1}|=1$.

Figure 7. Linearly directed cordial path P7.

Figure 8. Linearly directed cordial path ${P}_{8}^{2}$.

Figure 9. Linearly directed cordial path ${P}_{9}^{2}$.

Figure 10. Linearly directed cordial path ${P}_{6}^{2}$.

Figure 11 illustrates the directed cordial path ${P}_{11}^{2}$. Thus the theorem is proved.

5. The Union of Two Directed Paths

In this section we study the directed cordiality of union of two directed paths ${P}_{n}$ and ${P}_{m}$. Throughout, we use the following inequalities to prove the directed cordiality.

$|{v}_{0}-{v}_{1}|=|\left({x}_{0}-{x}_{1}\right)+\left({y}_{0}-{y}_{1}\right)|\le 1$

$|{e}_{0}-{e}_{1}|=|\left({a}_{0}-{a}_{1}\right)+\left({b}_{0}-{b}_{1}\right)|\le 1$

Lemma 5.1. The union ${P}_{n}\cup {P}_{m}$ of two directed paths is always directed cordial for all $n,m\ge 2$.

Proof: There are three cases to be examined:

Figure 11. Linearly directed cordial path ${P}_{11}^{2}$.

Case (1). ${P}_{2r}\cup {P}_{2s}$

Choose the labeling ${{M}^{\prime }}_{2s}$ for ${P}_{2r}$ and ${M}_{2r}$ for ${P}_{2s}$. Then

${x}_{0}={x}_{1}=r$, ${a}_{0}=r$, ${a}_{1}=r-1$, ${y}_{0}={y}_{1}=s$, ${b}_{0}=s-1$, and ${b}_{1}=s$.

Therefore

$|{v}_{0}-{v}_{1}|=|\left({x}_{0}-{x}_{1}\right)+\left({y}_{0}-{y}_{1}\right)|=|r-r+s-s|=0$

and

$|{e}_{0}-{e}_{1}|=|\left({a}_{0}-{a}_{1}\right)+\left({b}_{0}-{b}_{1}\right)|=|r-r+1+s-1-s|=0$.

Thus ${P}_{2r}\cup {P}_{2s}$ is directed cordial as we wanted to show.

Case (2). ${P}_{2r+1}\cup {P}_{2s+1}$

Choose the labeling ${M}_{2r+1}$ for ${P}_{2r}$ and ${{M}^{\prime }}_{2s+1}$ for ${P}_{2s}$. Then

${x}_{0}=r+1$, ${x}_{1}={a}_{0}={a}_{1}=r$, ${y}_{0}=s$, ${y}_{1}=s+1$, and ${b}_{0}={b}_{1}=s$.

Therefore

$|{v}_{0}-{v}_{1}|=|r+1-r+s-s-1|=0$

and

$|{e}_{0}-{e}_{1}|=|r-r+s-s|=0$.

Thus ${P}_{2r+1}\cup {P}_{2s+1}$ is directed cordial.

Case (3). ${P}_{2r}\cup {P}_{2s+1}$

Choose the labeling ${M}_{2r+1}$ for ${P}_{2r}$ and ${{M}^{\prime }}_{2s+1}$ for ${P}_{2s}$.Then

${x}_{0}={x}_{1}=r$, ${a}_{0}=r$, ${a}_{1}=r-1$, ${y}_{0}=s$, ${y}_{1}=s+1$, and ${b}_{0}={b}_{1}=s$.

Therefore

$|{v}_{0}-{v}_{1}|=|r-r+s-s-1|=1$

and

$|{e}_{0}-{e}_{1}|=|r-r+1+s-s|=1$.

Thus, ${P}_{2r}\cup {P}_{2s+1}$ is directed cordial and the lemma is proved.

6. The Union of Two Directed Paths

In this section we give some sufficient conditions for the sum of two linearly directed paths ${P}_{n}$ and ${P}_{m}$ to be directed cordial. As indicted in the introduction we shall use the following equations to show that ${P}_{n}+{P}_{m}$ is directed cordial:

$|{v}_{0}-{v}_{1}|=|\left({x}_{0}-{x}_{1}\right)+\left({y}_{0}-{y}_{1}\right)|$,

and

$|{e}_{0}-{e}_{1}|=|\left({a}_{0}-{a}_{1}\right)+\left({b}_{0}-{b}_{1}\right)-m\left({x}_{0}-{x}_{1}\right)|$.

Lemma 6.1. If n is even, and ${P}_{n}$ and ${P}_{m}$ have the same orientation. Then ${P}_{n}+{P}_{m}$ is directed cordial for all m.

Proof. Let us first study the following two special cases:

Let $n=m=2$ ; then the labeling [01; 10] is sufficient for ${P}_{2}+{P}_{2}$. Let $n=2$ and $m=3$ ; then we choose the labeling [10; 010] for ${P}_{2}+{P}_{2}$. Therefore, ${x}_{0}={x}_{1}=1$, ${a}_{0}=1$, ${a}_{1}=0$, ${y}_{0}=2$, ${y}_{1}=1$, and ${b}_{0}={b}_{1}=1$. Hence, $|{v}_{0}-{v}_{1}|=|{e}_{0}-{e}_{1}|=1$, so ${P}_{2}+{P}_{3}$ is directed cordial. See Figure 12.

To complete the proof, we need to examine the following two cases.

Case (1). m is even.

Let $n=2r,r>2$ and $m=2s,s>2$. Then one can choose the labeling $\left[{M}_{2r};{{M}^{\prime }}_{2s}\right]$ for ${P}_{2r}+{P}_{2s}$, where without loss of generality, we consider the given direction to both ${b}_{n}$ and ${b}_{m}$ is from left to right. It follows that, ${x}_{0}={x}_{1}=r$, ${a}_{0}=r-1$, ${a}_{1}=r$, ${y}_{0}={y}_{1}=s$, ${b}_{0}=s$, and ${b}_{1}=s-1$. Therefore,

$|{v}_{1}-{v}_{0}|=|\left({x}_{1}-{x}_{0}\right)+\left({y}_{1}-{y}_{0}\right)|=0$,

and $|{e}_{1}-{e}_{0}|=|\left({a}_{1}-{a}_{0}\right)+\left({b}_{1}-{b}_{0}\right)-m\left({x}_{1}-{x}_{0}\right)|=0$. So, ${P}_{2r}+{P}_{2s}$ is directed cordial.

Case (2). m is odd.

Let $n=2r,r>2$ and $m=2s+1,s>1$. Then one can choose the labeling $\left[{M}_{2r};{{M}^{\prime }}_{2s+1}\right]$ for ${P}_{2r}+{P}_{2s+1}$. Then

${x}_{0}={x}_{1}=r$, ${a}_{0}=r$, ${a}_{1}=r-1$, ${y}_{0}=s$, ${y}_{1}=s+1$, and ${b}_{0}={b}_{1}=s$,

Therefore

$|{v}_{0}-{v}_{1}|=|\left({x}_{0}-{x}_{1}\right)+\left({y}_{0}-{y}_{1}\right)|=|r-r+s-s-1|=1$,

and

$\begin{array}{c}|{e}_{0}-{e}_{1}|=|\left({a}_{0}-{a}_{1}\right)+\left({b}_{0}-{b}_{1}\right)-m\left({x}_{0}-{x}_{1}\right)|\\ =|r-r+1+s-s-\left(2s+1\right)\left(r-r\right)|=1\end{array}$

Thus ${P}_{2r}+{P}_{2s+1}$ is directed cordial. Hence, the lemma is proved.

It is very important noting that, although ${K}_{4}$ is directed cordial, but according to Cahit, ${K}_{4}$ is not cordial . This shows a difference between cordial graphs and directed cordial graphs.

Figure 12. Directed cordial path ${P}_{2}+{P}_{3}$.

Lemma 6.2. If n is odd, and ${P}_{n}$ and ${P}_{2}$ have the same direction. Then ${P}_{n}+{P}_{2}$ is directed cordial.

Proof: Let $n=2r+1,r\ge 1$. Then one can choose the labeling $\left[{M}_{2r+1};10\right]$ for ${P}_{2r+1}+{P}_{2}$. It follows that ${x}_{0}=r+1$, ${x}_{1}=r$, ${a}_{0}={a}_{1}=r$, ${y}_{0}={y}_{1}=1$, ${b}_{0}=1$, and ${b}_{1}=0$. Hence $|{v}_{0}-{v}_{1}|=|{e}_{0}-{e}_{1}|=1$. See Figure 13 and Figure 14.

Lemma 6.3. If n is odd, and both ${P}_{n}$ and ${P}_{3}$ are similarly directed. Then ${P}_{n}+{P}_{3}$ is directed cordial.

Proof. Suppose that $n=2r+1$. Then one can choose the labeling $\left[{0}_{r}{1}_{r+1};{0}_{2}1\right]$ for ${P}_{n}+{P}_{3}$. It follows that ${x}_{0}=r$, ${x}_{1}=r+1$, ${a}_{0}={a}_{1}=r$, ${y}_{0}=2$, ${y}_{1}=1$, ${b}_{0}=0$, and ${b}_{1}=2$. It is easy to show that $|{v}_{0}-{v}_{1}|=0$ and $|{e}_{0}-{e}_{1}|=1$. Thus, ${P}_{2r+1}+{P}_{3}$ is directed cordial. See Figure 15.

Lemma 6.4. If n is odd and both ${P}_{n}$ and ${P}_{4}$ are similarly directed. Then ${P}_{n}+{P}_{4}$ is directed cordial.

. Suppose that $n=2r+1$, and ${P}_{n}$ and ${P}_{4}$ have the same direction. Then one can choose the labeling $\left[{0}_{r}{1}_{r+1};{0}_{3}1\right]$ for ${P}_{2r+1}+{P}_{4}$. It follows that ${x}_{0}=r$, ${x}_{1}=r+1$, ${a}_{0}={a}_{1}=r$, ${y}_{0}=3$, ${y}_{1}=1$, ${b}_{0}=0$, and ${b}_{1}=3$. Hence $|{v}_{0}-{v}_{1}|=|{e}_{0}-{e}_{1}|=0$, and so, ${P}_{2r+1}+{P}_{4}$ is directed cordial. See Figure 16.

Figure 13. Directed cordial path ${P}_{3}+{P}_{2}$.

Figure 14. Directed cordial path ${P}_{5}+{P}_{2}$.

Figure 15. Directed cordial path ${P}_{5}+{P}_{3}$.

Figure 16. Directed cordial path ${P}_{3}+{P}_{4}$.

7. Applications and Conclusions

The water and gas pipelines supply to a building represent examples of diagraphs. We think of edges of a directed path as pipes can flow through it in one way flow. Another example is the waste systems of plumbing in a building. In conclusion, the directed paths, second power directed paths and the union of any two directed paths are all cordial digraphs. If n is even, then the join ${P}_{n}+{P}_{m}$ is always cordial diagraph. Also, ${P}_{n}+{P}_{i}$ is cordial digraph for all $i=2,3,4$, and n is odd.

Cite this paper: Al-Shamiri, M. , Nada, S. , Elrokh, A. and Elmshtaye, Y. (2020) Some Results on Cordial Digraphs. Open Journal of Discrete Mathematics, 10, 4-12. doi: 10.4236/ojdm.2020.101002.
References

   Gallian, J.A. (2017) A Dynamic Survey of Graph Labeling. The Electronic Journal of Combinatorics, Twentieth Edition, December 22, 1-432.
https://www.combinatorics.org/ojs/index.php/eljc/article/view/DS6/versions

   Harary, F. (1972) Graph Theory. Addison-Wesley Reading Mass, Massachusetts.

   Diab, A.T. (2010) On Cordial Labeling of the Second Power of Paths with Other Graphs. ARS-Combinatoria, 97A, 327-343.

   Cahit, I. (1987) Cordial Graphs: A Weaker Version of Graceful and Harmonious Graphs. ARS-Combinatoria, 23, 201-207.

   Cahit, I. (1990) On Cordial and 3-Eqtitable Labeling of Graphs. Utilitas Mathematica, 37, 189-198.

Top