Cordial Digraphs

LeRoy B. Beasley1
1LeRoy B. Beasley Clock Tower Plaza, Ste 317, 550 North Main St, Box C3 Logan, Utah 84321, U.S.A.

Abstract

A (0,1)-labeling of a set is said to be friendly if the number of elements of the set labeled 0 and the number labeled 1 differ by at most 1. Let g be a labeling of the edge set of a graph that is induced by a labeling f of the vertex set. If both g and f are friendly then g is said to be a cordial labeling of the graph. We extend this concept to directed graphs and investigate the cordiality of directed graphs. We show that all directed paths and all directed cycles are cordial. We also discuss the cordiality of oriented trees and other digraphs.

Keywords: friendly labeling, cordial labeling, cordial digraph

1. Introduction

Let Gn denote the set of all simple undirected graphs on the vertex set V={v1,v2,,vn}. For GGn, let E(G) denote the edge set of G. In the article “Cordial graphs: A Weaker Version of Graceful and Harmonious Graphs”, Ibrahim Cahit introduced cordial graphs. Relative definitions are found in the next section. In this article we are interested in directed graphs and so, the orientation of an arc is essential in any investigation. While the induced labelings in undirected graphs are symmetric, we shall want the arc labelings of our directed graphs to be asymmetric. The study of cordial graphs has been to identify classes of graphs that have a friendly labeling that induces a cordial labeling of the edges. We shall proceed in that fashion for directed graphs.

2. Preliminaries

In this article, we will be concerned mainly with digraphs, We let Dn denote the set of all simple directed graphs on the vertex set V={v1,v2,,vn}. Further, we shall want no arcs directed both ways between any pair of vertices, that is our graphs will be digon-free. Thus we shall let Tn denote the set of all subgraphs of a tournament digraph. Let DTn, D=(V,A) where A is the arc set of D. Then D has no loops, no digons, and no multiple arcs. An arc in D directed from vertex u to vertex v will be denoted uv,vu or by the ordered pair (u,v). We also let Gn denote the set of all simple undirected graphs on the vertex set V={v1,v2,,vn}. So all members of Tn are orientations of graphs in Gn.

A (0,1)-labeling of a finite set, Z, is a mapping f:Z{0,1} and is said to be friendly if approximately one half of the members of Z are labeled 0 and the others are labeled 1, that is 1|f1(0)||f1(1)|1 where |X| denotes the cardinality of the set X. If there are an even number of elements in Z , then a friendly labeling has the number labeled 1 equal to the number labeled 0. More generally we define an A-friendly labeling:

Definition 1. Let A be a finite set. An A-labeling of the set Z  is a mapping f:ZA. The labeling f is A-friendly if 1|f1(i)||f1(j)|1 for any i,jA.

Note that a labeling is A-friendly means that the labels are as nearly evenly distributed as possible. If the cardinality of Z  is a multiple of the cardinality of A  then |f1(i)|=|f1(j)| for any i,jA. If the set A  is obvious from the context we just say that f is friendly.

Let G=(V,E) be an undirected graph with vertex set V and edge set E, and let f be a friendly (0,1)-labeling of the vertex set V. Given this friendly vertex labeling f, an induced (0,1)-labeling of the edge set is a mapping g:E{0,1} where for an edge uv,g(uv)=g^(f(u),f(v)) for some g^:{0,1}×{0,1}{0,1} and is said to be cordial if g is also friendly, that is 1|g1(0)||g1(1)|1. A graph, G, is called cordial if there exists a induced cordial labeling of the edge set of G. The induced labeling g is usually g(u,v)=g^(f(u),f(v))=|f(v)f(u)| [1], g(u,v)=g^(f(u),f(v))=f(v)+f(u) (in Z2) [2], or g(u,v)=g^(f(u),f(v))=f(v)f(u) (product cordiality) [3].

