Skip to Content
SymmetrySymmetry
  • Article
  • Open Access

3 April 2022

Prime Cordial Labeling of Generalized Petersen Graph under Some Graph Operations

,
and
1
School of Computer Science, Chengdu University, Chengdu 610100, China
2
Department of Mathematics and Statistics, Institute of Southern Punjab, Multan 59300, Pakistan
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.

Abstract

A graph is a connection of objects. These objects are often known as vertices or nodes and the connection or relation in these nodes are called arcs or edges. There are certain rules to allocate values to these vertices and edges. This allocation of values to vertices or edges is called graph labeling. Labeling is prime cordial if vertices have allocated values from 1 to the order of graph and edges have allocated values 0 or 1 on a certain pattern. That is, an edge has an allocated value of 0 if the incident vertices have a greatest common divisor ( gcd ) greater than 1. An edge has an allocated value of 1 if the incident vertices have a greatest common divisor equal to 1. The number of edges labeled with 0 or 1 are equal in numbers or, at most, have a difference of 1. In this paper, our aim is to investigate the prime cordial labeling of rotationally symmetric graphs obtained from a generalized Petersen graph P ( n , k ) under duplication operation, and we have proved that the resulting symmetric graphs are prime cordial. Moreover, we have also proved that when we glow a Petersen graph with some path graphs, then again, the resulting graph is a prime cordial graph.

1. Introduction

Graph theory started with a solution for the Königsberg bridges problem in the 18th century by Leonhard Euler. In the beginning, it was considered a recreational subject. It took almost two centuries for its development as a mathematical subject, graph theory. Graph labelings started in the 19th century, when Arthur Cayley, the renouned British mathematician, showed that there are n n 2 different labeled trees of order n [1]. This subject attracted the attention of researchers in the previous century. Many conferences were organized for graph theory in 1950–1960. These conferences concluded that graph theory is an easy way for understanding mathematics, which attracts the interest of young students. These conferences were known as “Symposium on the Theory of Graphs and Its Applications”, held in Smolenice (Czechoslovakia) in 1963 [2]. Graph theory conferences were held regularly in the 1970s. One member of the Rome conference was Alexander Rosa; a paper was presented by him [3]. This paper brought revolution in graph labeling. Four vertex labelings were mentioned by Rosa, described as α -valuations, β -valuations, σ -valuations and ρ -valuations. The β -valuation became graceful labeling in 1972 [4]. The main aim of graceful labeling was to minimize the values assigned to terminals. The number theory has an impact on graph labelings [5]. For many years, a lot of graph labelings have been introduced, which have an impact on many problems for their solution. The labeled graphs are working excellently in many mathematical models. For instance, radar codes and cyber security [6]. Prime cordial labeling is the assignment of values to vertices from 1 to order of graph and edge labeling induced from it where 0 and 1 valued to edges with respect to the greatest common divisor (gcd) of incident vertices. That is, incident vertices have a common divisor greater than 1 labeled with 0 and incident vertices have a common divisor equal to 1 labeled with 1. It was introduced by Sundaram et al. [7] and, in the same paper, they investigated several results on prime cordial. In this paper, we will investigate the generalized Petersen graph P ( n , k ) under duplication operation and glowing of P 3 with P ( n , k ) is prime cordial. All the graphs in this article are simple connected graphs and the notions and symbols are the same as those used by I. Ahmad in [8].
Definition 1.
Let P e ( n , k ) be a graph obtained by attaching a vertex to each edge of outer cycle of P ( n , k ) . Then, P e ( n , k ) has 3 n vertices with vertex set V ( P e ( n , k ) ) = { x i , y i , z i : 0 i n 1 } and 5 n edges has edge set E ( P e ( n , k ) ) = { x i x i + k , x i y i , y i y i + 1 , y i z i , y i + 1 z i : 0 i n 1 } . In Figure 1, we have depicted vertices and edges of this graph.
Figure 1. P e ( 5 , k ) ; duplication of edges by vertices.
Definition 2.
Let P v ( n , k ) o be a graph obtained by duplicating outer cycle vertices P ( n , k ) by an edge. Then, P v ( n , k ) o has 4 n vertices with vertex set V ( P v ( n , k ) o ) = { x i , y i : 0 i n 1 a n d z i : 0 i 2 n 1 } and 6 n edges with edge set;
E ( P v ( n , k ) o ) = { x i x i + k , x i y i , y i y i + 1 , y i z i , z i z i + 1 , y i z i + 1 : 0 i n 1 } . As shown in Figure 2.
Figure 2. P v ( 5 , k ) o ; outer cycle vertex duplication by an edge.
Definition 3.
Let P v ( n , k ) i be a graph obtained by edge duplication of all the vertices on the inner cycle of P ( n , k ) , that is, the duplication of vertices such as x i ’s of Figure 2 in P ( n , k ) . Then, the graph P v ( n , k ) i has 4 n vertices and 6 n edges, having vertex set V ( P v ( n , k ) i ) = { x i , z i : 0 i n 1 a n d y i : 0 i 2 n 1 } and 6 n edges with edge set;
E ( P v ( n , k ) i ) = { x i x i + k , x i y i , x i y i + 1 , y i y i + 1 , x i z i , z i z i + 1 , : 0 i n 1 , w h e r e 1 k n 2 } . As shown in Figure 3.
Figure 3. P v ( 9 , 2 ) i ; inner vertex duplication by an edge.
Definition 4.
There is path graph P 3 and a generalized Petersen graph P ( n , k ) . In glowing operation, there is a subgraph denoted as ( P 3 , P ( n , k ) ) e v . This graph has 4 n vertices and 5 n edges. These are V ( ( P 3 , P ( n , k ) ) e v ) = { u i , x i , y i , z i ; 0 i n 1 } and E ( ( P 3 , P ( n , k ) ) e v ) = { u i u i + k , u i x i , x i x i + 1 , x i y i , y i z i ; 0 i n 1 } . Represented in Figure 4.
Figure 4. ( P 3 , P ( n , k ) ) e v ; end vertex glowing of P 3 with P ( n , k ) .
Definition 5.
Let ( P 3 , P ( n , k ) ) m v be a glowing of n copies of P 3 at its middle vertex common with P ( n , k ) outer cycle. Glowing graph has 4 n vertices and 5 n edges. These are V ( ( P 3 , P ( n , k ) ) m v ) = { x i , y i ; 0 i n 1 a n d z i ; 0 i 2 n 1 } and E ( ( P 3 , P ( n , k ) ) m v ) = { x i x i + k , x i y i , y i y i + 1 , y i z i , y i z i + 1 ; 0 i n 1 } depicted in Figure 5.
Figure 5. ( P 3 , P ( 7 , 2 ) ) m v ; middle vertex glowing of P 3 with P ( 7 , 2 ) .
Definition 6.
Let V ( P v ( n , k ) p ) be graph obtained by duplication of vertices by n pendant vertices in P ( n , k ) outer cycle. There are 3 n vertices and 4 n edges with edge set E ( P v ( n , k ) p ) shown in Figure 6,
Figure 6. P v ( 7 , 3 ) p ; Outer cycle vertices duplication by pendant vertices.

