On
2
2
- Cordial Graphs
S. Beena
Associate Professor, Department of Mathematics, NSS College, Nilamel, Kollam, Kerala, India
Abstract
For any abelian group
A
, a graph G is said to be A - cordial if there is a labeling f of V(G) with elements of A so that for all a,bA , the edge ab is labeled with f(a) f(b)then the number of vertices labeled with a and the vertices labeled with b differ by at most 1and the number of edges labeled with a and edges labeled with b differ by at most 1. In this paper we determine some classes of 22 cordial graphs, anecessary condition for the sum of two 22- cordial graphs to be 22- cordial and we prove that every
graph is an induced sub graph of 22- cordial graph.
Key words - A- Cordial labeling, Abelian group.
I. INTRODUCTION
Mark Hovey [1] has introduced A – cordial labeling as a generalization of harmonious and cordial labeling. It is well known that 2
0,1 is the residue classes modulo 2, where 0 denote the set of all even integers and 1 denote the set of all odd integers and consequently 22
0,0,1,0, 0,1,1,1
is an abeliangroup. Without loss of generality, we may assume thate
0,0,a
1
,
0
,
b
0
,
1
,
c
1
,
1
. Thenb
c
a
c
b
a
,
andb
c
a
. In this paper we determine some classes of 22cordial graphs and a necessary condition for sum of two 22- cordial graphs to be 22- cordial. Also we prove that every graph is an induced subgraph of 22- cordial graph.Definition 1. For any abelian group
A
, a graphG
V
,
E
is said to beA
- cordial , if there is a labelingf
of
V
with elements ofA
so that for alla
,
b
A
, the edgeab
is labeled withf
(
a
)
f
(
b
)
thenv
f(
a
)
and)
(
b
v
f differ by at most 1 ande
f(
a
)
ande
f(
b
)
differ by at most 1, wherev
f(
a
)
ande
f(
b
)
are respectively the number of vertices labeled witha
and the number of edges labeled withb
.
II. MAIN RESULTS
Theorem 2: The cycle C is n 22- cordial for all n except n4,5and n2(mod4).
Proof: Let V
Cn
vi:1in
be the set of all vertices ofC
n, and E
Cn
ei vivi1:1in1
be theset of all edges
of C . Define n f :V
Cn 22 as follows: Case(i) If n0,1,3,7(mod8): Label the vertices of Cn ase v
f( i) , if i4k,4k1 where
k
is odd, f(vi)a, if i1,8k,8k1 wherek
is an integer, f(vi)b, if )4 (mod 2
i and f(vi)c, if i3(mod4).
Case(ii) If n4 or 5(mod8)where n4,5: Label the vertices of Cn as f(vi)e if i4,5,8,8k,8k1 where k1is an integer, f(vi)a, if i1,7,4k,4k1 where k1is odd, f(vi)b if i2,9,2k where
3
k is odd, f(vi)c, if i3,6,4k3 where k1is an integer. Table 1 shows the values of vf(x)for all
2 2
x and Table 2 shows the values of ef(x)for all x22. Alsovf(i)vf(j) 1and 1
) ( )
(i e j
ef f for all i,j22. HenceCnis 22- cordial for all
n
except n4,5and )4 (mod 2
Table 1. Labelings of the vertices of Cn
Table 2. Labelings of the edges of Cn
Theorem3. The complete bipartite graph Km,nwhere mn is 22- cordial for all
m
andn
except )4 (mod 2 &n
m .
Proof: Let V1
ui:1im
and V2
vj :1 jn
be the set vertices of Km,n and
e uv i m j n
K
E( m,n) i i j:1 ,1 be the set of all edges of Km,n. Define f :V(Km,n)22 as follows: f(ui)e if i1(mod4), f(ui)a if i2(mod4), f(ui)b if i 3(mod4)
,
f(ui)c if) 4 (mod 0
i .
Case(i) If m0,1,2(mod4) 𝑁𝑜𝑡𝑒 𝑡ℎ𝑎𝑡 𝑖𝑓 m2(mod4), 𝑐ℎ𝑜𝑜𝑠𝑒
n
𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡n
≢ 2(𝑚𝑜𝑑4) , definee v
f( i) if ) 4 (mod 0
i , f(vi)a if i3(mod4),f(vi)b if i1(mod4),f(vi)c if i2(mod4).
If m4r,Table 3 and 4 shows the values of vf(x) and ef(x)for all x22.
Table 3. Labelings of the vertices of Km,n
.
Table 4. Labelings of the edges of Km,n
If m4r1Table 5 and 6 shows the values of vf(x) and ef(x)for all x22.
i r
n8 vf(e) vf(a) vf(b) vf(c)
0
i 2𝑟 2𝑟 2𝑟 2𝑟
1
i 2𝑟 2𝑟 + 1 2𝑟 2𝑟
3
i 2𝑟 2𝑟 + 1 2𝑟 + 1 2𝑟 + 1
4
i 2𝑟 + 1 2𝑟 + 1 2𝑟 + 1 2𝑟 + 1
5
i 2𝑟 + 1 2𝑟 + 2 2𝑟 + 1 2𝑟 + 1
7
i 2𝑟 + 2 2𝑟 + 1 2𝑟 + 2 2𝑟 + 2
i r
n8 ef(e) ef(a) ef(b) ef(c)
0
i 2𝑟 2𝑟 2𝑟 2𝑟
1
i 2r+1 2𝑟 2𝑟 2𝑟
3
i 2𝑟 2𝑟 + 1 2𝑟 + 1 2𝑟 + 1
4
i 2𝑟 + 1 2𝑟 + 1 2𝑟 + 1 2𝑟 + 1
5
i 2𝑟 + 2 2𝑟 + 1 2𝑟 + 1 2𝑟 + 1
7
i 2𝑟 + 1 2𝑟 + 2 2𝑟 + 2 2𝑟 + 2
i k
n4 vf(e) vf(a) vf(b) vf(c)
0
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 𝑟 + 𝑘 𝑟 + 𝑘
1
i 𝑟 + 𝑘 𝑟 + 𝑘 𝑟 + 𝑘 + 1 𝑟 + 𝑘
2
i 𝑟 + 𝑘 𝑟 + 𝑘 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
3
i 𝑟 + 𝑘 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
i k
n4 ef(e) ef(a) ef(b) ef(c)
0
i nr nr nr nr
1
i nr nr nr nr
2
i nr nr nr nr
3
i nr nr nr nr
i k
n4 vf(e) vf(a) vf(b) vf(c)
0
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 𝑟 + 𝑘 𝑟 + 𝑘
1
Table5. Labelings of the vertices of Km,n
Table 6. Labelings of the edges of Km,n
If m4r2Table 7 and 8 shows the values of vf(x) and ef(x)for all x22.
Table7. Labelings of the vertices of Km,n
Table8. Labelings of the edges of Km,n
If m4r3Table 9 and 10 shows the values of vf(x) and ef(x)for all x22.
Table 9. Labelings of the vertices of Km,n
Table 10. Labelings of the edges of Km,n
Case(ii) If m3(mod4), define f(vi)e if i2(mod4), f(vi)a if i3(mod4),f(vi)b if )
4 (mod 0
i ,
c v
f( i) if i1(mod4).
If m4r3Table 11 and 12 shows the values of vf(x) and ef(x)for all x22 2
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
3
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
i k
n4 ef(e) ef(a) ef(b) ef(c)
0
i 𝑚𝑘 𝑚𝑘 𝑚𝑘 𝑚𝑘
1
i 𝑚𝑘 + 𝑟 𝑚𝑘 + 𝑟 𝑚𝑘 + 𝑟 + 1 𝑚𝑘 + 𝑟
2
i 𝑚𝑘 + 2𝑟 𝑚𝑘 + 2𝑟 𝑚𝑘 + 2𝑟 + 1 𝑚𝑘 + 2𝑟 + 1
3
i 𝑚𝑘 + 3𝑟 𝑚𝑘 + 3𝑟 + 1 𝑚𝑘 + 3𝑟 + 1 𝑚𝑘 + 3𝑟 + 1
i k
n4 vf(e) vf(a) vf(b) vf(c)
0
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 𝑟 + 𝑘
1
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘
3
i 𝑟 + 𝑘 𝑟 + 𝑘 + 1 𝑟 + 𝑘 𝑟 + 𝑘 + 1
i k
n4 ef(e) ef(a) ef(b) ef(c)
0
i 𝑚𝑘 𝑚𝑘 𝑚𝑘 𝑚𝑘
1
i 𝑚𝑘 + 𝑟 𝑚𝑘 + 𝑟 𝑚𝑘 + 𝑟 + 1 𝑚𝑘 + 𝑟 + 1
3
i 𝑚𝑘 + 3𝑟 + 1 𝑚𝑘 + 3𝑟 + 1 𝑚𝑘 + 3𝑟 + 2 𝑚𝑘 + 3𝑟 + 2
i k
n4 vf(e) vf(a) vf(b) vf(c)
0
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 1
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
2
i 𝑟 + 𝑘 + 2 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
3
i 𝑟 + 𝑘 + 2 𝑟 + 𝑘 + 2 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
i k
n4 ef(e) ef(a) ef(b) ef(c)
0
i 𝑚𝑘 𝑚𝑘 𝑚𝑘 𝑚𝑘
1
i 𝑚𝑘 + 𝑟 𝑚𝑘 + 𝑟 + 1 𝑚𝑘 + 𝑟 + 1 𝑚𝑘 + 𝑟 + 1
2
i 𝑚𝑘 + 2𝑟 + 1 𝑚𝑘 + 2𝑟 + 2 𝑚𝑘 + 2𝑟 + 2 𝑚𝑘 + 2𝑟 + 1
3
i 𝑚𝑘 + 3𝑟 + 2 𝑚𝑘 + 3𝑟 + 3 𝑚𝑘 + 3𝑟 + 2 𝑚𝑘 + 3𝑟 + 2
i k
n4 vf(e) vf(a) vf(b) vf(c)
0
i 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘
1
Table 11. Labelings of the vertices of Km,n
Table 12. Labelings of the edges of Km,n
In all cases, vf(i)vf(j) 1and ef(i)ef(j) 1 for all i,j22. Hence the complete bipartite graph
n m
K , where
m
n
is 22- cordial for all m and nexceptm&n2(mod4).Remark: 22- cordiality of
K
m,n IS found in [2] . However, the proof is different from ours.Theorem 4. Let Giare (pi,qi)22- cordial labeled graph under fi for i1,2respectively. Then G1G2 is 22- cordial if (i) either p1 or p2 0(mod4)and (ii) either q1 or q2 0(mod4).
Proof: Case (i) Let p10(mod4)and q10(mod4). Then
4 ) ( 1 1 p i
vf ,
4 ) ( 1 1 q i
ef ie,a,b,c. Also,
1 ) ( )
( 2
2 i v j
vf f and ef2(i)ef2(j) 1 i,je,a,b,c. Let vf2(e)m1, vf2(a)m2, vf2(b)m3,
4
) (
2 c m
vf ,
(
)
12
e
n
e
f
, ef2(a)n2, ef2(b)n3, and vf2(c)m4. Define f :V(G1G2)22such that f |V(Gi) fi fori1,2. Then clearly vf(i)vf(j) 1 i,je,a,b,cand
, 4 4
)
( 1 1 2
1 p p
n q e
ef ,
4 4
)
( 2 1 2
1 p p
n q a
ef ,
4 4
)
( 3 1 2
1 p p
n q b
ef
4 4
)
( 4 1 2
1 p p
n q c
ef
.Therefore, ef(i)ef(j) ef2(i)ef2(j) 1 i,je,a,b,c.
Case(ii). Let p10(mod4)and q20(mod4). Then
4 ) ( 1 1 p i
vf , ie,a,b,candef1(i)ef1(j) 1,
c b a e j
i, , , ,
. Let ef1(e)n1, ef1(a)n2, ef1(b)n3, ef1(c)n4and vf2(i)vf2(j) 1 ,
c b a e j
i, , , ,
and ef i q i e,a,b,c
4 )
( 2
2 . Let
v
f2(
e
)
m
1,v
f2(
a
)
m
2,v
f2(
b
)
m
3and4
) (
2 c m
vf . Define f :V(G1G2)22 such that f |V(Gi) fi fori1,2.Then 1 1
4 )
(e p m
vf ,
2 1
4 )
(a p m
vf , 3
1
4 )
(b p m
vf and 4
1
4 )
(c p m
vf .Therefore, vf(i)vf(j) vf2(i)vf2(j) 1
c
b
a
e
j
i
,
,
,
,
. Now,4 4 ) ( 4 4 )
( 1 2 3 4 1 1 1 2
1 1 1 p p q n m m m m p q n e
ef . Similarly
4 4 )
( 2 1 1 2
p p q n a
ef ,
4 4 )
( 3 1 1 2
p p q n b
ef and
4 4 )
( 4 1 1 2
p p q n c
ef .Therefore,
1 ) ( ) ( ) ( ) ( 1
1
e j e i e j i
ef f f f
i
,
j
e
,
a
,
b
,
c
. In a similar manner we can consider the other two cases. Hence G1G2 is 22- cordial under f .Theorem5. Every connected graph is an induced sub graph of a 22- cordial graph.
Proof: Let Gbe a connected
(
p
,
q
)
graph with verticesv
1,
v
2,...,
v
p. If G itself is 22- cordial, there is nothing to prove. Otherwise, define f :V(G)22such that vf(i)vf(j) 1and ef(i)ef(j) c
b
a
e
j
i
,
,
,
,
where
is possibly a small positive integer. Let ef(e)m1, ef(a)m2, ef(b)m3, 2
i 𝑟 + 𝑘 + 2 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
3
i 𝑟 + 𝑘 + 2 𝑟 + 𝑘 + 2 𝑟 + 𝑘 + 1 𝑟 + 𝑘 + 1
i k
n4 ef(e) ef(a) ef(b) ef(c)
0
i 𝑚𝑘 𝑚𝑘 𝑚𝑘 𝑚𝑘
1
i 𝑚𝑘 + 𝑟 𝑚𝑘 + 𝑟 + 1 𝑚𝑘 + 𝑟 + 1 𝑚𝑘 + 𝑟 + 1
2
i 𝑚𝑘 + 2𝑟 + 1 𝑚𝑘 + 2𝑟 + 2 𝑚𝑘 + 2𝑟 + 2 𝑚𝑘 + 2𝑟 + 1
3
4
) (c m
ef . Let mmin{m1,m2,m3,m4} and M max{m1,m2,m3,m4}. Since G is not 22 cordial, we have Mm2 and p3. Let
u
be a vertex in G whose label isx
, and such thatv
f(
x
)
n
1 is the minimum. Add a new vertexv
and label it withx, thenv
f(
x
)
n
1
1
. Let Mm2. If Mm11, joinv
with a vertex in G whose label isx
, thene
f(
e
)
m
1
1
. If Mm2 1, joinv
with a vertex in Gwhose label is xa, thenef(a)m2 1 . Similarly if Mm31, joinv
with a vertex in Gwhose label isx
b
, thene
f(
b
)
m
3
1
and if if Mm4 1, joinv
with a vertex in Gwhose label isx
c
, then1
)
(
c
m
4
e
f . If Mm2, we repeat the above process with the new graph H1. Since this process reduce the difference Mm, after a finite number of steps, we get a 22- cordial graph which contains G as an induced sub graph.Notation : A (p,q)graph has
p
vertices andq
edges. For basic concepts in graph theory, we follow [3] and for graph labeling follow [4].CONCLUSION
The cycle Cnis 22- cordial for all nexcept n4,5and n2(mod4)and the complete bipartite graph Km,nwhere mn is 22- cordial for all m and nexceptm& n 2(mod4). Also if Giare
) ,
(pi qi 22- cordial labeled graph under fi for i1,2respectively then G1G2 is 22- cordial if (i) either p1 or p2 0(mod4)and (ii) either q1 or q2 0(mod4). Every connected graph is an induced sub graph of a 22- cordial graph.
ACKNOWLEDGEMENTS
The author is grateful to Dr M I Jinnah, Former Prof & Head, Department of Mathematics, University of Kerala, Thiruvananthapuram for his valuable suggestions.
REFERENCES
[1] Mark Hovey, A – cordial Graphs, Discrete mathematics 93(1991) 183 – 194, North Holland.
[2] O.Pechenik and J. Wise, Generalized graph cordialty, Discuss. Math. Graph Theory 32 (2012) 557-567. [3] WB West, Introduction to Graph Theory, (2nd Edn) Pearson Education (2001)