In[2], Hovey introduced A-friendly labelings. A labeling f:V(G)A is said to be A-friendly if given any a,bA, 1|f1(b)||f1(a)|1. If g is an induced edge labeling and f and g are both A-friendly Then g is said to be an A-cordial labeling and G is said to be A-cordial. When A=Zk we say that G is k-cordial. We shall use this concept with digraphs.

Let D=(V,A) be a directed graph with vertex set V and arc set A. Let f:V{0,1} be a friendly labeling of the vertices of D. As for undirected graphs, an induced labeling of the arc set is a mapping g:AX for some set X where for an arc (u,v)=uv,g(u,v)=g^(f(u),f(v)) for some g^:{0,1}×{0,1}X. As we are dealing with directed graphs, it would be desirable for the induced labeling to distinguish between the label of the arc (u,v) and the label of the arc (v,u), otherwise, the labeling would be an induced labeling of the underlying undirected graph. If we let X=Z3={1,0,1} and g^(f(u),f(v))=f(v)f(u), we have an asymmetric labeling. In this case, if the set of arcs are nearly equally distributed among the three labelings, we say that the labeling is (2,3)-cordial. Formally:

Definition 2. Let DTn, D=(V,A). Let f:V{0,1} be a friendly labeling of the vertex set V of D. Let g:A{1,0,1} be an induced labeling of the arcs of D. If g is friendly, that is, for any i,j{1,0,1}, 1|g1(i)||g1(j)|1. such a labeling is called a (2,3)-cordial labeling, and a digraph DTn that can possess a (2,3)-cordial labeling will be called a (2,3)-cordial digraph.

For any digraph D with (0,1)-vertex labeling f, and induced (0,1,1)-arc labeling g, let Λf,g(D)=(α,β,γ) where α=|g1(1)|,β=|g1(1)|, and γ=|g1(0)|.

Let DTn and let DR be the digraph such that every arc of D is reversed, so that uv is an arc in DR if and only if vu is an arc in D. Let f be a (0,1)-labeling of the vertices of D and let g(uv)=f(v)f(u) so that g is a (1,1,0)-labeling of the arcs of D. Let f¯ be the complementary (0,1)-labeling of the vertices of D, so that f¯(v)=0 if and only if f(v)=1. Let g¯ be the corresponding induced arc labeling of D, g¯(uv)=f¯(v)f¯(u).

Lemma 1. Let DTn with vertex labeling f and induced arc labeling g. Let Λf,g(D)=(α,β,γ). Then

  1. Λf,g(DR)=(β,α,γ).

  2. Λf¯,g¯(D)=(β,α,γ), and

  3. Λf¯,g¯(DR)=Λf,g(D).

Proof. If an arc is labeled 1, -1, 0 respectively then reversing the labeling of the incident vertices gives a labeling of -1, 1, 0 respectively, If an arc uv is labeled 1, -1, 0 respectively, then vu would be labeled -1, 1, 0 respectively.


3. (2,3)-Cordial Digraphs

In this section, we shall use the arc labeling function g:A{0,1,1} defined by g(vivj)=g(vi,vj)=f(vj)f(vi) where f is a (0,1)-labeling of the vertices.

3.1. (2,3)-cordial labelings of orientations of small trees

We now give labelings of orientations of small trees to be used in inductive proofs later.

Let Pn be a path of order n (the number of vertices, so that there are n1 arcs in Pn). For n=1, there is only one directed graph and it is vacuously (2,3)-cordial. For n=2 the only tree is an edge graph and any orientation is the digraph of an arc, which is (2,3)-cordial if the labelings of the two vertices are different.

For n=3, every tree is a 2-path and so there are only two (non-isomorphic) orientations. We list them here with (2,3)-cordial labelings:

Figure 1: (2,3)- Cordial Labelings of Orientations of 3-Paths

For n=4 there are two undirected trees with three different (non-isomorphic) orientations of the 4-path and two non-isomorphic orientations of the star on 4 vertices. Here we give these five oriented trees with (2,3)-cordial labelings of three of them: See Figures 2 and 3.

Figure 2: (2,3)- Cordial Labelings of Three 4-Trees
Figure 3: Two 4-Trees That are not (2,3)- Cordial
3.1.1. (2,3)-Cordial Stars

