Next Article in Journal
On a Nonlinear Hyperbolic–Elliptic System Modeling Chemotaxis
Previous Article in Journal
Geophysical Monge–Ampère-Type Equation: Symmetries and Exact Solutions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Edge k-Product Cordial Labeling of Trees

by
Jenisha Jeganathan
1,
Maged Z. Youssef
2,
Jeya Daisy Kruz
3,
Jeyanthi Pon
4,*,
Wai-Chee Shiu
5 and
Ibrahim Al-Dayel
2
1
Research Scholar, Department of Mathematics, Holy Cross College (Autonomous), Nagercoil, Affiliated to Manonmaniam Sundaranar University, Tirunelveli 627012, Tamilnadu, India
2
Department of Mathematics and Statistics, College of Science, Imam Mohammad Ibn Saud Islamic University (IMSIU), Riyadh 11566, Saudi Arabia
3
Department of Mathematics, Holy Cross College (Autonomous), Nagercoil 629004, Tamilnadu, India
4
Department of Mathematics, Govindammal Aditanar College for Women, Tiruchendur 628215, Tamilnadu, India
5
Department of Mathematics, The Chinese University of Hong Kong, Shatin, Hong Kong, China
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(21), 3521; https://doi.org/10.3390/math13213521
Submission received: 25 September 2025 / Revised: 24 October 2025 / Accepted: 28 October 2025 / Published: 3 November 2025

Abstract

The concepts of k-product cordial labeling and edge product cordial labeling were introduced in 2012 and further explored by various researchers. Building on these ideas, we define a new concept called ‘edge k-product cordial labeling’ as follows: For a graph G = ( V ( G ) , E ( G ) ) , which does not have isolated vertices, an edge labeling f : E ( G ) 0 , 1 , , k 1 , where k 2 is an integer, is said to be an edge k-product cordial labeling of G if it induces a vertex labeling f * : V ( G ) 0 , 1 , , k 1 defined by f * ( v ) = u v E ( G ) f ( u v ) ( mod k ) , which satisfies e f ( i ) e f ( j ) 1 and v f * ( i ) v f * ( j ) 1 for i , j 0 , 1 , , k 1 , where e f ( i ) and v f * ( i ) denote the number of edges and vertices, respectively, having label i for i = 0 , 1 , , k 1 . In this paper, we study the edge k-product cordial behavior of trees, a comet, and a double comet.

1. Preliminaries

The concept of graph labeling has experienced significant popularity over the past six decades, owing to its practical applications. A groundbreaking paper addressing graph labeling problems was published by Rosa [1]. Subsequently, numerous papers on various graph labeling methods have been published, and Gallian’s survey [2] elegantly categorizes and organizes these diverse labeling methods published by various mathematicians all over the world. ‘Cordial labeling’ is one of the popular labelings introduced by Cahit [3]. Inspired by this notion, ‘product cordial labeling’ was proposed in [4]. In 2012, this concept was extended further, and a new concept called ‘k-product cordial labeling’ [5] was introduced. In the same year, Vaidya et al. [6] introduced a variation of product cordial labeling called ‘edge product cordial labeling’. In this variant, the roles of vertices and edges in ‘product cordial labeling’ are interchanged. Since then, some more results on ‘edge product cordial labeling’ have been published by the same authors; see [6,7,8,9]. Building on this, Thamizharasi et al. [10] demonstrated the existence of ‘edge product cordial labeling’ of regular digraphs in 2015. In the subsequent years, Prajapati and Aboshady et al. [11,12,13,14] contributed additional results on ‘edge product cordial labeling’. Motivated by the concepts of ‘k-product cordial labeling’ and ‘edge product cordial labeling’ and the established results, we put forth a new labeling, namely ‘edge k-product cordial labeling’, which extends the concept of edge product cordial labeling by expanding the set of labels from { 0 , 1 } to { 0 , 1 , 2 , ߪ , k 1 } . Let G = ( V , E ) be a graph without isolated vertices and k 2 . Let f : E { 0 , 1 , , k 1 } be an edge labeling. The induced vertex labeling f * : V { 0 , 1 , , k 1 } is defined by
f * ( v ) u v E f ( u v ) ( mod k ) .
f * is called the induced labeling of f. For convenience, let Z k = { 0 , 1 , , k 1 } be the complete residue system modulo k. Also, an edge is called i-edge if it is labeled by i; and a vertex is called j-vertex if its induced label is j. Let e f ( i ) and v f * ( i ) denote the number of i-edges and i-vertices, respectively, for i Z k . f is said to be an edge k-product cordial labeling of G if | e f ( i ) e f ( j ) | 1 and | v f * ( i ) v f * ( j ) | 1 for i , j Z k . Also, G is called an edge k-product cordial graph.
Let L be a set of labels. For an edge labeling f : E L of a graph G = ( V , E ) , if | e f ( i ) e f ( j ) | 1 for all i , j L , then we say that the edges of the graph labeled by labels in Levenly (under f).
In this paper, we use this notation, these concepts, and the following definitions unless otherwise stated.
Definition 1.
For n 1 , let P n = u 1 u n be the path of order n. For m 1 , let the vertex set and the edge set of the star graph K 1 , m be { c } { v i | 1 i m } and { c v i | 1 i m } , respectively. For m , n 1 , let the graph C ( n , m ) = P n K 1 , m with identifying c with u n . Such a graph is called a comet [15].
Definition 2.
For M m 1 , let the graph D C ( n , M , m ) = P n K 1 , M K 1 , m with the vertex set and the edge set { u i | 1 i n } { v i | 1 i M } { w i | 1 i m } and { u i u i + 1 | 1 i n 1 } { u n v i | 1 i M } { u 1 w i | 1 i m } , respectively. Such a graph is called a double comet [16].
Notation and concepts, which are not defined in this paper, are referred to in [17]. All graphs considered here are simple and connected.
We use the next section to show the structure of the subtree induced by all edges labeled by 0 of an edge k-product cordial tree. In the consecutive sections, we investigate the edge k-product cordial behavior of comet and double comet graphs for k = 3 , 4 , and 5.

2. Properties of Edge k -Product Cordial Trees

Lemma 1.
Let f : E Z k be an edge labeling of a tree T = ( V , E ) , where k 2 . Then v f * ( 0 ) e f ( 0 ) + 1 , where f * is the induced labeling of f.
Proof. 
Let E 0 = { e E | f ( e ) = 0 } and T 0 = T [ E 0 ] , the edge induced subgraph of T. Let ω , p, and q be the number of components, the order and the size of T 0 , respectively. Since T 0 is a forest, p = q + ω . Since all its vertices are 0-vertices, v f * ( 0 ) p = q + ω e f ( 0 ) + 1 . □
Corollary 1.
Let f be an edge k-product cordial labeling of a tree T of order n, where k 2 . If E 0 is the set of 0 edges under f, then T 0 = T [ E 0 ] is a tree and
v f * ( 0 ) = n k i f   n 0 ( mod k ) ; n k + 1 i f   n 0 ( mod k ) , e f ( 0 ) = n k 1 i f   n 0 ( mod k ) ; n k i f   n 0 ( mod k ) .
Proof. 
For each i ( 0 i k 1 ) , we have
v f * ( i ) = n k i f   n 0 ( mod k ) ; n k   or   n k + 1 i f   n 0 ( mod k ) , e f ( i ) = n k 1   or   n k i f   n 0 ( mod k ) ; n 1 k = n k i f   n 1 ( mod ) k n k or n k + 1 i f   n 0 , 1 ( mod k ) .
By Lemma 1, we obtain this corollary. □
Example 1.
Suppose n = 7 and k = 3 . Then T contains 7 vertices and 6 edges. We keep all notation defined in the proof of Lemma 1 and Corollary 2. For any edge 3-product cordial labeling f, e f ( 0 ) = e f ( 1 ) = e f ( 2 ) = 2 and v f * ( i ) = 2 , 3 for i = 0 , 1 , 2 . From the proof of Lemma 1, v f * ( 0 ) e f ( 0 ) + ω . Since 2 v f * ( 0 ) 3 and e f ( 0 ) + ω = 2 + ω 3 , ω = 1 and hence v f * ( 0 ) = 3 .
Lemma 2.
Let G be a graph of order k. If k is a prime, then G is not an edge k-product cordial graph.
Proof. 
Let f be an edge k-product cordial labeling of G. Then v f * ( i ) = 1 for i Z k . In particular, v f * ( 0 ) = 1 . Suppose there is a 0-edge, then it induces two 0-vertices, which is a contradiction. Suppose there are no 0-edges. Since k is a prime, there is no induced 0-vertex, which is also a contradiction. □
Corollary 2.
Let T be a tree of order k. If k is a prime or k = 4 , then T is not an edge k-product cordial.
Proof. 
When k is a prime, by Lemma 2, T is not edge k-product cordial. For k = 4 , let f be an edge 4-product cordial labeling of T. Then e f ( i ) = 0 , 1 and v f * ( i ) = 1 for each i. Let u be the 0-vertex. By Lemma 2, there is no 0-edge in T. Thus, e f ( i ) = 1 for 1 i 3 . This results in v f * ( 2 ) = 2 , which is a contradiction. □

