OJDM  Vol.10 No.1 , January 2020
Some Results on Cordial Digraphs
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 [1] and Harary [2]. A path P n = a 0 a 1 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 ( x , y ) between two vertices x , y in V of a graph G = ( V , E ) 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 < j . In Particular P 2 2 C 2 , P 3 2 C 3 [3]. The origin concept of cordial graphs is due to Cahit [4]. In 1990, Cahit [5] proved the following: each tree is cordial; a complete graph K n is cordial if and only if n 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 { 0 , 1 } 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 { 0 , 1 }

f * ( v i v i + 1 ) = 2 v i ( mod 2 )

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 | 1 and | e 0 e 1 | 1 holds [4]. A graph is called cordial if it admits a cordial labeling [2]. 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 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 = ( x 0 x 1 ) + ( y 0 y 1 ) and e 0 e 1 = ( a 0 a 1 ) + ( b 0 b 1 ) .

The join (sum) P n + P m is obtained from P n 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 | = | ( x 0 x 1 ) + ( y 0 y 1 ) | , and | e 0 e 1 | = | ( a 0 a 1 ) + ( b 0 b 1 ) m ( x 0 x 1 ) | .

We shall show that P n , P n 2 and P n 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 [5], 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 2 r denote the labeling 01 01 (r times), and the labeling 01 010 is denoted by M 2 r + 1 . We let M 2 r denote the labeling 10 10 . Let L 4 r denote the labeling 0011 0011 (r-times) and L 4 r denote the labeling 1100 1100 (r-times), where r 1 . The labeling 0 0 (r-times) is denoted by 0 r . Similarly, 1 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 4 r 101 denotes the labeling 0011 0011101 , when r 1 and 101 when r = 0 . Similarly, 0 L 4 r 1 is the labeling 01100 11001 when r 1 and 01 when r = 0 .

3. Directed Cordial Paths

Let G = ( V , E ) 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 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 0 ( mod 4 ) .

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

Case (2). P m ; m 1 ( mod 4 ) .

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

Case (3). P m ; m 2 ( mod 4 ) .

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

Case (4). P m ; m 3 ( mod 4 ) .

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 = 4 r + 3 ; r 1 . Then, one can choose the labeling M 2 r + 1 for P 4 r + 3 . Therefore, x 0 = 2 r + 1 , x 1 = 2 r , and a 0 = a 1 = 2 r . Consequently, | v 0 v 1 | = 1 and, | e 0 e 1 | = 0 . Thus P 4 r + 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 2 n 3 . In this section we show that P n 2 is directed cordial for all positive integers n 2 .

Theorem 4.1. Each directed second power path, P n 2 , is directed cordial for all n 2 .

Proof: By previous theorem P 2 2 P 2 .

Now, we need to study the following four cases:

Case (1). P n 2 ; n 0 ( mod 4 ) .

Suppose that n = 4 r ; r 1 . Without loss of generality, we may take the anti-clock direction throughout. Then, one can choose the labeling, L 4 r for P 4 r .Therefore, x 0 = x 1 = 2 r , a 0 = 4 r 1 , and a 1 = 4 r 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 1 ( mod 4 ) .

Suppose that n = 4 r + 1 ; r 1 . Then, one can choose the labeling, M 2 r + 1 for P 4 r + 1 . Therefore, x 0 = 2 r + 1 , x 1 = 2 r , a 0 = 4 r 1 , and a 1 = 4 r . 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 2 ( mod 4 ) .

Suppose that n = 4 r + 2 ; r 1 . Then, one can choose the labeling, M 2 r 10 for P 4 r + 2 . Therefore, x 0 = x 1 = 2 r + 1 , a 0 = 4 r + 1 , and a 1 = 4 r . 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 3 ( mod 4 ) .

Suppose that n = 4 r + 3 ; r 0 . Then, one can choose the labeling, M 2 r 1 for P 4 r + 3 . Therefore, x 0 = 2 r + 1 , x 1 = 2 r + 2 , a 0 = 4 r + 2 and a 1 = 4 r + 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 | = | ( x 0 x 1 ) + ( y 0 y 1 ) | 1

| e 0 e 1 | = | ( a 0 a 1 ) + ( b 0 b 1 ) | 1

Lemma 5.1. The union P n P m of two directed paths is always directed cordial for all n , m 2 .

Proof: There are three cases to be examined:

Figure 11. Linearly directed cordial path P 11 2 .

Case (1). P 2 r P 2 s

Choose the labeling M 2 s for P 2 r and M 2 r for P 2 s . 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 | = | ( x 0 x 1 ) + ( y 0 y 1 ) | = | r r + s s | = 0

and

| e 0 e 1 | = | ( a 0 a 1 ) + ( b 0 b 1 ) | = | r r + 1 + s 1 s | = 0 .

Thus P 2 r P 2 s is directed cordial as we wanted to show.

Case (2). P 2 r + 1 P 2 s + 1

Choose the labeling M 2 r + 1 for P 2 r and M 2 s + 1 for P 2 s . 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 2 r + 1 P 2 s + 1 is directed cordial.

Case (3). P 2 r P 2 s + 1

Choose the labeling M 2 r + 1 for P 2 r and M 2 s + 1 for P 2 s .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 2 r P 2 s + 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 | = | ( x 0 x 1 ) + ( y 0 y 1 ) | ,

and

| e 0 e 1 | = | ( a 0 a 1 ) + ( b 0 b 1 ) m ( x 0 x 1 ) | .

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 = 2 r , r > 2 and m = 2 s , s > 2 . Then one can choose the labeling [ M 2 r ; M 2 s ] for P 2 r + P 2 s , 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 | = | ( x 1 x 0 ) + ( y 1 y 0 ) | = 0 ,

and | e 1 e 0 | = | ( a 1 a 0 ) + ( b 1 b 0 ) m ( x 1 x 0 ) | = 0 . So, P 2 r + P 2 s is directed cordial.

Case (2). m is odd.

Let n = 2 r , r > 2 and m = 2 s + 1 , s > 1 . Then one can choose the labeling [ M 2 r ; M 2 s + 1 ] for P 2 r + P 2 s + 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 | = | ( x 0 x 1 ) + ( y 0 y 1 ) | = | r r + s s 1 | = 1 ,

and

| e 0 e 1 | = | ( a 0 a 1 ) + ( b 0 b 1 ) m ( x 0 x 1 ) | = | r r + 1 + s s ( 2 s + 1 ) ( r r ) | = 1

Thus P 2 r + P 2 s + 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 [3]. 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 = 2 r + 1 , r 1 . Then one can choose the labeling [ M 2 r + 1 ; 10 ] for P 2 r + 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 = 2 r + 1 . Then one can choose the labeling [ 0 r 1 r + 1 ; 0 2 1 ] 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 2 r + 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 = 2 r + 1 , and P n and P 4 have the same direction. Then one can choose the labeling [ 0 r 1 r + 1 ; 0 3 1 ] for P 2 r + 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 2 r + 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
[1]   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

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

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

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

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

 
 
Top