Recall that for a friendly labeling f of the vertices we let g be the induced labeling of the arcs defined by g(u,v)=f(v)f(u).

Let SGn be a star graph with central vertex v and n1 pendant vertices. A natural question is: Is there an orientation of S that is (2,3)-cordial? Another is: Are all orientations of S (2,3)-cordial? The answer to the latter question is: Only if n3. The answer to the first question is more complicated, but is completely answered here.

Let n4. There are six cases to consider: n is even or odd and n is a multiple of three, one more than a multiple of three or two more than a multiple of three. Investigating these six cases, we let k and be positive integers.

Case 1. n is even, n=2k. Here there must be k1 pendant vertices labeled the same as the labeling of the central vertex v. Since n4, k2, we have that k2k1. For g to be friendly, we must have k1 arcs labeled 0, k2 arcs labeled either 1 or -1 respectively, and k2 arcs labeled -1 or 1 respectively.

Subcase a. The number of arcs is n1=3 so that n=3+1. For S to be (2,3)-cordial we must have k1=. But then 2k=n=3+1=3(k1)+1 so that k=2 and n=4.

Subcase b. The number of arcs is n1=3+1, so that n=3+2. For S to be (2,3)-cordial we must have k1=+1 or k=+2. Hence n=2k=2+4=3+2, so that, =2 , k=4 and n=8.

Subcase c. The number of arcs is n1=3+2 so that n=3+3. For S to be (2,3)-cordial we must have k1=+1 or k=+2. Thus, n=2k=2+4=3+3 so that =1 and n=6.

Thus, since any orientation of a 2-star is (2,3)-cordial, when n is even we have that n=2,4,6 or 8 only.

Case 2. n is odd, n=2k+1. Since for n=1 or 3, every orientation of a 1-star or 3-star is (2,3)-cordial, we assume that n5 and thus k2k1. Hence there are k1 pendant vertices labeled the same as the labeling of the central vertex v. So there are k1 arcs labeled 0.

Subcase a. The number of arcs is n1=3 so that n=3+1. For S to be (2,3)-cordial we must have k1= so that k=+1 and hence 3+1=n=2k+1=2+3 and hence =2 and n=7.

Subcase b. The number of arcs is n1=3+1 so that n=3+2. For S to be (2,3)-cordial we must have k1= or k=+1 and k2= so that n=5; or k1=+1 and k=+2, so that n=11.

Subcase c. The number of arcs is n1=3+2 so that n=3+3. For S to be (2,3)-cordial we must have k1=+1 so k=+2. Thus, 3+3=n=2k+1=2+5. Hence l=2 and n=9.

Thus, when n is odd, we have that n=1,3,5,7,9 or 11 only.

The above analysis establishes:

Lemma 2. A star graph has a (2,3)-cordial orientation if and only if n11 and n10.

3.1.2. (2,3)-Cordiality of Directed Cycles and Paths

Theorem 1. Let f be a (0,1)-friendly labeling of DTn and g the induced (1,0,1)-labeling of the arcs of D. Then,

  1. If D is a directed k-cycle for k3, then D is (2,3)-cordial.

  2. If D is any directed path in Dn, then D is (2,3)-cordial.

  3. If n4 and D is an out-star or an in-star then D is not (2,3)-cordial.

Proof. The labeling of an n-cycle is shown in Figure 4, where k=2 and n=3k=6. The vertex labeling is outside the cycle and the induced edge labeling is inside the cycle. By deleting 1,2,,5 vertices, carefully chosen, one obtains a (2,3)-cordial labeling of a cycle of any length. By deleting one edge, carefully chosen, one obtains a (2,3)-cordial labeling of any directed path. Thus, conclusions 1 and 2 are proven.

If D is an out-star with central vertex v, then, if the vertex v is labeled “0”, all arcs are labeled either “0” or “-1”, while if the vertex v is labeled “1”, all arcs are labeled either “0” or “1” Thus, no labeling is (2,3)-cordial. A parallel argument holds for an in-star.