3. Edge 3-Product Cordial Trees

In order to establish the edge 3-product cordial behavior of the comet, we prove the following two lemmas.
Lemma 3.
The path graph P n is an edge 3-product cordial for n 4 .
Proof. 
We define an edge labeling f n for P n recursively, and this labeling is represented by ( a 1 , , a n 1 ) if f n ( u i u i + 1 ) = a i , 1 i n 1 . We will use this representation for a labeling f n of P n in the whole paper.
The edge 3-product cordial labeling for P n , 4 n 9 , is shown in Table 1.
For n 10 , define f n recurrently as f n = f m i + 6 = ( 1 , 2 , 2 , 1 , a 1 , , a m i 1 , 0 , 0 ) , where 0 i 5 and m 9 . Note that a 1 = 1 . Clearly, e f m i + 6 ( j ) = e f m i ( j ) + 2 , v f m i + 6 * ( j ) = v f m i * ( j ) + 2 , 0 j 2 , where f m i = ( a 1 , , a m i 1 ) . Thus,
e f n ( 0 ) = e f n ( 1 ) = e f n ( 2 ) = n 3 , v f n * ( 0 ) 1 = v f n * ( 1 ) = v f n * ( 2 ) = n 3 if   n 1 ( mod 3 ) ; e f n ( 0 ) = e f n ( 1 ) 1 = e f n ( 2 ) = n 3 , v f n * ( 0 ) 1 = v f n * ( 1 ) 1 = v f n * ( 2 ) = n 3 if   n 2 ( mod 3 ) ; e f n ( 0 ) + 1 = e f n ( 1 ) = e f n ( 2 ) = n 3 , v f n * ( 0 ) = v f n * ( 1 ) = v f n * ( 2 ) = n 3 if   n 0 ( mod 3 ) .
Hence, f n is an edge 3-product cordial labeling of P n . Note that f n * ( u 1 ) = 1 and f * ( u n ) = 0 . □
From [18], we have the following result.
Lemma 4.
The star graph K 1 , m is an edge 3-product cordial for m 3 .
Definition 3.
Suppose G and H are the two edge-disjoint graphs with edge labelings g and h, respectively. We say that ϕ is a combination of g and h (or combine g with h) if
ϕ ( x ) = g ( x ) i f   x E ( G ) , h ( x ) i f   x E ( H ) .
Theorem 1.
The comet graph C ( n , m ) is edge 3-product cordial for n 3 and m 2 .
Proof. 
Note that C ( n , m ) = P n K 1 , m . Let c = u n . We label P n by f n , which was defined in the proof of Lemma 3. Define labeling g m , m = 2 , 3 , 4 , for K 1 , m as follows:
  • Suppose n 1 ( mod 3 ) .
    If m = 2 , then g 2 ( c v 1 ) = 1 , g 2 ( c v 2 ) = 2 .
    If m = 3 , then g 3 ( c v 1 ) = 1 , g 3 ( c v 2 ) = 2 , g 3 ( c v 3 ) = 0 .
    If m = 4 , then g 4 ( c v 1 ) = 1 , g 4 ( c v 2 ) = 2 , g 4 ( c v 3 ) = 0 , g 4 ( c v 4 ) = 1 .
  • Suppose n 2 ( mod 3 ) .
    If m = 2 , then g 2 ( c v 1 ) = 0 , g 2 ( c v 2 ) = 2 .
    If m = 3 , then g 3 ( c v 1 ) = 1 , g 3 ( c v 2 ) = 2 , g 3 ( c v 3 ) = 0 .
    If m = 4 , then g 4 ( c v 1 ) = 1 , g 4 ( c v 2 ) = 2 , g 4 ( c v 3 ) = 0 , g 4 ( c v 4 ) = 2 .
  • Suppose n 0 ( mod 3 ) .
    If m = 2 , then g 2 ( c v 1 ) = 1 , g 2 ( c v 2 ) = 0 .
    If m = 3 , then g 3 ( c v 1 ) = 1 , g 3 ( c v 2 ) = 2 , g 3 ( c v 3 ) = 0 .
    If m = 4 , then g 4 ( c v 1 ) = 1 , g 4 ( c v 2 ) = 2 , g 4 ( c v 3 ) = 0 , g 4 ( c v 4 ) = 0 .
Let ϕ be the combination of f n and g m . We can check that e ϕ ( 1 ) e ϕ ( 2 ) e ϕ ( 0 ) and e ϕ ( 1 ) e ϕ ( 0 ) 1 ; v ϕ * ( 0 ) v ϕ * ( 1 ) v ϕ * ( 2 ) and v ϕ * ( 0 ) v ϕ * ( 2 ) 1 .
Note that C ( n , m ) = C ( n , m 3 ) K 1 , 3 with the common vertex u n . If ϕ is an edge 3-product cordial labeling of C ( n , m 3 ) , m 5 , then combine ϕ for C ( n , m 3 ) and g 3 for K 1 , 3 to obtain an edge 3-product cordial labeling for C ( n , m ) .
This completes the proof. □
Example 2.
Here is an example to illustrate the proof of Theorem 1. Suppose n = 5 and m = 7 . Firstly, we label C ( 5 , 4 ) . According to the labeling defined in the proof above, we have the following labeling (Figure 1):
Here we can see that e ϕ ( 0 ) = 2 , e ϕ ( 1 ) = e ϕ ( 2 ) = 3 ; v ϕ * ( 0 ) = v ϕ * ( 1 ) = v ϕ * ( 2 ) = 3 . Now, we combine the labeling g 3 of K 1 , 3 to the labeling ϕ of C ( 5 , 4 ) . We have (see Figure 2)
Here we can see that the number of 0-edges is 3, the number of i-edges is 4, i = 1 , 2 , and the number of j-vertices is 4, 0 j 2 .
Remark 1.
By Lemma 3, C ( n , 0 ) P n when n 4 and C ( n , 1 ) P n + 1 when n 3 are edge 3-product cordial graphs. Again by Lemma 4, C ( 1 , m ) K 1 , m for m 3 and C ( 2 , m ) K 1 , m + 1 for m 2 are edge 3-product cordial graphs.
Also, note that under the labeling defined in Lemma 3, the vertex u 1 is always a 1-vertex and u n is always 0-vertex.
Consequently, if C ( n , m ) is not isomorphic to P 1 , P 2 , or P 3 , then C ( n , m ) admits an edge 3-product cordial labeling ϕ such that ϕ ( u 1 ) = 1 and ϕ ( u n ) = 0 .
Theorem 2.
The double comet graph D C ( n , M , m ) is edge 3-product cordial for n 2 and M m 2 .
Proof. 
Let S 1 = K 1 , M with the center u n and S 2 = K 1 , m with the center u 1 . Then D C ( n , M , m ) = P n S 1 S 2 .
For 2 q 5 , we label the edges of S 2 = K 1 , q and the selected edges of S 1 by 0,1,2 evenly as shown below and denote this labeling by α .
  • When q = 2 , α ( u 1 w 1 ) = α ( u 1 w 2 ) = 1 , α ( u n v M ) = α ( u n v M 1 ) = 0 and α ( u n v M 2 ) = α ( u n v M 3 ) = 2 .
  • When q = 3 , α ( u 1 w 1 ) = 1 , α ( u 1 w 2 ) = α ( u 1 w 3 ) = 2 , α ( u n v M ) = α ( u n v M 1 ) = 0 and α ( u n v M 2 ) = 1 .
  • When q = 4 , α ( u 1 w 1 ) = α ( u 1 w 2 ) = 1 , α ( u 1 w 3 ) = α ( u 1 w 4 ) = 2 , α ( u n v M ) = α ( u n v M 1 ) = 0 .
  • When q = 5 , α ( u 1 w 1 ) = α ( u 1 w 2 ) = α ( u 1 w 3 ) = 1 , α ( u 1 w 4 ) = α ( u 1 w 5 ) = 2 , α ( u n v M ) = α ( u n v M 1 ) = α ( u n v M 2 ) = 0 and α ( u n v M 3 ) = 2 .
Note that α * ( u 1 ) = 1 and α * ( u n ) = 0 . Also, v α * ( 0 ) = v α * ( 1 ) = v α * ( 2 ) + 1 .
Now, consider m = 4 p + q , where 2 q 5 and p 0 . We split S 2 into K 1 , q and K 1 , 4 p with the common vertex u 1 . We label K 1 , q , and the selected edges of S 1 by α as defined above, and all the edges of K 1 , 4 p by 1 and 2 evenly. Again, we label the edges of an unlabeled subgraph of S 1 , which is isomorphic to K 1 , 2 p by 0. We denote this labeling by α . Then we have α * ( u 1 ) = 1 and α * ( u n ) = 0 ; v α * ( 0 ) = v α * ( 1 ) = v α * ( 2 ) + 1 ; and all e α ( i ) are the same for 0 i 2 .
Here, the unlabeled subgraph, say H, of D C ( n , M , m ) is isomorphic to C ( n , M 2 p ϵ ) , where ϵ = 2 , 3 , 4 , which depends on q. That is,
  • When q = 2 , H C ( n , M 2 p 4 ) if M 2 p 4 0 .
  • When q = 3 , H C ( n , M 2 p 3 ) .
  • When q = 4 , H C ( n , M 2 p 2 ) .
  • When q = 5 , H C ( n , M 2 p 4 ) .
