A -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 be a labeling of the edge set of a graph that is induced by a labeling of the vertex set. If both and are friendly then 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.
Let denote the set
of all simple undirected graphs on the vertex set . For , let denote the edge set of . 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
denote the set of all
simple directed graphs on the vertex set . 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 denote the set of all subgraphs of a tournament digraph.
Let , where is the arc set of . Then has no loops, no digons, and no
multiple arcs. An arc in directed
from vertex to vertex will be denoted
or by the ordered pair . We
also let denote the
set of all simple undirected graphs on the vertex set . So all members
of are orientations
of graphs in .
A -labeling of a finite
set, , is a mapping and is said to be
friendly if approximately one half of the members of
are labeled 0 and the
others are labeled 1, that is where denotes the cardinality of the
set . If there are an even
number of elements in ,
then a friendly labeling has the number labeled 1 equal to the number
labeled 0. More generally we define an -friendly labeling:
Definition 1. Let be a finite set. An -labeling of the set
Z is a mapping . The labeling is -friendly if for
any .
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
for any
. If the set
A is obvious from the context we just say that is friendly.
Let be an undirected
graph with vertex set and edge
set , and let be a friendly (0,1)-labeling of the
vertex set . Given this friendly
vertex labeling , an induced -labeling of the edge set is a
mapping where for an
edge for some
and is said to be cordial if is
also friendly, that is . A graph, , is called
cordial if there exists a induced cordial labeling
of the edge set of . The induced
labeling is usually
[1], (in
) [2], or
(product cordiality) [3].
In[2], Hovey introduced
-friendly labelings. A
labeling is said
to be -friendly if given any , . If
is an induced edge labeling and
and are both -friendly Then is said to be an -cordial labeling and is said to be -cordial. When we say that is -cordial. We shall use this concept with
digraphs.
Let be a directed graph
with vertex set and arc set . Let be a friendly labeling of
the vertices of . As for
undirected graphs, an induced labeling of the arc set is a mapping for some set where for an arc for some .
As we are dealing with directed graphs, it would be desirable for the
induced labeling to distinguish between the label of the arc and the label of the arc , otherwise, the labeling would be
an induced labeling of the underlying undirected graph. If we let and
, 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 -cordial. Formally:
Definition 2. Let , . Let be a friendly labeling of
the vertex set of . Let be an induced labeling
of the arcs of . If is friendly, that is, for any , .
such a labeling is called a -cordial labeling, and a
digraph that can
possess a -cordial labeling
will be called a -cordial digraph.
For any digraph with -vertex labeling , and induced -arc labeling , let
where and .
Let and let
be the digraph such that every
arc of is reversed, so that is an arc in if and only if is an arc in . Let be a -labeling of the vertices of and let so that
is a -labeling of the arcs of . Let be the complementary -labeling of the vertices of , so that if and only if . Let be the corresponding induced
arc labeling of , .
Lemma 1. Let with vertex labeling
and induced arc labeling . Let .
Then
.
,
and
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 is labeled 1, -1, 0
respectively, then would be labeled -1,
1, 0 respectively.
3. (2,3)-Cordial Digraphs
In this section, we shall use the arc labeling function defined by
where is a -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 be a path of order (the number of vertices, so that there
are arcs in ). For , there is only one directed graph and
it is vacuously (2,3)-cordial. For 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 , 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 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-TreesFigure 3: Two 4-Trees That are not (2,3)- Cordial
3.1.1. (2,3)-Cordial Stars
Recall that for a friendly labeling of the vertices we let be the induced labeling of the arcs
defined by .
Let be a star
graph with central vertex and
pendant vertices. A natural
question is: Is there an orientation of that is (2,3)-cordial? Another is: Are
all orientations of
(2,3)-cordial? The answer to the latter question is: Only if . The answer to the first question
is more complicated, but is completely answered here.
Let . There are six cases
to consider: is even or odd and
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 and be positive integers.
Case 1. is even,
. Here there
must be pendant vertices
labeled the same as the labeling of the central vertex . Since , , we have that . For
to be friendly, we must have
arcs labeled 0, arcs labeled
either 1 or -1 respectively, and arcs labeled -1
or 1 respectively.
Subcase a. The number of arcs is so that . For to be (2,3)-cordial we must have . But then so that and .
Subcase b. The number of arcs is , so that . For to be (2,3)-cordial we must have or . Hence , so that, , and .
Subcase c. The number of arcs is so that . For to be (2,3)-cordial we must have or . Thus, so that and .
Thus, since any orientation of a 2-star is -cordial, when is even we have that or only.
Case 2. is odd,
. Since for
or 3, every orientation of a
1-star or 3-star is -cordial,
we assume that and thus
.
Hence there are pendant
vertices labeled the same as the labeling of the central vertex . So there are arcs labeled 0.
Subcase a. The number of arcs is so that . For to be (2,3)-cordial we must have so that and hence and hence
and .
Subcase b. The number of arcs is so that . For to be (2,3)-cordial we must have or and so that ; or and , so that .
Subcase c. The number of arcs is so that . For to be (2,3)-cordial we must have so . Thus, . Hence and .
Thus, when is odd, we have
that or 11 only.
The above analysis establishes:
Lemma 2. A star graph has a (2,3)-cordial
orientation if and only if
and .
3.1.2. (2,3)-Cordiality of
Directed Cycles and Paths
Theorem 1. Let be a -friendly labeling of and the induced -labeling of the arcs of . Then,
If is a directed -cycle for , then is (2,3)-cordial.
If is any directed
path in , then is (2,3)-cordial.
If and is an out-star or an in-star then is not (2,3)-cordial.
Proof. The labeling of an -cycle is shown in Figure 4, where and . The vertex labeling is
outside the cycle and the induced edge labeling is inside the cycle. By
deleting vertices,
carefully chosen, one obtains a -cordial labeling of a cycle of any
length. By deleting one edge, carefully chosen, one obtains a -cordial labeling of any directed
path. Thus, conclusions 1 and 2 are proven.
If is an out-star with central
vertex , then, if the vertex is labeled “0”, all arcs are labeled
either “0” or “-1”, while if the vertex 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 with there is an orientation
of that is -cordial.
Paths
Lemma 3. For , every orientation of any path on n vertices is
(2,3)-cordial, except when and
the orientation is one of those listed in Figure 5.
Proof. For or the lemma is trivially established.
For the two orientations in
Figure 1 (and consequently their reversals) are shown to be
(2,3)-cordial.
For , the four orientations
of the 4-path that are not in Figure 5 are shown to be (2,3)-cordial in
Figure 6.
For and , see the appendices, There is a
(2,3)-cordial labeling of each orientation of the paths of length 5, 6,
and 7.
For , 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 and the other
with . By
labeling vertex with 0 if there
are fewer vertices in the labeling of the orientation of labeled 0 than 1 and labeling vertex
a 1 otherwise we get a -cordial labeling. Thus, we get a
(2,3)cordial labeling of all 128 orientations of .
For , 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 and the other
with . By
choosing appropriately the label of one gets a (2,3)-cordial labeling.
This gives a (2,3)-cordial labeling of all 256 orientations of .
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.
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 be a path in of length . Then every orientation of is (2,3)-cordial.
The author wishes to thank the referee for his valuable
suggestions.
References:
Cahit, I. (1987). Cordial graphs-a weaker version of
graceful and harmonious graphs. Ars combinatoria, 23,
201-207.
Hovey, M. (1991). A-cordial graphs. Discrete Mathematics,
93(2-3), 183-194.
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