Figure 4: (2,3)- Cordial Labelings of a Cycle

It is easily shown, even though time consuming, that both of the non-isomorphic tournaments on 3 vertices are (2,3)-cordial while only three of the four non-isomorphic tournaments on four vertices are cordial; the 4-tournament with score vector (1,1,1,3) is not (2,3)-cordial.

Conjecture 1. Given any tree TGn with Δ(T)3 there is an orientation of T that is (2,3)-cordial.

Paths

Lemma 3. For n9, every orientation of any path on n vertices is (2,3)-cordial, except when n=4 and the orientation is one of those listed in Figure 5.

Proof. For n=1 or n=2 the lemma is trivially established. For n=3 the two orientations in Figure 1 (and consequently their reversals) are shown to be (2,3)-cordial.

For n=4, the four orientations of the 4-path that are not in Figure 5 are shown to be (2,3)-cordial in Figure 6.

For n=5,6, and 7, see the appendices, There is a (2,3)-cordial labeling of each orientation of the paths of length 5, 6, and 7.

For n=8, append a vertex to the end of each orientation of the path on 7 vertices and obtain two orientations of the 8-path, one with v7v8 and the other with v7v8. By labeling vertex v8 with 0 if there are fewer vertices in the labeling of the orientation of P7 labeled 0 than 1 and labeling vertex v8 a 1 otherwise we get a (2,3)-cordial labeling. Thus, we get a (2,3)cordial labeling of all 128 orientations of P8.

For n=9, append a vertex to the end of each orientation of the path on 8 vertices and obtain two orientations of the 9-path, one with v8v9 and the other with v8v9. By choosing appropriately the label of v9 one gets a (2,3)-cordial labeling. This gives a (2,3)-cordial labeling of all 256 orientations of P9.


Note that in the sequel, only vertex labelings are given as the arc labels are implicit. For example in Figures 5 and 6 we give the 4-paths that are (2,3)-cordial and the 4-paths that are not (2,3)-cordial.

0110

0110

1001

1001

Figure 5: Labeled Orientation of the 4-Path that are (2,3)-Cordial

,

Figure 6: Orientation of the 4-Path that are not (2,3)-Cordial

Conjecture 2. Let P be a path in Gn of length n5. Then every orientation of P is (2,3)-cordial.

The author wishes to thank the referee for his valuable suggestions.

References:

  1. Cahit, I. (1987). Cordial graphs-a weaker version of graceful and harmonious graphs. Ars combinatoria, 23, 201-207.

  2. Hovey, M. (1991). A-cordial graphs. Discrete Mathematics, 93(2-3), 183-194.

  3. Salehi, E., 2010. PC-labeling of a graph and its PC-set. Bull. Inst. Combin. Appl, 58, pp.112-121.

APPENDIX: Orientations of Paths of Lengths 5, 6 and 7

01100

01100

01001

01100

01110

01100

01101

01001

10010

10010

10011

10001

10011

10001

10011

10011

Figure 7: Orientation of the 5-Path

011001

011001

100110

100110

011001

011001

100110

100110

010011

010110

100110

101100

001011

010011

110010

100110

Figure 8: Orientation of the 6-Path

011001

011001

100110

100110

011001

011001

100110

100110

010011

010111

100110

101101

001011

010011

110010

100110

0110010

0110010

0110010

0110010

0110010

0110010

0110010

0110010

0110100

0110100

0110100

0110100

0110110

0110110

0110110

0110110

0100110

0101100

0100110

0010110

0110110

0100110

1000101

1000101

0101110

0011010

0011010

0110010

0110100

0101100

1001101

1001101

0010110

0110110

0010110

0110110

0110100

0110100

0101100

0110100

0110010

0110010

0110010

0110010

0110010

0110010

0110010

0110010

0100110

0010110

0110100

0110100

0110010

0100110

0101110

0101100

0011010

0111010

0110110

0110110

0100110

0010110

0011010

0101100

Figure 9: Orientation of the 7-Path