If M 2 p ϵ 2 , then by Theorem 1 there exists an edge 3-product cordial labeling ϕ for H. Note that v α * ( 0 ) 1 = v α * ( 1 ) 1 = v α * ( 2 ) , α * ( u 1 ) = 1 , α * ( u n ) = 0 and ϕ * ( u 1 ) = 1 . When we combine α with ϕ , the number of j-vertices ( 0 j 2 ) are v ϕ * ( 0 ) + v α * ( 0 ) 1 , v ϕ * ( 1 ) + v α * ( 1 ) 1 and v ϕ * ( 2 ) + v α * ( 2 ) . So the combination of α and ϕ results in an edge 3-product cordial labeling for D C ( n , M , m ) .
The detailed labeling for receiving edge 3-product cordial of D C ( n , M 2 p ϵ ) for M 2 p ϵ 1 are moved to Appendix A. This completes the proof. □
Example 3.
The following Figure 3 illustrates the proof of Theorem 2.
We combine α and ϕ to get an edge 3-product cordial labeling for D C ( 7 , 8 , 6 ) .

4. Edge 4-Product Cordial Trees

We begin this section with the necessary condition on the number of vertices and leaves for a tree to admit an edge 4-product cordial labeling.
Theorem 3.
Let T be a tree with n vertices, and S be the set of all the leaves of T. If T is an edge 4-product cordial graph, then
| S | n 4 i f   n 0 , 1 ( mod 4 ) , n 4 1 i f   n 2 , 3 ( mod 4 ) .
Moreover, the bound is sharp.
Proof. 
Let f be an edge 4-product cordial labeling of T, and E i be the set of edges labeled by i, where i = 0 , 2 . Let T i = T [ E i ] . By Corollary 1, T 0 is a tree and v f * ( 0 ) = e f ( 0 ) + 1 = | V ( T 0 ) | . This implies that each vertex in V ( T ) V ( T 0 ) is not labeled by 0.
Now, consider forest T 2 . If v V ( T 2 ) , then f * ( v ) = 0 , 2 ; and if v V ( T 2 ) , then f * ( v ) 2 . If v V ( T 2 ) and f * ( v ) = 0 , then v V ( T 0 ) V ( T 2 ) = A 0 . If f * ( v ) = 2 , then deg T 2 ( v ) = 1 .
Let u 1 v 1 , , u q v q be the edges in E 2 such that u i V ( T 0 ) and v i V ( T 2 ) , 1 i q . Note that v i are distinct, but u i may not be distinct. Then, there are e f ( 2 ) q edges in E 2 , and their end vertices are labeled by 2. Then v f * ( 2 ) = q + 2 ( e f ( 2 ) q ) = 2 e f ( 2 ) q , equivalently q = 2 e f ( 2 ) v f * ( 2 ) .
(1)
If n 0 ( mod 4 ) , then v f * ( i ) = n 4 for all i and e f ( 0 ) = n 4 1 . Thus, e f ( 2 ) = n 4 = e f ( 1 ) = e f ( 3 ) . Therefore, q = n 4 .
(2)
If n 1 ( mod 4 ) , then e f ( i ) = n 4 for all i, and v f * ( 0 ) = n 4 + 1 . Therefore, v f * ( i ) = n 4 for i = 1 , 2 , 3 . Hence, q = n 4 .
(3)
If n 2 , 3 ( mod 4 ) , then q = 2 e f ( 2 ) v f * ( 2 ) 2 n 4 ( n 4 + 1 ) = n 4 1 .
We merge the tree T 0 into a vertex r to receive the resultant graph T . Then T is a rooted tree with root r and deg T ( r ) = q . So T has at least q leaves, which are also the leaves of T. Since S is the set of all leaves of T and T contains at least q leaves, | S | q . Hence,
| S | n 4 if   n 0 , 1 ( mod 4 ) , n 4 1 if   n 2 , 3 ( mod 4 ) .
The following remark demonstrates that the bound in Theorem 3 is sharp.
Remark 2.
If P n is an edge 4-product cordial, then
n 9 i f   n 0 , 1 ( mod 4 ) , 15 i f   n 2 , 3 ( mod 4 ) .
Clearly, P 4 , P 3 , and P 2 are not edge 4-product cordial graphs. An edge 4-product cordial labeling for P n , 5 n 15 , is shown in Table 2.
Corollary 3.
P n is an edge 4-product cordial if and only if n { 5 , 6 , 7 , 8 , 9 , 10 , 11 , 14 , 15 } .
Note that in the following lemmas and corollary, all the induced vertex labelings work in the complete residues class modulo 4, Z 4 .
Lemma 5.
Suppose S 1 and S 2 are the trees such that V ( S 1 ) V ( S 2 ) = { x } . Let the order of S 1 and S 2 be a and b, respectively, such that 2 n a b 2 n + 1 for some positive integer n. Let f : E ( S 1 ) { 0 , 2 } and g : E ( S 2 ) { 1 , 3 } be the edge labeling, which satisfy the following conditions:
(1) 
0 e f ( 2 ) e f ( 0 ) 1 and 0 v f * ( 2 ) v f * ( 0 ) 1 ;
(2) 
| e g ( 1 ) e g ( 3 ) | 1 and | v g * ( 1 ) v g * ( 3 ) | 1 ;
(3) 
g * ( x ) = only if v g * ( 1 ) v g * ( ) , where { , 1 } = { 1 , 3 } .
Let ϕ be the combination of f and g. Then ϕ is an edge 4-product cordial labeling of S 1 S 2 .
Proof. 
Suppose the order of S 1 is 2 n . Then the order of S 2 is either 2 n or 2 n + 1 . Thus, by conditions 1 and 2, we obtain | e ϕ ( i ) e ϕ ( j ) | 1 for all i j .
Since f * ( x ) = 0 or 2, we have ϕ * ( x ) = f * ( x ) g * ( x ) = f * ( x ) . Thus, the number of 0-vertices and 2-vertices does not change, and they are equal to n.
If the order of S 2 is 2 n + 1 and g * ( x ) = 1 , then v g * ( 1 ) = n + 1 and v g * ( 3 ) = n . Hence, v ϕ * ( 1 ) = n and v ϕ * ( 3 ) = n .
If the order of S 2 is 2 n + 1 and g * ( x ) = 3 , then v g * ( 1 ) = n and v g * ( 3 ) = n + 1 . Hence, v ϕ * ( 1 ) = n and v ϕ * ( 3 ) = n .
If the order of S 2 is 2 n , then v g * ( 1 ) = v g * ( 3 ) = n . Hence, v ϕ * ( 1 ) = n 1 and v ϕ * ( 3 ) = n if g * ( x ) = 1 ; v ϕ * ( 1 ) = n and v ϕ * ( 3 ) = n 1 if g * ( x ) = 3 .
Suppose the order of S 1 is 2 n + 1 . Then the order of S 2 is 2 n + 1 . By conditions 1 and 2, the number of i-edges are n under ϕ for 0 i 3 . In this case v g * ( ) = n + 1 and v g * ( 1 ) = n , where g * ( x ) = and { , 1 } = { 1 , 3 } . Similarly, we have v ϕ * ( 2 ) = v ϕ * ( 1 ) = v ϕ * ( 3 ) = n and v ϕ * ( 0 ) = n + 1 . □
Lemma 6.
Let g : E ( T ) { 1 , 3 } be an edge labeling of tree T of order n, which satisfies the condition (2) of Lemma 5, then n 2 ( mod 4 ) .
Proof. 
Let E 3 be the set of all 3-edges in T, and let T 3 = T [ E 3 ] . Since any 3-vertex must be incident to three edges, all 3-vertices are in T 3 . Also, each 3-vertex is of odd degree in T 3 . Thus, v g * ( 3 ) is even. Hence, n = v g * ( 3 ) + v g * ( 1 ) v g * ( 1 ) ( mod 2 ) . If v g * ( 1 ) is odd, then n 2 ( mod 4 ) . If v g * ( 1 ) is even, then v g * ( 1 ) = v g * ( 3 ) . Hence, n 0 ( mod 4 ) . □
By Lemma 5, we have the following corollary.
Corollary 4.
Suppose S 1 and S 2 are the trees such that V ( S 1 ) V ( S 2 ) = { x } . Let the order of S 1 be 4 k + 1 or 4 k + 2 and the order of S 2 be 4 k + 2 , where k 1 . Let f : E ( S 1 ) { 0 , 2 } and g : E ( S 2 ) { 1 , 3 } be the edge labeling, which satisfy the following conditions:
(a) 
0 e f ( 2 ) e f ( 0 ) 1 and 0 v f * ( 2 ) v f * ( 0 ) 1 ;
(b) 
g * ( x ) = ;
(c) 
| e g ( 1 ) e g ( 3 ) | 1 and v g * ( ) v g * ( 1 ) = 2 , where { , 1 } = { 1 , 3 } .
Let ϕ be the labeling of S 1 S 2 by combining f and g. Then ϕ is an edge 4-product cordial labeling of S 1 S 2 .
A vertex that satisfies the condition (3) in Lemma 5 or the conditions (b) and (c) in Corollary 4 is called a major vertex under g.
Lemma 7.
If n 2 ( mod 4 ) and n 3 , then there exists a labeling g : E ( P n ) { 1 , 3 } that satisfies the condition (2) of Lemma 5. If n 2 ( mod 4 ) and n 2 , then there exists a labeling g : E ( P n ) { 1 , 3 } that satisfies the condition (c) of Corollary 4.
Proof. 
We label the edges of a path P n by 1,3,3,1 evenly and denote this required labeling by g. □
Lemma 8.
If m + n 2 ( mod 4 ) and n 3 , m 1 , then there exists a labeling g : E ( C ( n , m ) ) { 1 , 3 } that satisfies the condition (2) of Lemma 5. If m + n 2 ( mod 4 ) and n 3 , m 2 , then there exists a labeling g : E ( C ( n , m ) ) { 1 , 3 } that satisfies the condition (c) of Corollary 4. Moreover, u 1 is the major vertex under g.
Proof. 
We will define a labeling g : E ( C ( , m ) ) { 1 , 3 } by the following approach. We first suitably label the edge u n v i for 1 i m . And then label the edge of the path u n u n 1 u 1 . There are four cases. We put the details in Appendix B. Hence, we have the theorem. □
Now, we consider the comet graph C ( n , m ) , which has m + 1 leaves. From Theorem 3, we have
n 3 m + 4 if   m + n 0 ( mod 4 ) ; 3 m + 5 if   m + n 1 ( mod 4 ) ; 3 m + 10 if   m + n 2 ( mod 4 ) ; 3 m + 11 if   m + n 3 ( mod 4 ) .
When n = 1 , 2 , we have C ( n , m ) K 1 , n + m 1 , which is a star. It is easy to check that K 1 , n + m 1 is edge 4-product cordial when n + m 5 .
Theorem 4.
For n 3 , the comet graph C ( n , m ) is edge 4-product cordial if and only if
n 3 m + 4 i f   m + n 0 ( mod 4 ) ; 3 m + 5 i f   m + n 1 ( mod 4 ) ; 3 m + 10 i f   m + n 2 ( mod 4 ) ; 3 m + 11 i f   m + n 3 ( mod 4 ) .
Proof. 
The necessary part is shown in the discussion above. Now we have to show the sufficient part. Let N = m + n 4 . We can check that N m + 1 when m + n 0 , 1 ( mod 4 ) ; and N m + 2 when n + m 2 , 3 ( mod 4 ) .
We split the graph C ( n , m ) into two subgraphs, S 1 and S 2 , with a common vertex x. Then, we define the labelings f and g for S 1 and S 2 , respectively, such that f and g satisfy all the conditions of Lemma 5 or Corollary 4. The details are referred to Appendix C.
Hence, we have the theorem. □
Example 4.
Edge 4-product labelings for C ( 9 , 2 ) , C ( 8 , 3 ) , and C ( 5 , 6 ) are shown in Figure 4.
Example 5.
Edge 4-product labelings for C ( 10 , 2 ) , and C ( 5 , 7 ) are provided in Figure 5.
Example 6.
Edge 4-product labelings for C ( 16 , 2 ) and C ( 17 , 2 ) are shown in Figure 6.
Remark 3.
Suppose T is a tree of order 4 N + k , which admits an edge 4-product cordial labeling f, where 0 k 3 . Let E i be the set of edges labeled by i, where i = 0 , 2 and H = T [ E 2 E 0 ] . By Theorem 3 we obtain the following results.
(A) 
If k = 0 , 1 , then q = N . Thus, H is a tree that has at least N leaves.
(B) 
If k = 2 , 3 , then q N 1 . Clearly, q N + 1 . Also, we have e f ( 0 ) = N and v f * ( 0 ) = N + 1 .
B1. 
Suppose q = N + 1 . Clearly, e f ( 2 ) = N + 1 and v f * ( 2 ) = N + 1 . Then H is a tree of order 2 N + 2 that has at least N + 1 leaves.
B2. 
Suppose q = N . Recall that q = 2 e f ( 2 ) v f * ( 2 ) . Since v f * ( 2 ) N + 1 , we have e f ( 2 ) N + 1 2 . Thus, e f ( 2 ) = N and v f * ( 2 ) = N . Then H is a tree of order 2 N + 1 that has at least N leaves.
B3. 
Suppose q = N 1 . Since v f * ( 2 ) N + 1 , we have e f ( 2 ) = N and v f * ( 2 ) = N + 1 . Then H is a disjoint union of a tree T of order 2 N with P 2 . Moreover, T has at least N 1 leaves.
Theorem 5.
Suppose n 2 , M m 2 and M + m + n = 4 N + k , where 0 k 3 .
A. 
When k = 0 , 1 . The graph D C ( n , M , m ) is an edge 4-product cordial if and only if M N 1 .
B. 
When k = 2 , 3 . The graph D C ( n , M , m ) is an edge 4-product cordial if and only if M N 2 .
Proof. 
Suppose there is an edge 4-product cordial labeling f for T = D C ( n , M , m ) . Let H be the edge-induced subgraph defined in Remark 3.
(A)
Suppose k = 0 , 1 . By Remark 3, H is a tree of order 2 N + k that has at least N leaves. Suppose m M N 2 . Then N = M + m + n k 4 2 M + n k 4 2 N 4 + n k 4 . Thus, n 2 N + k + 4 2 N + 4 . Since H has at least N leaves, we have H D C ( n , M 1 , m 1 ) , where M 1 + m 1 N . But the order of H is at least 3 N + 4 , which is a contradiction. Thus, if M N 2 , then D C ( n , M , m ) is not an edge 4-product cordial graph.
(B)
Suppose k = 2 , 3 . Then e f ( 0 ) = N and v f * ( 0 ) = N + 1 .
  • Suppose q = N + 1 . Then H is a subtree of D C ( n , M , m ) of order 2 N + 2 that has N + 1 leaves. Suppose m M N 1 . Similarly to Case A, we obtain a contradiction. Thus, if M N 1 , then D C ( n , M , m ) is not an edge 4-product cordial graph.
  • Suppose q = N . Then H is a subtree of D C ( n , M , m ) of order 2 N + 1 that has N leaves. Suppose m M N 2 . Similarly to Case A, we obtain a contradiction. Thus, if M N 2 , then D C ( n , M , m ) is not an edge 4-product cordial graph.
  • Suppose q = N 1 . Then H is a disjoint union of a tree T of order 2 N with P 2 . Moreover, T has at least N 1 leaves. Thus, T must be a comet C ( n 1 , m 1 ) such that n 1 + m 1 = 2 N and m 1 N 2 . Thus, if M N 3 , then D C ( n , M , m ) is not an edge 4-product cordial.