2. Main Results

In this section, we shall present the main results of the article.
Theorem 1.
The graph P e ( n , k ) is prime cordial for all n 3 a n d 1 k n 2 .
Proof. 
Let us assume P ( n , k ) w h e r e n 3 a n d 1 k n 2 be generalized Petersen graph. On each outer edge, one vertex is added in such a way that duplicates edges in the outer cycle of the existing graph. There are 3 n vertices and 5 n edges having the vertex set V ( P e ( n , k ) ) = { x i , y i , z i : 0 i n 1 } and edge set E ( P e ( n , k ) ) = { x i x i + k , x i y i , y i y i + 1 , y i z i , y i + 1 z i : 0 i n 1 } . As we knew, in prime cordial labeling, we assign values to edges on the basis of the greatest common divisor of the incident vertices. In prime cordial labeling, assignment of values to vertices is a bijective function. Therefore, the values assigned to vertices are;
f ( x i ) = { 3 ( i + 1 ) : 0 i n 1 }
f ( y i ) = 2 + 3 i : 0 i n 1 w h e r e i i s e v e n ; 4 + 3 ( i 1 ) : 1 i n 1 w h e r e i i s o d d .
f ( z i ) = 1 + 3 i : 0 i n 1 w h e r e i i s e v e n ; 5 + 3 ( i 1 ) : 1 i n 1 w h e r e i i s o d d .
There are five types of edges, incident to these vertices. The edge set of P e ( n , k ) is divided into five subsets that are mentioned below;
E 1 = { x i x i + k : 0 i n 1 } , E 2 = { x i y i : 0 i n 1 } , E 3 = { y i y i + 1 : 0 i n 1 } , E 4 = { y i z i : 0 i n 1 } , E 5 = { y i + 1 z i : 0 i n 1 } .
In E 1 edge set, g c d ( f ( x i ) , f ( x i + k ) ) > 1 . Therefore, n edges are labeled with 0.
There are two cases for labeling edge set E 2 ;
Case-I: 
For even n, there are n 2 edges incident vertices has g c d ( f ( x i ) , f ( y i ) ) > 1 . Therefore, labeled with 0 and n 2 edges incident vertices has g c d ( f ( x i ) , f ( y i ) ) = 1 . Therefore, labeled with 1.
Case-II: 
For odd n, there are n 1 2 edges incident vertices has g c d ( f ( x i ) , f ( y i ) ) > 1 , are labeled with 0 and n + 1 2 edges incident vertices has g c d ( f ( x i ) , f ( y i ) ) > 1 are labeled with 1.
In edge set E 3 , n edges incident vertices has g c d ( f ( y i ) , f ( y i + 1 ) ) > 1 . Therefore, labeled with 0.
In edge set E 4 , n edges incident vertices has g c d ( f ( y i ) , f ( z i ) ) = 1 . Therefore, labeled with 1.
In edge set E 5 , n edges incident vertices has g c d ( f ( y i + 1 , f ( z i ) ) = 1 . Therefore, labeled with 1.
When n is even, there are 5 n 2 edges labeled with 0 and 1. In Figure 7, number of 0 and 1 are equal.
Figure 7. P e ( 12 , k ) ; duplication of edges by n vertices.
When n is odd, there are 5 n 1 2 edges valued 0 and 5 n + 1 2 edges valued 1, as shown in Figure 8.
Figure 8. P e ( 13 , k ) ; duplication of edges by n vertices.
Edges valued 0 and 1 are equal or supremum difference 1. Hence, the graph P e ( n , k ) , and Petersen graph edges duplication is prime cordial. □
Example 1.
The graph P e ( 12 , k ) is prime cordial for 1 k n 2 .
In Figure 7, there are 36 vertices and 60 edges. Dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Here, 30 edges are valued 0 and 1, respectively. Therefore, it is prime cordial.
Example 2.
The graph P e ( 13 , k ) is prime cordial where 1 k n 2 .
In Figure 8, there are 39 vertices with 65 edges. Dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Here are 33 edges valued 1 and 32 edges valued 0. This P e ( 13 , k ) has supremum difference 1 in edge labeling. Therefore, it is prime cordial.
Theorem 2.
The graph P v ( n , k ) o is prime cordial for all n 3 a n d 1 k n 2 .
Proof. 
Let us assume that P ( n , k ) has n edges attached to each outer cycle vertex. Therefore, outer cycle vertices have duplication. There are 4 n vertices with vertex set V ( P v ( n , k ) o ) = { x i , y i : 0 i n 1 a n d z i : 0 i 2 n 1 } and these vertices are labeled as
f ( x i ) = 4 ( i + 1 ) : 0 i n 1 ; f ( y i ) = 4 i + 2 : 0 i n 1 ; f ( z i ) = 2 i + 1 : 0 i 2 n 1 .
There are 6 n edges, E ( P v ( n , k ) o ) = { x i x i + k , x i y i , y i y i + 1 , y i z i , z i z i + 1 , y i z i + 1 : 0 i n 1 } .
These edges are further described as;
E 1 = { x i x i + k : 0 i n 1 } , E 2 = { x i y i : 0 i n 1 } , E 3 = { y i y i + 1 : 0 i n 1 } , E 4 = { y i z i : 0 i n 1 } , E 5 = { z i z i + 1 : 0 i n 1 } , E 6 = { y i z i + 1 : 0 i n 1 } .
In the E 1 edge set, there is g c d ( f ( x i ) , f ( x i + k ) ) > 1 ; therefore, n edges are labeled with 0. In the E 2 edge set, there is g c d ( f ( x i ) , f ( y i ) ) > 1 ; therefore, n edges are labeled with 0. In the E 3 edge set, there is g c d ( f ( y i ) , f ( y i + 1 ) ) > 1 ; therefore, n edges are labeled with 0. In the E 4 edge set, there is g c d ( f ( y i ) , f ( z i ) ) = 1 ; therefore, n edges are labeled with 1. In the E 5 edge set, there is g c d ( f ( z i ) , f ( z i + 1 ) ) = 1 ; therefore, n edges are labeled with 1. In the E 6 edge set, there is g c d ( f ( y i ) , f ( z i + 1 ) ) = 1 ; therefore, n edges are labeled with 1. Hence, 3 n edges are valued 0 and 1 as depicted in Figure 9 and Figure 10; thus, P v ( n , k ) o is prime cordial. □
Figure 9. P v ( 12 , k ) o ; duplication of outer cycle vertices by 12 edges is prime cordial.
Figure 10. P v ( 13 , k ) o ; duplication of outer cycle vertices is prime cordial.
Example 3.
Figure 9 represents the prime cordial labeling of P v ( 12 , k ) o . The graph P v ( 12 , k ) o has 48 vertices and 72 edges. Dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Here are 36 edges labeled with 1 and 36 edges labeled with 0. Hence, it is prime cordial.
Example 4.
Figure 10 represents the prime cordial labeling of P v ( 13 , k ) o . The graph P v ( 13 , k ) o has 52 vertices and 78 edges. Dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Here are 39 edges labeled with 1 and 39 edges labeled with 0. Hence, it is prime cordial.
Theorem 3.
The graph P v ( n , k ) i is prime cordial for all n 3 a n d 1 k n 2 .
Proof. 
Let us assume n e d g e s attached to generalized Petersen graph P ( n , k ) inner cycle vertices. This graph is denoted as P v ( n , k ) i . This graph P v ( n , k ) i has 4 n vertices, V ( P v ( n , k ) i ) = { x i , z i : 0 i n 1 a n d y i : 0 i 2 n 1 } are labeled as;
f ( x i ) = { 4 i + 2 : 0 i n 1 } ; f ( y i ) = { 2 i + 1 : 0 i 2 n 1 } ; f ( z i ) = { 4 ( i + 1 ) : 0 i n 1 } .
The edges are 6 n , E ( P v ( n , k ) i ) = { x i x i + k , x i y i , x i y i + 1 , y i y i + 1 , x i z i , z i z i + 1 ; 0 i n 1 a n d 1 k n 2 } .
These edges are further described as;
E 1 = { x i x i + k : 0 i n 1 } , E 2 = { x i y i : 0 i n 1 } , E 3 = { x i y i + 1 : 0 i n 1 } , E 4 = { y i y i + 1 : 0 i n 1 } , E 5 = { x i z i : 0 i n 1 } , E 6 = { z i z i + 1 : 0 i n 1 } .
In the E 1 edge set, we have g c d ( f ( x i ) , f ( x i + k ) ) > 1 ; therefore, n edges are labeled with 0. In the E 2 edge set, we have g c d ( f ( x i ) , f ( y i ) ) = 1 ; therefore, n edges are labeled with 1. In the E 3 edge set, we have g c d ( f ( x i ) , f ( y i ) ) = 1 ; therefore, n edges are labeled with 1. In the E 4 edge set, we have g c d ( f ( y i ) , f ( y i + 1 ) ) = 1 ; therefore, n edges are labeled with 1. In the E 5 edge set, we have g c d ( f ( x i ) , f ( z i ) ) > 1 ; therefore, n edges are labeled with 0. In the E 6 edge set, we have g c d ( f ( z i ) , f ( z i + 1 ) ) > 1 ; therefore, n edges are labeled with 0. Hence, there are 3 n edges labeled with 0 and 1, respectively, as shown in Figure 11 and Figure 12; thus, P v ( n , k ) i is prime cordial. □
Figure 11. P v ( 8 , k ) i ; inner vertex duplication by an edge.
Figure 12. P v ( 9 , k ) i ; inner vertex duplication by an edge.
Example 5.
The graph P v ( 8 , k ) i is prime cordial for 1 k n 2 . The graph in Figure 11 has 32 vertices and 48 edges. Dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Here are 24 edges labeled with 1 and 24 edges labeled with 0. Hence, this is a prime cordial.
Example 6.
The graph P v ( 9 , k ) i is prime cordial for 1 k n 2 . The graph represented in Figure 12 has 36 vertices and 54 edges. Dark lines indicate edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Here are 27 edges labeled with 1 and 0, respectively. Hence, P v ( 9 , k ) i is a prime cordial.
Theorem 4.
The graph ( P 3 , P ( n , k ) ) e v is prime cordial for all n 3 and 1 k n 2 .
Proof. 
Let P 3 and P ( n , k ) be two graphs. End vertex glowing of n copies of P 3 with outer cycle of P ( n , k ) , denoted as ( P 3 , P ( n , k ) ) e v . The end vertex glowing graph ( P 3 , P ( n , k ) ) e v has 4 n vertices and 5 n edges. The vertices are { u i , x i , y i , z i ; 0 i n 1 } . The edges are,
E 1 = { u i u i + k ; 0 i n 1 a n d 1 k n 2 } , E 2 = { u i x i ; 0 i n 1 } , E 3 = { x i x i + 1 ; 0 i n 1 } , E 4 = { x i y i ; 0 i n 1 } , E 5 = { y i z i ; 0 i n 1 } .
Because we knew that values assignment to vertices is a bijective function. Therefore, we have,
For all n greater or equal to 3
f ( u i ) = { 4 ( i + 1 ) ; 0 i n 1 }
Now, we will have different cases for assignment of values to the vertices x i , y i and z i .
Case 1: for n = 3
f ( x 0 ) = 3 , f ( x 1 ) = 6 , f ( x 2 ) = 9
f ( y 0 ) = 1 , f ( y 1 ) = 5 , f ( y 2 ) = 10
f ( z 0 ) = 2 , f ( z 1 ) = 7 , f ( z 2 ) = 11
Edge labeling is induced from vertex labeling; therefore, valuation of edges differs by 1. Depicted in Figure 13, dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Hence, it is prime cordial.
Figure 13. End vertex glowing of P 3 with P ( 3 , k ) and P ( 4 , k ) is prime cordial.
Case 2: for n = 4
f ( x 0 ) = 3 , f ( x 1 ) = 6 , f ( x 2 ) = 9 , f ( x 3 ) = 15
f ( y 0 ) = 1 , f ( y 1 ) = 5 , f ( y 2 ) = 10 , f ( y 3 ) = 13
f ( z 0 ) = 2 , f ( z 1 ) = 7 , f ( z 2 ) = 11 , f ( z 3 ) = 14
Edge labeling is induced function; therefore, edges are equally labeled with 0 and 1. In Figure 13, dark lines indicate that edge is labeled with 1 and dotted line indicates that edge is labeled with 0. Hence, ( P 3 , P ( 4 , k ) ) e v , 1 k n 2 is prime cordial.
Case 3: for n 0 ( m o d 12 )
f ( x i ) = 2 : i = 0 ; 4 i + 3 : 1 i n 4 ; 4 i + 2 : n 4 < i n 1 .
f ( y i ) = 4 i + 1 : 0 i n 1 .
f ( z i ) = 3 : i = 0 ; 4 i + 2 : 1 i n 4 ; 4 i + 3 : n 4 < i n 1 .
Edge labeling is induced function; therefore, 5 n 2 edges are equally valued 0 and 1. That is clear from Figure 14, where dark lines indicate that edges are labeled with 1 and dotted line indicate that edges are labeled with 0. This graph is prime cordial.
Figure 14. ( P 3 , P ( 12 , k ) ) e v ; end vertex glowing of P 3 with P ( 12 , k ) .
Case 4: for n 4 ( m o d 12 )
f ( x i ) = 1 : i = 0 ; 4 i + 3 : 1 i [ n 4 ] 1 ; 4 i + 2 : [ n 4 ] 1 < i n 1 .
f ( y i ) = 2 : i = 0 ; 4 i + 1 : 1 i n 1 .
f ( z i ) = 3 : i = 0 ; 4 i + 2 : 1 i n 4 1 ; 4 i + 3 : n 4 1 < i n 1 .
Since edge labeling is induced function, then e f ( 0 ) = 5 n 2 and e f ( 1 ) = 5 n 2 . The valued edges are equal, depicted in Figure 15.
Figure 15. ( P 3 , P ( 16 , k ) ) e v ; end vertex P 3 glowing with P(16,k) is prime cordial.
Case 5: for n 6 , 7 ( m o d 12 )
f ( x i ) = 2 : i = 0 ; 4 i + 3 : 1 i n 4 ; 4 i + 2 : n 4 < i n 1 .
f ( y i ) = 4 i + 1 : 0 i n 1 .
f ( z i ) = 3 : i = 0 ; 4 i + 2 : 1 i n 4 ; 4 i + 3 : n 4 < i n 1 .
Since edge labeling is induced function, then for even n, e f ( 0 ) = 5 n 2 and e f ( 1 ) = 5 n 2 . In addition, for odd n, e f ( 0 ) = 5 n 1 2 and e f ( 1 ) = 5 n + 1 2 . That is prime cordial, depicted in Figure 16.
Figure 16. ( P 3 , P ( 7 , k ) ) e v ; end vertex P 3 glowing with P(7,k) is prime cordial.
Case 6: for n 1 , 2 , 3 , 5 , 9 , 10 , 11 ( m o d 12 )
f ( x i ) = 1 : i = 0 ; 4 i + 3 : 1 i n 4 1 ; 4 i + 2 : n 4 1 < i n 1 .
f ( y i ) = 2 : i = 0 ; 4 i + 1 : 1 i n 1 .
f ( z i ) = 3 : i = 0 ; 4 i + 2 : 1 i n 4 1 ; 4 i + 3 : n 4 1 < i n 1 .
Since edge labeling is induced function, then for even n, labeled edges have equal 0 and 1. In addition, for odd, labeled edges with 0 and 1 only have a difference of 1. Hence, the graph is prime cordial. There are Figure 17 and Figure 18,
Figure 17. ( P 3 , P ( 9 , k ) ) e v ; end vertex P 3 glowing with P(9,k) is prime cordial.
Figure 18. ( P 3 , P ( 11 , k ) ) e v ; end vertex P 3 glowing with P(11,k) is prime cordial.
Case 7: for n 8 ( m o d 12 )
f ( x i ) = 4 i + 3 : 0 i n 4 ; 4 i + 2 : n 4 < i n 1 .
f ( y i ) = 4 i + 1 : 0 i n 1 .
f ( z i ) = 4 i + 2 : 0 i n 4 ; 4 i + 3 : n 4 < i n 1 .
Since edge labeling is induced function, 5 n 2 edges are valued 0 and 1, respectively. That is clear from Figure 19, where dark lines indicate that edges are labeled with 1 and dotted line indicates that edges are labeled with 0. This graph is prime cordial.
Figure 19. ( P 3 , P ( 8 , k ) ) e v ; end vertex glowing of P 3 with P ( 8 , k ) .
Hence, ( P 3 , P ( n , k ) ) e v f o r n 3 a n d 1 k n 2 is prime cordial. □
Theorem 5.
The graph ( P 3 , P ( n , k ) ) m v is prime cordial for all n 3 and 1 k n 2 .
Proof. 
Let us assume P 3 and P ( n , k ) are path graph and generalized Petersen graph, respectively. P 3 has middle vertex glowing with P ( n , k ) outer cycle n vertices, denoted as ( P 3 , P ( n , k ) ) m v . The middle vertex glowing graph ( P 3 , P ( n , k ) ) m v has 4 n vertices and 5 n edges. The vertices are { x i , y i ; 0 i n 1 a n d z i ; 0 i 2 n 1 } .
The edges are as following,
E 1 = { x i x i + k ; 0 i n 1 a n d 1 k n 2 } , E 2 = { x i y i ; 0 i n 1 } , E 3 = { y i y i + 1 ; 0 i n 1 } , E 4 = { y i z i ; 0 i n 1 } , E 5 = { y i z i + 1 ; 0 i n 1 } .
For prime cordial labeling, we assign values to vertices from 1 to order of graph and edge labeling induced from it. Therefore, we assign values to vertices as given below;
f ( x i ) = { 4 ( i + 1 ) ; 0 i n 1 }
Now, we will have different cases for assignment of values to the vertices y i and z i .
Case 1: for n = 3
f ( y 0 ) = 3 , f ( y 1 ) = 6 , f ( y 2 ) = 9
f ( z 0 ) = 1 , f ( z 1 ) = 2 , f ( z 2 ) = 5 , f ( z 3 ) = 7 , f ( z 4 ) = 10 , f ( z 5 ) = 11 .
Since edge labeling is induced function, valued edges have supremum difference 1, as shown in Figure 20. Hence, ( P 3 , P ( 3 , k ) ) m v 1 k n 2 is prime cordial.
Figure 20. Middle vertex glowing of three copies of P 3 with P ( 3 , k ) and P ( 4 , k ) is prime cordial.
Case 2: for n = 4
f ( y 0 ) = 3 , f ( y 1 ) = 6 , f ( y 2 ) = 9 , f ( y 3 ) = 15
f ( z 0 ) = 1 , f ( z 1 ) = 2 , f ( z 2 ) = 5 , f ( z 3 ) = 7 , f ( z 4 ) = 10 , f ( z 5 ) = 11 , f ( z 6 ) = 13 , f ( z 7 ) = 14 .
Since edge labeling is induced function, valued edges are equally labeled with 0 and 1. As shown in Figure 20, dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. Hence, ( P 3 , P ( 4 , k ) ) m v 1 k n 2 is prime cordial.
Case 3: for n 0 ( m o d 12 )
f ( y i ) = 2 : i = 0 ; 4 i + 3 : 1 i n 4 ; 4 i + 2 : n 4 < i n 1 .
f ( z i ) = 2 i + 1 : 0 i 2 n 1 a n d i i s e v e n ; 3 : i = 1 ; 2 i : 3 i [ n 2 ] + 1 a n d i i s o d d ; 2 i + 1 : [ n 2 ] + 1 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function, 5 n 2 edges are valued 0 and 1 equally as shown in Figure 21. The graph is prime cordial.
Figure 21. ( P 3 , P ( 12 , k ) ) m v ; middle vertex P 3 glowing with P(12,k) is prime cordial.
Case 4: for n 1 ( m o d 12 )
f ( y i ) = 1 : i = 0 ; 4 i + 3 : 1 i n 4 1 ; 4 i + 2 : n 4 1 < i n 1 .
f ( z i ) = 2 : i = 0 ; 3 : i = 1 ; 2 i + 1 : 2 i 2 n 1 a n d i i s e v e n ; 2 i : 3 i n 2 a n d i i s o d d ; 2 i + 1 : n 2 + 1 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function, 5 n 1 2 edges are valued 0 and 5 n + 1 2 edges are valued 1. The edges labeled with 0 and 1 have maximum difference of 1. The graph is prime cordial.
Case 5: for n 2 ( m o d 12 )
f ( y i ) = 1 : i = 0 ; 4 i + 3 : 1 i [ n 4 ] 1 ; 4 i + 2 : [ n 4 ] 1 < i n 1 .
f ( z i ) = 2 : i = 0 ; 3 : i = 1 ; 2 i + 1 : 2 i 2 n 1 a n d i i s e v e n ; 2 i : 3 i [ n 2 ] 2 a n d i i s o d d ; 2 i + 1 : [ n 2 ] 2 < i 2 n 1 a n d i i s o d d .
From it, there are 5 n 2 edges labeled with 0 and 1 equally. The graph is prime cordial.
Case 6: for n 3 ( m o d 12 )
f ( y i ) = 1 : i = 0 ; 4 i + 3 : 1 i [ n 4 ] 1 ; 4 i + 2 : [ n 4 ] 1 < i n 1 .
f ( z i ) = 2 : i = 0 ; 3 : i = 1 ; 2 i + 1 : 2 i 2 n 1 a n d i i s e v e n ; 2 i : 3 i n 2 2 a n d i i s o d d ; 2 i + 1 : n 2 2 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function, 5 n + 1 2 edges are valued 0 and 5 n 1 2 are valued 1. Edges labeled with maximum 1 difference.
Case 7: for n 4 ( m o d 12 )
f ( y i ) = 1 : i = 0 ; 4 i + 3 : 1 i [ n 4 ] 1 ; 4 i + 2 : [ n 4 ] 1 < i n 1 .
f ( z i ) = 2 : i = 0 ; 3 : i = 1 ; 2 i + 1 : 2 i 2 n 1 a n d i i s e v e n ; 2 i : 3 i [ n 2 ] 1 a n d i i s o d d ; 2 i + 1 : [ n 2 ] 1 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function, 5 n 2 edges are valued 0 and 1, respectively. The graph is prime cordial.
Case 8: for n 5 , 9 ( m o d 12 )
f ( y i ) = 1 : i = 0 ; 4 i + 3 : 1 i n 4 1 ; 4 i + 2 : n 4 1 < i n 1 .
f ( z i ) = 2 : i = 0 ; 3 : i = 1 ; 2 i + 1 : 2 i 2 n 1 a n d i i s e v e n ; 2 i : 3 i n 2 1 a n d i i s o d d ; 2 i + 1 : n 2 1 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function, 5 n 1 2 labeled with 0 and 5 n + 1 2 labeled with 1. That is, | e f ( 0 ) e f ( 1 ) | = 1 . As shown in Figure 22, dark lines indicate that edges are labeled with 1 and dotted lines indicate that edges are labeled with 0. The graph is prime cordial.
Figure 22. ( P 3 , P ( 9 , k ) ) m v ; middle vertex P 3 glowing with P(9,k) is prime cordial.
Case 9: for n 6 , 10 ( m o d 12 )
f ( y i ) = 1 : i = 0 ; 4 i + 3 : 1 i n 4 1 ; 4 i + 2 : n 4 1 < i n 1 .
f ( z i ) = 2 : i = 0 ; 3 : i = 1 ; 2 i + 1 : 2 i 2 n 1 a n d i i s e v e n ; 2 i : 3 i n 2 a n d i i s o d d ; 2 i + 1 : n 2 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function. Hence, 5 n 2 edges are labeled by 0 and 1 equally, as shown in Figure 23. The graph is prime cordial.
Figure 23. ( P 3 , P ( 10 , k ) ) m v ; middle vertex P 3 glowing with P(10,k) is prime cordial.
Case 10: for n 7 ( m o d 12 )
f ( y i ) = 2 : i = 0 ; 4 i + 3 : 1 i n 4 ; 4 i + 2 : n 4 < i n 1 .
f ( z i ) = 2 i + 1 : 0 i 2 n 1 w h e r e i i s e v e n ; 3 : i = 1 ; 2 i : 3 i n 2 a n d i i s o d d ; 2 i + 1 : n 2 < i 2 n 1 w h e r e i i s o d d .
Since edge labeling is induced function, then e f ( 0 ) = 5 n + 1 2 and e f ( 1 ) = 5 n 1 2 , represented in Figure 24. This is prime cordial.
Figure 24. ( P 3 , P ( 7 , k ) ) m v ; middle vertex P 3 glowing with P(7,k) is prime cordial.
Case 11: for n 8 ( m o d 12 )
f ( y i ) = 4 i + 3 : 0 i n 4 ; 4 i + 2 : n 4 < i n 1 .
f ( z i ) = 2 i + 1 : 0 i 2 n 1 a n d i i s e v e n ; 2 : i = 1 ; 2 i : 3 i [ n 2 ] 1 a n d i i s o d d ; 2 i + 1 : [ n 2 ] 1 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function, then 5 n 2 is equally valued with 0 and 1, as depicted in Figure 25. It is prime cordial.
Figure 25. ( P 3 , P ( 8 , k ) ) m v ; middle vertex P 3 glowing with P(8,k) is prime cordial.
Case 12: for n 11 ( m o d 12 )
f ( y i ) = 2 : i = 1 ; 4 i + 3 : 1 i n 4 ; 4 i + 2 : n 4 < i n 1 .
f ( z i ) = 1 : i = 0 ; 3 : i = 1 ; 2 i + 1 : 2 i 2 n 1 a n d i i s e v e n ; 2 i : 3 i n 2 a n d i i s o d d ; 2 i + 1 : n 2 < i 2 n 1 a n d i i s o d d .
Since edge labeling is induced function, the edges 5 n + 1 2 are valued with 0 and 5 n 1 2 are valued with 1. There is maximum 1 difference in valued edges. As shown in Figure 26. The graph is prime cordial.
Figure 26. ( P 3 , P ( 11 , k ) ) m v ; middle vertex P 3 glowing with P(11,k) is prime cordial.
Hence, ( P 3 , P ( n , k ) ) m v for all n 3 a n d 1 k n 2 is prime cordial. □
Theorem 6.
The graph P v ( n , k ) p is prime cordial for all n 3 and 1 k n 2 .
Proof. 
Let P ( n , k ) be a generalized Petersen graph. There are n copies of pendant vertices attached to outer cycle of P ( n , k ) .
There are 3 n vertices and size 4 n . Described as,
V ( P v ( n , k ) p ) = { x i , y i , z i ; 0 i n 1 } ,
E ( P v ( n , k ) p ) = { x i x i + k , x i y i , y i y i + 1 , y i z i ; 0 i n 1 a n d 1 k n 2 } .
In prime cordial labeling, values assigned to vertices is a bijective function from 1 to order of graph and edge labeling induce from it. Therefore, values are assigned to vertices as;
f ( x i ) = { 3 i + 3 ; 0 i n 1 }
For f ( y i ) and f ( z i ) , we have following cases:
Case 1: for n = 3
f ( y 0 ) = 1 , f ( y 1 ) = 4 , f ( y 2 ) = 8
f ( z 0 ) = 5 , f ( z 1 ) = 2 , f ( z 2 ) = 7
Since edge labeling is induced function, edges are equally labeled with 0 and 1. As shown in Figure 27, P v ( 3 , k ) p is prime cordial.
Figure 27. Outer cycle vertices duplication by pendant vertices in P ( 3 , k ) and P ( 4 , k ) is prime cordial.
Case 2: for n = 4
f ( y 0 ) = 1 , f ( y 1 ) = 4 , f ( y 2 ) = 8 , f ( y 3 ) = 10
f ( z 0 ) = 2 , f ( z 1 ) = 5 , f ( z 2 ) = 7 , f ( z 3 ) = 11 .
Since edge labeling is induced function, 0 and 1 are equally assigned to edges. As shown in Figure 27, P v ( 4 , k ) p is prime cordial.
Case 3: for n 0 ( m o d 6 )
f ( y i ) = 2 : i = 0 ; 3 i + 2 : 1 i n 3 3 w h e n i i s o d d ; 3 i + 1 : 2 i n 3 3 w h e n i i s e v e n ; 3 i + 2 : n 3 3 < i n 1 w h e n i i s e v e n ; 3 i + 1 : n 3 3 < i n 1 w h e n i i s o d d .
f ( z i ) = 1 : i = 0 ; 3 i + 1 : 1 i n 3 3 w h e n i i s o d d ; 3 i + 2 : 2 i n 3 3 w h e n i i s e v e n ; 3 i + 1 : n 3 3 < i n 1 w h e n i i s e v e n ; 3 i + 2 : n 3 3 < i n 1 w h e n i i s o d d .
This labeling is explained in Figure 28.
Figure 28. P v ( 6 , k ) p ; outer vertex P(6,k) duplication by pendant vertices is prime cordial.
Case 4: for n 1 ( m o d 6 )
f ( y i ) = 2 : i = 0 ; 3 i + 2 : 1 i n 4 3 w h e n i i s o d d ; 3 i + 1 : 2 i n 4 3 w h e n i i s e v e n ; 3 i + 2 : n 4 3 < i n 1 a n d w h e n i i s e v e n ; 3 i + 1 : n 4 3 < i n 1 a n d w h e n i i s o d d .
f ( z i ) = 1 : i = 0 ; 3 i + 1 : 1 i n 4 3 w h e n i i s o d d ; 3 i + 2 : 2 i n 4 3 w h e n i i s e v e n ; 3 i + 1 : n 4 3 < i n 1 w h e n i i s e v e n ; 3 i + 2 : n 4 3 < i n 1 w h e n i i s o d d .
This labeling is explained in Figure 29.
Figure 29. P v ( 7 , k ) p ; outer vertex P(7,k) duplication by pendant vertices is prime cordial.
Case 5: for n 2 ( m o d 6 )
f ( y i ) = 1 : i = 0 ; 3 i + 2 : 1 i n 5 3 w h e r e i i s o d d ; 3 i + 1 : 2 i n 5 3 w h e r e i i s e v e n ; 3 i + 2 : n 5 3 < i n 1 w h e r e i i s e v e n ; 3 i + 1 : n 5 3 < i n 1 w h e r e i i s o d d .
f ( z i ) = 2 : i = 0 ; 3 i + 1 : 1 i n 5 3 w h e r e i i s o d d ; 3 i + 2 : 2 i n 5 3 w h e r e i i s e v e n ; 3 i + 1 : n 5 3 < i n 1 w h e r e i i s e v e n ; 3 i + 2 : n 5 3 < i n 1 w h e r e i i s o d d .
This labeling is explained in Figure 30.
Figure 30. P v ( 8 , k ) p ; outer vertex P(8,k) duplication by pendant vertices is prime cordial.
Case 6: for n 3 ( m o d 6 )
f ( y i ) = 1 : i = 0 ; 3 i + 2 : 1 i n 6 3 w h e n i i s o d d ; 3 i + 1 : 2 i n 6 3 w h e n i i s e v e n ; 3 i + 2 : n 6 3 < i n 1 a n d w h e n i s e v e n ; 3 i + 1 : n 6 3 < i n 1 w h e n i i s o d d .
f ( z i ) = 2 : i = 0 ; 3 i + 1 : 1 i n 6 3 w h e n i i s o d d ; 3 i + 2 : 2 i n 6 3 w h e n i i s e v e n ; 3 i + 1 : n 6 3 < i n 1 w h e n i i s e v e n ; 3 i + 2 : n 6 3 < i n 1 w h e n i i s o d d .
This labeling is explained in Figure 31.
Figure 31. P v ( 9 , k ) p ; outer vertex P(9,k) duplication by pendant vertices is prime cordial.
Case 7: for n 4 ( m o d 6 )
f ( y i ) = 1 : i = 0 ; 3 i + 2 : 1 i n 4 3 w h e n i i s o d d ; 3 i + 1 : 2 i n 4 3 w h e n i i s e v e n ; 3 i + 2 : n 4 3 < i n 1 w h e n i i s e v e n ; 3 i + 1 : n 4 3 < i n 1 w h e n i i s o d d .
f ( z i ) = 2 : i = 0 ; 3 i + 1 : 1 i n 4 3 w h e n i i s o d d ; 3 i + 2 : 2 i n 4 3 w h e n i i s e v e n ; 3 i + 1 : n 4 3 < i n 1 w h e n i i s e v e n ; 3 i + 2 : n 4 3 < i n 1 w h e n i i s o d d .
This labeling is explained in Figure 32.
Figure 32. P v ( 10 , k ) p ; outer vertex P(10,k) duplication by pendant vertices is prime cordial.
Case 8: for n 5 ( m o d 6 )
f ( y i ) = 1 : i = 0 ; 3 i + 2 : 1 i n 5 3 w h e n i i s o d d ; 3 i + 1 : 2 i n 5 3 w h e n i i s e v e n ; 3 i + 2 : n 5 3 < i n 1 w h e n i i s e v e n ; 3 i + 1 : n 5 3 < i n 1 w h e n i i s o d d .
f ( z i ) = 2 : i = 0 ; 3 i + 1 : 1 i n 5 3 w h e n i i s o d d ; 3 i + 2 : 2 i n 5 3 w h e n i i s e v e n ; 3 i + 1 : n 5 3 < i n 1 w h e n i i s e v e n ; 3 i + 2 : n 5 3 < i n 1 w h e n i i s o d d .
This labeling is explained in Figure 33.
Figure 33. P v ( 11 , k ) p ; outer vertex P(11,k) duplication by pendant vertices is prime cordial.
Hence, the graph P v ( n , k ) p is prime cordial for all n 3 and 1 k n 2 . □

3. Conclusions

In this article, we have studied the prime cordial labeling of a generalized Petersen graph under duplication operation, and we have proved that it is a prime cordial graph after duplication. We have also proved that glowing of path graph P 3 to P ( n , k ) at a common vertex is prime cordial. These graphs invite the interest of researchers for their application in communication. Binary digits belong to Boolean Algebra, and in our results, edges are labeled with 0 and 1. These binary digits assignment to edges attracts the attention of computer programmers for data communication. Therefore, these results are fruitful for switching and data communication.

Author Contributions

Writing—original draft preparation, W.Z., M.N. and I.A.; writing—review and editing, W.Z., M.N. and I.A. All authors have read and agreed to the published version of the manuscript.

Funding

We thank the reviewers for their constructive comments in improving the quality of this paper. This work was supported by the National Key Research and Development Program under Grant 2018YFB0904205.

Institutional Review Board Statement

This research was conducted by Mr. Irfan Ahmad (Reg. No.: MPMT-023R19-24) in his M.Phil thesis under the supervision of Muhammad Naeem and funded by Weidong Zhao in the Department of Mathematics and Statistics, Institute of Southern Punjab, Multan.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Wilson, R.J. History Graph Theory from: Handbook Graph Theory; CRC Press: Boca Raton, FL, USA, 2013. [Google Scholar]
  2. Chartrand, G.; Egan, C.; Zhang, P. How to Label a Graph; Springer Briefs in Mathematics: New York, NY, USA, 2019; pp. 19–23. [Google Scholar]
  3. Rosa, A. On Certain Valuations of the Vertices of a Graph, Theory of Graphs; Gordon and Breach: New York, NY, USA, 1967; pp. 349–355. [Google Scholar]
  4. Golomb, S.W. How to Number a Graph, Graph Theory and Computing; Academic Press: New York, NY, USA, 1972; pp. 23–37. [Google Scholar]
  5. Beineke, L.W.; Hegde, S.M. Strongly Multiplicative Graphs. Discuss. Math. Graph Theory 2001, 21, 63–75. [Google Scholar] [CrossRef]
  6. Liang, Z.H.; Bai, Z.L. On the odd harmonious graphs with applications. J. App. Math. Comput. 2008, 29, 105–116. [Google Scholar] [CrossRef]
  7. Sundaram, M.; Ponraj, R.; Somasundram, S. Prime Cordial Labeling of Graphs. J. Ind. Acad. Math. 2005, 27, 373–390. [Google Scholar]
  8. Ahmad, I. Muhammad Naeem, Prime Cordial Labeling of Generalized Petersen Graph under Some Graph Operations. MPhil Thesis, Institute of Southern Punjab, Multan, Pakistan, 2021. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.