Consequently, if D C ( n , M , m ) is an edge 4-product cordial, then M N 1 when n + M + m 0 , 1 ( mod 4 ) ; and M N 2 when n + M + m 2 , 3 ( mod 4 ) .
For the sufficient part, we split the graph D C ( n , M , m ) into two subgraphs S 1 and S 2 with one or two common vertices. We label S 1 by 0 and 2, and S 2 by 1 and 3, respectively, such that these labelings induce an edge 4-product cordial labeling for D C ( n , M , m ) .
Since M , n 2 , we have M + n M + m + n 2 + n 2 4 N + k 2 + 1 = 2 N + 1 + k 2 . This guarantees that the comets S 1 and S 2 defined below are well-defined. The details are referred to Appendix D.
This completes the proof. □
Example 7.
Edge 4-product labelings for D C ( 14 , 3 , 2 ) and D C ( 15 , 2 , 2 ) are shown in Figure 7.

5. Edge 5-Product Cordial Trees

In order to prove the main theorems, first we prove the following lemma. Note that, by Lemma 2, the path P 5 is not an edge 5-product cordial.
Lemma 9.
The path graph P n is an edge 5-product cordial for n 3 and n 5 .
Proof. 
We define an edge labeling f n for P n recurrently, and this labeling is represented by ( a 1 , , a n 1 ) if f n ( u i u i + 1 ) = a i , 1 i n 1 .
We present the edge 5-product cordial labeling for P n , 3 n 12 , except n = 5 in Table 3.
For n 13 , we define f n recurrently as f n = f m i + 10 = ( 1 , 3 , 3 , 4 , 4 , 2 , 2 , 1 , a 1 , , a m i 1 , 0 , 0 ) , where 0 i 9 and m 12 . When m i 7 , we have a 1 = 1 and a m i 1 = 0 . Thus, e f m i + 10 ( j ) = e f m i ( j ) + 2 , v f m i + 10 * ( j ) = v f m i * ( j ) + 2 , 0 j 4 .
  • For m i = 3 , v f 13 * ( 0 ) = 3 , v f 13 * ( 1 ) = 3 , v f 13 * ( 2 ) = 2 , v f 13 * ( 3 ) = 3 , v f 13 * ( 4 ) = 2 .
  • For m i = 4 , v f 14 * ( 0 ) = 3 , v f 14 * ( 1 ) = 3 , v f 14 * ( 2 ) = 3 , v f 14 * ( 3 ) = 3 , v f 14 * ( 4 ) = 2 .
  • For m i = 5 , v f 15 * ( j ) = 3 for all 0 j 4 .
  • For m i = 6 , v f 16 * ( 0 ) = 4 and v f 16 * ( j ) = 3 for all 1 j 4 .
Thus, f n is an edge 5-product cordial labeling of P n for n 6 . Moreover, f 3 and f 4 are the required labelings for P 3 and P 4 , respectively.
This completes the proof. □
Theorem 6.
The comet graph C ( n , m ) is an edge 5-product cordial for n 3 and m 2 , except ( n , m ) = ( 3 , 2 ) .
Proof. 
Let m = 5 k + r , where 0 r 4 . In order to obtain an edge 5-product cordial labeling of C ( n , m ) for n 3 and m 2 , except for ( n , m ) = ( 3 , 2 ) , we split C ( n , m ) into two subgraphs, K 1 , 5 k and C ( n , r ) , with a common vertex u n . Note that when k = 0 , K 1 , 5 k does not appear; when r = 0 , C ( n , r ) P n . For the last case, it has been proved in Lemma 9.
First, we label P n by using f n , which is defined below. For 1 r 4 , we label K 1 , r to balance the number of i-edges and i-vertices, as shown in Table 4.
For n 13 , we label f n = f m + 10 = ( 1 , 3 , 3 , 4 , 4 , 2 , 2 , 1 , f m , 0 , 0 ) , where m 3 . Then the difference between the number of i-edges and j-vertices does not change for all 0 i , j 4 . Hence, according to the table above, we have an edge 5-product cordial labeling for C ( n , r ) , where n 3 and 1 r 4 .
For k 1 , we label the edges of K 1 , 5 k by 0, 1, 2, 3, and 4 evenly and denote this labeling by ϕ . Thus, ϕ is an edge 5-product labeling for C ( n , 5 k + r ) for n 3 and 5 k + r 2 , except for ( n , m ) = ( 3 , 2 ) . By Corollary 2, C ( 3 , 2 ) is not an edge 5-product cordial graph. This completes the proof. □
Example 8.
For the comet C ( 10 , 13 ) , we separate it into two edge-disjoint graphs, C ( 10 , 3 ) and K 1 , 10 . From the table above, we label P 10 as 1, 3, 3, 4, 4, 2, 2, 1, 0, and label the edges of K 1 , 3 by 0, 1, and 2. The resulting labeling is an edge labeling for C ( 10 , 3 ) . The numbers of 1-and 2-edges are 3, and the numbers of 0-, 3- and 4-edges are 2. The numbers of 0-, 1-, and 2- vertices are 3, and the numbers of 3- and 4- vertices are 2.
Finally, we label the edges of K 1 , 10 evenly by 0 , 1 , 2 , 3 , 4 . We obtain three 0-vertices and two i-vertices, where 1 i 4 . The centers of K 1 , 10 and K 1 , 3 will be merged; thus, we obtain an edge 5-product cordial labeling ϕ for C ( 10 , 13 ) . We can check that e ϕ ( 0 ) = 4 , e ϕ ( 1 ) = 5 , e ϕ ( 2 ) = 5 , e ϕ ( 3 ) = 4 , e ϕ ( 4 ) = 4 ; v ϕ * ( 0 ) = 5 , v ϕ * ( 1 ) = 5 , v ϕ * ( 2 ) = 5 , v ϕ * ( 3 ) = 4 , v ϕ * ( 4 ) = 4 .
Theorem 7.
The double comet graph D C ( n , M , m ) is an edge 5-product cordial for n 2 and M m 2 .
Proof. 
Let S 1 K 1 , M with center u n and S 2 K 1 , m with center u 1 . Then D C ( n , M , m ) = P n S 1 S 2 .
We define an edge labeling α for S 2 and the selected edges of S 1 by 0,1,2,3,4 evenly. Consider m = 3 p + q , where 0 q 2 . First, we assume p 1 .
  • For q = 0 , we label the edges of S 2 by 1, 2, 3 evenly and p , p edges of S 1 by 0 , 4 , respectively.
  • For q = 1 , we label p 1 , p , p , 2 edges of S 2 by 1 , 2 , 3 , 4 , respectively, and p , p 2 , 1 edges of S 1 by 0 , 4 , 1 , respectively.
  • For q = 2 , we label p , p , p , 2 edges of S 2 by 1 , 2 , 3 , 4 , respectively, and p , p 2 edges of S 1 by 0 , 4 , respectively.
Note that α * ( u 1 ) = 1 . Also e α ( i ) = p for all i and v α * ( 0 ) 1 = v α * ( 1 ) 1 = v α * ( j ) for 2 j 4 .
Now the unlabeled edges form C ( n , M 2 p + ϵ ) , where
ϵ = 0 if   q = 0 , 1 if   q = 1 , 2 if   q = 2 .
Hence, M 2 p + ϵ p + q + ϵ 2 except for M = m = 3 . By Theorem 6, there is an edge 5-product cordial labeling for C ( n , M 2 p + ϵ ) for M 2 p + ϵ 2 .
For M = m = 3 , C ( n , 1 ) P n + 1 = u 1 u n v 3 . We label this P n + 1 by the labeling f n + 1 defined in Lemma 9. Now we check the number of i-vertices.
Before labeling P n + 1 , we have α * ( v 1 ) = 0 = α * ( u n ) , α * ( v 2 ) = 4 , α * ( w 1 ) = 1 , α * ( w 2 ) = 2 , α * ( w 3 ) = 3 and α * ( u 1 ) = 1 . Suppose n + 1 7 . After labeling P n + 1 , the vertex u n is still 0-vertex and the vertex u 1 changes from 1-vertex to f n + 1 * ( u 1 ) . Thus α * ( u n ) = 0 and α * ( u 1 ) = 1 do not count towards the number of 0-vertices and 1-vertices. Thus, the combined labeling is an edge 5-product cordial labeling for D C ( n , 3 , 3 ) .
For n + 1 = 3 , 4 , 5 , the required labeling is shown in the following example.
Suppose m = 2 . If M 3 , then α ( u 1 w 1 ) = 2 , α ( u 1 w 2 ) = 3 , α ( u n v 1 ) = 0 , α ( u n v 2 ) = 1 and α ( u 1 v 3 ) = 4 . The unlabeled edges form C ( n , M 3 ) . The argument is similar to the cases above. If M = 2 , let α ( u 1 w 1 ) = 2 , α ( u 1 w 2 ) = 3 , α ( u n v 1 ) = 1 , α ( u n v 2 ) = 4 and α ( u 1 u 3 ) = 0 . The unlabeled edges form P n 1 . If n = 2 , then we have an edge 5-product cordial labeling for D C ( 2 , 2 , 2 ) . If n = 3 , then label u 1 u 2 by 1. We have an edge 5-product cordial labeling for D C ( 3 , 2 , 2 ) . If n 4 , then the labeling is the same as M = m = 3 . □
Example 9.
An edge 5-product cordial labelings for D C ( n , 3 , 3 ) , where n = 2 , 3 , 4 , 5 are shown in Figure 8.

6. Conclusions

The notion of edge k-product cordial labeling was introduced only in the year 2025, and the authors showed that star, bistar, and path unions of star graphs admit edge k-product cordial labeling. They also investigated the edge k-product cordial behavior of the shadow and the splitting graph of a star. In this work, we further explore the relationship between the number of edges and vertices labeled with 0 in edge k-product cordial trees and investigate the edge k- product cordiality of trees of order k. Also, we establish the edge k-product cordial properties of comet and double comet trees for k = 3 , 4 , and 5. It is noted that edge k-product cordial labeling is a recent concept, and only a limited study has been carried out. Future researchers have ample scope to identify the families of graphs that admit or do not admit edge k-product cordial labeling, and also to investigate the edge k-product cordial behavior of a larger number of standard graphs.

Author Contributions

Conceptualization, J.D.K.; Validation, M.Z.Y.; Writing—original draft, J.J.; Writing—review and editing, J.P. and W.-C.S.; Visualization, I.A.-D.; Supervision, J.P.; Funding acquisition, M.Z.Y. and I.A.-D. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported and funded by the Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University (IMSIU) (grant number IMSIU-DDRSP2502).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors sincerely thank the referees for their valuable suggestions to improve the presentation of the paper.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Appendix A. The Details About the Labelings for the Proof of Theorem 2

  • When q = 2 , 1 M 2 p 4 ( 4 p + 2 ) 2 p 4 = 2 p 2 , which implies p = 0 , 1 . That is, m = 2 , 6 .
    If m = 2 and M 4 1 , then M = 2 , 3 , 4 , 5 .
    (i)
    Suppose M = 2 and n 6 . Let α ( u 1 w 1 ) = α ( u 1 w 2 ) = 1 , α ( u n v 1 ) = α ( u n v 2 ) = 2 and α ( u n u n 1 ) = α ( u n 2 u n 1 ) = 0 . Then α * ( u n 2 ) = 0 . Also, v α * ( 0 ) 1 = v α * ( 1 ) = v α * ( 2 ) = 2 . We form a path P n 2 from the unlabeled edges. We combine α and f n 2 to get an edge 3-product cordial labeling for D C ( n , 2 , 2 ) , where f n 2 is defined in the proof of Lemma 3. For 2 n 5 , the required labeling is shown in Figure A1.
    Figure A1. Edge 3-product cordial labelings of D C ( 2 , 2 , 2 ) , D C ( 3 , 2 , 2 ) , D C ( 4 , 2 , 2 ) , and D C ( 5 , 2 , 2 ) .
    Figure A1. Edge 3-product cordial labelings of D C ( 2 , 2 , 2 ) , D C ( 3 , 2 , 2 ) , D C ( 4 , 2 , 2 ) , and D C ( 5 , 2 , 2 ) .
    Mathematics 13 03521 g0a1
    (ii)
    Suppose M = 3 and n 5 . Let α ( u 1 w 1 ) = α ( u 1 w 2 ) = 1 , α ( u n v 1 ) = α ( u n v 2 ) = 2 , α ( u n v 3 ) = 0 and α ( u n u n 1 ) = 0 . Then α * ( u n 1 ) = 0 . Also, v α * ( 0 ) 1 = v α * ( 1 ) = v α * ( 2 ) = 2 . We form a path P n 1 from the unlabeled edges. Combine α and f n 1 to get an edge 3-product cordial labeling for D C ( n , 3 , 2 ) , where f n 1 is defined in the proof of Lemma 3. For 2 n 4 , the required labeling is shown in Figure A2.
    Figure A2. Edge 3-product cordial labeling of D C ( 2 , 3 , 2 ) , D C ( 3 , 3 , 2 ) , and D C ( 4 , 3 , 2 ) .
    Figure A2. Edge 3-product cordial labeling of D C ( 2 , 3 , 2 ) , D C ( 3 , 3 , 2 ) , and D C ( 4 , 3 , 2 ) .
    Mathematics 13 03521 g0a2
    (iii)
    Suppose M = 4 . If n 4 , then by Remark 1, H C ( n , M 4 ) admits an edge 3-product cordial labeling. So we have to consider only n = 2 , 3 . Let α ( u 1 w 1 ) = α ( u 1 w 2 ) = 1 , α ( u n v 1 ) = α ( u n v 2 ) = 2 , α ( u n v 3 ) = α ( u n v 4 ) = 0 . Also, if n = 2 , then α ( u 1 u 2 ) = 1 and if n = 3 , then α ( u 1 u 2 ) = 1 , α ( u 2 u 3 ) = 2 . Hence, α is an edge 3-product labeling for D C ( n , 4 , 2 ) .
    (iv)
    Suppose M = 5 . If n 3 , then by Remark 1, H C ( n , M 4 ) admits an edge 3-product cordial labeling. So we have to consider only n = 2 . Let α ( u 1 w 1 ) = α ( u 1 w 2 ) = 1 , α ( u n v 1 ) = α ( u n v 2 ) = α ( u n v 3 ) = 2 , α ( u n v 4 ) = α ( u n v 5 ) = 0 , α ( u 1 u 2 ) = 1 . Hence, α is an edge 3-product labeling for D C ( 2 , 5 , 2 ) .
    When m = 6 , H C ( n , M 6 ) . If M 8 , then similar to the above case, D C ( n , M , 6 ) is an edge 3-product cordial. Therefore, we must consider only M = 6 , 7 .
    (i)
    Suppose M = 6 . We have to consider only n = 2 , 3 . By a similar method for labeling D C ( n , 4 , 2 ) , we obtain an edge 3-product labeling for D C ( n , 6 , 6 ) .
    (ii)
    Suppose M = 7 . We have to consider only n = 2 . By a similar method for labeling D C ( 2 , 5 , 2 ) , we obtain an edge 3-product labeling for D C ( 2 , 7 , 6 ) .
  • When q = 3 , we have 1 M 2 p 3 ( 4 p + 3 ) 2 p 3 = 2 p . This implies p = 0 that is, m = 3 . Now, H C ( n , M 3 ) . We have to consider only M = 3 , 4 .
    (i)
    Suppose M = 3 . We have to consider only n = 2 , 3 . By a similar method for labeling D C ( n , 4 , 2 ) , we obtain an edge 3-product labeling for D C ( n , 3 , 3 ) .
    (ii)
    Suppose M = 4 . We have to consider only n = 2 . By a similar method for labeling D C ( 2 , 7 , 6 ) , we obtain an edge 3-product labeling for D C ( 2 , 4 , 3 ) .
  • When q = 4 , we have 1 M 2 p 2 ( 4 p + 4 ) 2 p 2 = 2 p + 2 , which is not possible.
  • When q = 5 , we have 1 M 2 p 4 ( 4 p + 5 ) 2 p 4 = 2 p + 1 . This implies p = 0 that is, m = 5 . Now H C ( n , M 4 ) . We need to consider only M = 5 and n = 2 . By a similar method for labeling D C ( 2 , 5 , 2 ) , we obtain an edge 3-product labeling for D C ( 2 , 5 , 5 ) .

Appendix B. The Details About the Labelings for the Proof of Lemma 8

We define the labeling g : E ( C ( n , m ) ) { 1 , 3 } as follows:
  • Suppose m = 4 k 4 . We label u n v i by 1 for 1 i 2 k and u n v i by 3 for 2 k + 1 i 4 k . Here, the induced vertex label for u n is 1. Also, we label u n u 1 by 1, 3, 3, 1 evenly.
    If n 0 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) .
    If n 1 ( mod 4 ) , then g * ( u 1 ) = 1 and v g * ( 1 ) 1 = v g * ( 3 ) .
    If n 3 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) 1 .
    If n 2 ( mod 4 ) , then g * ( u n ) = 1 = g * ( u 1 ) and v g * ( 1 ) 2 = v g * ( 3 ) .
  • Suppose m = 4 k + 1 1 . If k 1 , we label u n v i by 1 for 1 i 2 k and u n v i by 3 for 2 k + 1 i 4 k . Here, the induced vertex label for u n is 1 (if k 1 ) and an edge u n v m is not labeled. Label the path v m u n u 1 by 1, 3, 3, 1 evenly. Here, g * ( u n ) = 3 .
    If n 3 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) .
    If n 2 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) 1 .
    If n 0 ( mod 4 ) , then g * ( u 1 ) = 1 and v g * ( 1 ) 1 = v g * ( 3 ) .
    If n 1 ( mod 4 ) , then g * ( u 1 ) = 1 and v g * ( 1 ) 2 = v g * ( 3 ) .
  • Suppose m = 4 k + 2 2 . We label u n v i by 1 for 1 i 2 k + 1 and u n v i by 3 for 2 k + 2 i 4 k + 2 ; and label u n u n 1 and u n 1 u n 2 by 3 and 1, respectively. Also, we label the path u n 2 u 1 by 1, 3, 3, 1 evenly. Here, the induced vertex label for u n and u n 2 are 1.
    If n 3 ( mod 4 ) , then g * ( u 1 ) = 1 and v g * ( 1 ) 1 = v g * ( 3 ) .
    If n 1 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) 1 .
    If n 2 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) .
    If n 0 ( mod 4 ) , then g * ( u n ) = 1 = g * ( u 1 ) and v g * ( 1 ) 2 = v g * ( 3 ) .
  • Suppose m = 4 k + 3 3 . We label u n v i by 1 for 1 i 2 k + 2 , u n v i by 3 for 2 k + 3 i 4 k + 3 and u n u n 1 by 3. Then g * ( u n ) = 1 and g * ( u n 1 ) = 3 . We label the path u n 1 u 1 by 1, 3, 3, 1 evenly.
    If n 0 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) 1 .
    If n 1 ( mod 4 ) , then g * ( u 1 ) = 3 and v g * ( 1 ) = v g * ( 3 ) .
    If n 2 ( mod 4 ) , then g * ( u 1 ) = 1 and v g * ( 1 ) 1 = v g * ( 3 ) .
    If n 3 ( mod 4 ) , then g * ( u n ) = 1 = g * ( u 1 ) and v g * ( 1 ) 2 = v g * ( 3 ) .

Appendix C. The Details About the Labelings for the Proof of Theorem 4

  • Suppose m + n = 4 N . When m < 2 N 1 , we split C ( n , m ) into two subgraphs, namely S 1 = C ( n 2 N , m ) and S 2 = P 2 N + 1 with a common vertex u 2 N + 1 . Note that, since N m + 1 , S 1 has at least N leaves. When m 2 N 1 , we split C ( n , m ) into two subgraphs, namely S 2 = C ( n , m 2 N + 1 ) and S 1 = K 1 , 2 N 1 with a common vertex u n . Recall that C ( n , 0 ) P n and C ( n , 1 ) P n + 1 .
    We label N pendant edges of S 1 by 2 and the remaining N 1 edges by 0 and denote this labeling by f. Then e f ( 2 ) = e f ( 0 ) + 1 = N , v f * ( 2 ) = v f * ( 0 ) = N and f * ( u 2 N + 1 ) = 0 .
    By Lemmas 7 and 8, we have a labeling g of S 2 , which satisfies the conditions (2) and (3) of Lemma 5.
  • Suppose m + n = 4 N + 1 . When m < 2 N , we split C ( n , m ) into two subgraphs, namely S 1 = C ( n 2 N , m ) and S 2 = P 2 N + 1 with a common vertex u 2 N + 1 . Note that, since N m + 1 , S 1 has at least N leaves. When m 2 N , we split C ( n , m ) into two subgraphs, namely S 2 = C ( n , m 2 N ) and S 1 = K 1 , 2 N with a common vertex u n . Similar to Case 1, we have the labelings f and g of S 1 and S 2 , respectively, which satisfies all the conditions of Lemma 5.
  • Suppose m + n = 4 N + 2 . Then, N m + 2 . First, we assume N m + 1 . When m < 2 N , we split C ( n , m ) into two subgraphs, namely S 1 = C ( n 2 N 1 , m ) and S 2 = P 2 N + 2 with a common vertex u 2 N + 2 . Note that, since N m + 1 , S 1 has at least N leaves. When m 2 N , we split the graph C ( n , m ) into two subgraphs, namely S 2 = C ( n , m 2 N ) and S 1 = K 1 , 2 N with a common vertex u n .
    We label N pendant edges of S 1 by 2 and the remaining N edges by 0. By Lemmas 7 and 8, we have a labeling g of S 2 satisfying the condition s (2) and (3) of Lemma 5 or the conditions (b) and (c) of Corollary 4.
    Suppose N = m + 2 . we split the graph C ( n , m ) into two subgraphs, namely S 1 = C ( n 2 N 2 , m ) P 2 and S 2 = u 2 u 3 u 2 N + 3 P 2 N + 2 such that V ( S 1 ) V ( S 2 ) = { u 2 N + 3 , u 2 } , where P 2 = u 1 u 2 . Now label N pendant edges of S 1 by 2 and the remaining N edges by 0. Also, label the edges of S 2 by 1,3,3,1 evenly, denoted by g. Finally, we have u 2 and u 2 N + 3 are 2-vertices. Consequently, the number of 0-vertices and 2-vertices are N + 1 and those of 1-vertices and 3-vertices are N.
  • Suppose m + n = 4 N + 3 . Then, N m + 2 . First, we assume N m + 1 . When m < 2 N , we split C ( n , m ) into two subgraphs, namely S 1 = C ( n 2 N 2 , m ) and S 2 = P 2 N + 3 with a common vertex u 2 N + 3 . When m 2 N , we split C ( n , m ) into two subgraphs, namely S 2 = C ( n , m 2 N ) and S 1 = K 1 , 2 N with a common vertex u n . Note that, the order of S 1 is 2 N + 1 . We label N pendant edges of S 1 by 2 and the remaining N edges by 0. By Lemmas 7 and 8, we have a labeling g of S 2 satisfying the conditions (2) and (3) of Lemma 5 or the conditions (b) and (c) of Corollary 4. We can check that the number of 0-vertices is N + 1 and the number of 2-vertices is N.
    Suppose N = m + 2 . We split C ( n , m ) into two subgraphs, namely S 1 = C ( n 2 N 3 , m ) P 2 and S 2 = u 2 u 3 u 2 N + 4 P 2 N + 3 such that V ( S 1 ) V ( S 2 ) = { u 2 N + 4 , u 2 } , where P 2 = u 1 u 2 . Now label N pendant edges of S 1 by 2 and the remaining N edges by 0. Also, label the edges of S 2 by 1,3,3,1 evenly, denoted by g. Finally, we have u 2 and u 2 N + 4 are 2-vertices. Consequently, the number of 0-vertices and 2-vertices are N + 1 ; and the number of 1-vertices and 3-vertices are either N or N + 1 and not both.

Appendix D. The Details About the Labelings for the Proof of the Sufficient Part of Theorem 5

  • Suppose k = 0 , 1 . We assume that M N 1 .
    1a.
    Suppose M + m + n = 4 N . We split the graph D C ( n , M , m ) into two subgraphs, namely S 1 = C ( 2 N M , M ) and S 2 = C ( 2 N m + 1 , m ) with a common vertex u 2 N m + 1 . Note that the order of S 1 and S 2 are 2 N and 2 N + 1 , respectively.
    We label N pendant edges of S 1 by 2 and the other edges of S 1 by 0. Consequently, we obtain N 2-vertices and N 0-vertices. By Lemma 8, we have a labeling g for S 2 such that u 2 N m + 1 is the major vertex. Combine these two labelings to get the required labeling for D C ( n , M , m ) .
    1b.
    Suppose M + m + n = 4 N + 1 . We split D C ( n , M , m ) into two subgraphs, namely S 1 = C ( 2 N M + 1 , M ) and S 2 = C ( 2 N m + 1 , m ) with a common vertex u 2 N m + 1 . Note that the order of S 1 and S 2 are 2 N + 1 . Similarly to the Case 1a, we have the required labeling for D C ( n , M , m ) .
  • Suppose k = 2 , 3 . Now, we assume that M N 2 .
    2a.
    Suppose M + m + n = 4 N + 2 .
    If M N 1 , then we split D C ( n , M , m ) into two subgraphs, namely S 1 = C ( 2 N M + 1 , M ) and S 2 = C ( 2 N m + 2 , m ) with a common vertex u 2 N m + 2 . Note that the orders of S 1 and S 2 are 2 N + 1 and 2 N + 2 . Similarly to Case 1a, we get the required labeling for D C ( n , M , m ) .
    If M = N 2 , let S 1 be the disjoint union of C ( 2 N M , M ) with P 2 = u 2 N m u 2 N m + 1 and S 2 is the disjoint union of C ( 2 N m , m ) with P 2 = u 2 N m + 1 u 2 N m + 2 .
    We label all the N pendant edges in S 1 by 2 and the other N edges by 0. Here, the induced labels of u 2 N m + 2 , u 2 N m + 1 and u 2 N m are 2. By Lemma 8, we have a labeling for C ( 2 N m , m ) such that u 2 N m is the major vertex. Now we label the edge u 2 N m + 1 u 2 N m + 2 by 1 or 3 to have the edge labels evenly. Hence, we obtain the required labeling.
    2b.
    Suppose M + m + n = 4 N + 3 .
    If M N 1 , then we split D C ( n , M , m ) into two subgraphs, namely S 1 = C ( 2 N M + 1 , M ) and S 2 = C ( 2 N m + 3 , m ) with a common vertex u 2 N m + 3 . Note that the orders of S 1 and S 2 are 2 N + 1 and 2 N + 3 , respectively. We label N pendant edges of S 1 by 2 and the other edges by 0. By Lemma 8, we have a labeling such that u 2 N m + 3 is the major vertex. We combine these two labelings to obtain the required labeling for D C ( n , M , m ) .
    If M = N 2 , let S 1 be the disjoint union of C ( 2 N M , M ) with P 2 = u 2 N m + 2 u 2 N m + 3 and S 2 is the disjoint union of C ( 2 N m + 2 , m ) with P 2 = u 2 N m + 3 u 2 N m + 4 . Similarly to Case 2a, we obtain the required labeling for D C ( n , M , m ) .

References

  1. Rosa, A. On Certain Valuations of the Vertices of a Graph, Theory of Graphs. In International Symposium, Rome, July 1966; Dunod Gordon & Breach Science Publishers, Inc.: Dunod, Paris, 1967; pp. 349–355. [Google Scholar]
  2. Gallian, J.A. A Dynamic Survey of Graph Labeling. Electron. J. Comb. 2023, #DS6. [Google Scholar]
  3. Cahit, I. Cordial graphs: A Weaker Version of Graceful and Harmonious Graphs. Ars Comb. 1987, 23, 201–207. [Google Scholar]
  4. Sundaram, M.; Ponraj, R.; Somasundaram, S. Product cordial labeling of graphs. Bull. Pure Appl. Sci. 2004, 23E, 155–163. [Google Scholar]
  5. Ponraj, R.; Sivakumar, M.; Sundaram, M. k-product cordial labeling of graphs. Int. J. Contemp. Math. Sci. 2012, 7, 733–742. [Google Scholar]
  6. Vaidya, S.K.; Barasara, C.M. Edge product cordial labeling of graphs. J. Math. Comput. Sci. 2012, 2, 1436–1450. [Google Scholar]
  7. Vaidya, S.K.; Barasara, C.M. On Edge product cordial Labeling of Some Product Related Graphs. Int. J. Math. Appl. 2014, 2, 15–22. [Google Scholar]
  8. Vaidya, S.K.; Barasara, C.M. Some Edge product cordial Graphs. Int. J. Math. Soft Comput. 2013, 3, 49–53. [Google Scholar] [CrossRef]
  9. Vaidya, S.K.; Barasara, C.M. Some New Families of Edge product cordial Graphs. Adv. Model. Optim. 2013, 15, 103–111. [Google Scholar]
  10. Thamizharasi, R.; Rajeswari, R. Edge Product Cordial Labeling and Total Magic Cordial Labeling of Regular Digraphs. Int. J. Inf. Sci. Comput. 2015, 9, 1–4. [Google Scholar] [CrossRef]
  11. Aboshady, M.; Elbarkouky, R.; Roshdy, E.; Abdel-Azim Seoud, M. Further Results on Edge Product Cordial Labeling. Proc. Pak. Acad. Sci. 2020, 57, 23–32. [Google Scholar]
  12. Prajapati, U.M.; Patel, N.B. Edge Product Cordial Labeling of Some Cycle Related Graphs. Open J. Discret. Math. 2016, 6, 268–278. [Google Scholar] [CrossRef]
  13. Prajapati, U.M.; Patel, N.B. Edge Product Cordial Labeling of Some Graphs. J. Appl. Math. Comput. Mech. 2019, 18, 69–76. [Google Scholar] [CrossRef]
  14. Prajapati, U.M.; Patel, N.B. Edge Product Cordial Labeling of Switching Operations on Some Graphs. TWMS J. Appl. Eng. Math. 2022, 12, 191–199. [Google Scholar]
  15. Bagga, K.S.; Beineke, L.W.; Goddard, W.D.; Lipman, M.J.; Pippert, R.E. A survey of integrity. Discret. Appl. Math. 1992, 37, 13–28. [Google Scholar] [CrossRef]
  16. Antalan, J.R.M.; Tagle, R.P. Some Reverse Topological Indices of Comet and Double Comet Graphs. Commun. Appl. Nonlinear Anal. 2025, 32, 71–83. [Google Scholar] [CrossRef]
  17. Bondy, J.A.; Murty, U.S.R. Graph Theory with Applications; MacMillan: New York, NY, USA, 1976. [Google Scholar]
  18. NourEldeen, N.M.; Jenisha, J.; Jeya Daisy, K.; Jeyanthi, P.; Abdel-Aal, M.E. Edge k-Product Cordial Labeling of Graphs. Eur. J. Pure Appl. Math. 2025, 18, 5887. [Google Scholar]
Figure 1. Edge 3-product cordial labeling of C ( 5 , 4 ) .
Figure 1. Edge 3-product cordial labeling of C ( 5 , 4 ) .
Mathematics 13 03521 g001
Figure 2. Edge 3-product cordial labeling of C ( 5 , 7 ) .
Figure 2. Edge 3-product cordial labeling of C ( 5 , 7 ) .
Mathematics 13 03521 g002
Figure 3. Illustration of edge 3-product cordial labeling of D C ( 7 , 8 , 6 ) .
Figure 3. Illustration of edge 3-product cordial labeling of D C ( 7 , 8 , 6 ) .
Mathematics 13 03521 g003
Figure 4. Edge 4-product labelings for C ( 9 , 2 ) , C ( 8 , 3 ) , and C ( 5 , 6 ) .
Figure 4. Edge 4-product labelings for C ( 9 , 2 ) , C ( 8 , 3 ) , and C ( 5 , 6 ) .
Mathematics 13 03521 g004
Figure 5. Edge 4-product labelings for C ( 10 , 2 ) and C ( 5 , 7 ) .
Figure 5. Edge 4-product labelings for C ( 10 , 2 ) and C ( 5 , 7 ) .
Mathematics 13 03521 g005
Figure 6. Edge 4-product labelings for C ( 16 , 2 ) and C ( 17 , 2 ) .
Figure 6. Edge 4-product labelings for C ( 16 , 2 ) and C ( 17 , 2 ) .
Mathematics 13 03521 g006
Figure 7. Edge 4-product labelings for D C ( 14 , 3 , 2 ) and D C ( 15 , 2 , 2 ) .
Figure 7. Edge 4-product labelings for D C ( 14 , 3 , 2 ) and D C ( 15 , 2 , 2 ) .
Mathematics 13 03521 g007
Figure 8. Edge 5-product labelings for D C ( 2 , 3 , 3 ) , D C ( 3 , 3 , 3 ) , D C ( 4 , 3 , 3 ) , and D C ( 5 , 3 , 3 ) .
Figure 8. Edge 5-product labelings for D C ( 2 , 3 , 3 ) , D C ( 3 , 3 , 3 ) , D C ( 4 , 3 , 3 ) , and D C ( 5 , 3 , 3 ) .
Mathematics 13 03521 g008
Table 1. Edge 3-product cordial labeling for P n , 4 n 9 .
Table 1. Edge 3-product cordial labeling for P n , 4 n 9 .
n f n e f n (0) e f n (1) e f n (2) v f n * (0) v f n * (1) v f n * (2)
4(1,2,0)111211
5(1,1,2,0)121221
6(1,2,2,1,0)122222
7(1,2,2,1,0,0)222322
8(1,2,2,1,1,0,0)232332
9(1,2,2,1,1,2,0,0)233333
Table 2. Edge 4-product cordial labeling for P n , 5 n 15 .
Table 2. Edge 4-product cordial labeling for P n , 5 n 15 .
nLabel the Edges in Orderv(0)v(1)v(2)v(3)
52,0,3,12111
62,0,2,3,12121
72,0,2,1,3,32122
82,0,2,1,3,3,12222
92,0,0,2,1,3,3,13222
102,0,0,2,1,3,3,1,33223
112,0,0,2,3,3,1,1,3,13323
142,0,0,0,2,1,3,3,1,1,3,3,24343
152,0,0,0,2,1,3,3,1,1,3,3,1,24344
Table 3. Edge 5-product cordial labeling for P n , 3 n 12 , except n = 5 .
Table 3. Edge 5-product cordial labeling for P n , 3 n 12 , except n = 5 .
n f n v f n * (0) v f n * (1) v f n * (2) v f n * (3) v f n * (4)
3(3,2)01110
4(1,2,4)01111
6(3,2,1,4,0)21111
7(1,3,2,1,4,0)22111
8(1,1,3,3,4,2,0)22121
9(1,2,4,1,4,3,2,0)22212
10(1,3,3,4,4,2,2,1,0)22222
11(1,3,3,4,4,2,2,1,0,0)32222
12(1,3,3,4,4,2,2,1,1,0,0)33222
Table 4. Edge labeling for P n , 3 n 12 and K 1 , r , 1 r 4 .
Table 4. Edge labeling for P n , 3 n 12 and K 1 , r , 1 r 4 .
n f n Priority for Numbers Added to K 1 , r
3(1,3)4,2,0,1
4(3,2,1)4,0,1,2
5(3,2,1,4)0,1,2,3
6(3,2,1,4,0)1,2,3,4
7(1,3,2,1,4,0)2,3,4,0
8(1,1,3,3,4,2,0)2,4,0,3
9(1,2,4,1,4,3,2,0)3,0,1,2
10(1,3,3,4,4,2,2,1,0)0,1,2,3
11(1,3,3,4,4,2,2,1,0,0)1,2,3,4
12(1,3,3,4,4,2,2,1,1,0,0)2,3,4,0
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Jeganathan, J.; Youssef, M.Z.; Kruz, J.D.; Pon, J.; Shiu, W.-C.; Al-Dayel, I. Edge k-Product Cordial Labeling of Trees. Mathematics 2025, 13, 3521. https://doi.org/10.3390/math13213521

AMA Style

Jeganathan J, Youssef MZ, Kruz JD, Pon J, Shiu W-C, Al-Dayel I. Edge k-Product Cordial Labeling of Trees. Mathematics. 2025; 13(21):3521. https://doi.org/10.3390/math13213521

Chicago/Turabian Style

Jeganathan, Jenisha, Maged Z. Youssef, Jeya Daisy Kruz, Jeyanthi Pon, Wai-Chee Shiu, and Ibrahim Al-Dayel. 2025. "Edge k-Product Cordial Labeling of Trees" Mathematics 13, no. 21: 3521. https://doi.org/10.3390/math13213521

APA Style

Jeganathan, J., Youssef, M. Z., Kruz, J. D., Pon, J., Shiu, W.-C., & Al-Dayel, I. (2025). Edge k-Product Cordial Labeling of Trees. Mathematics, 13(21), 3521. https://doi.org/10.3390/math13213521

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop