Abstract
In 2008, J. Skowronek-kaziw extended the study of the clique number to the zero-divisor graph of the ring , but their result was imperfect. In this paper, we reconsider of the ring and give some counterexamples. We propose a constructive method for calculating and give an algorithm for calculating the clique number of zero-divisor graph. Furthermore, we consider the case of the ternary zero-divisor and give the generation algorithm of the ternary zero-divisor graphs.
1. Introduction
Abstract algebraic systems can be described more directly by studying algebraic systems with graph properties. Some of the results [1–4] showed that nonisomorphic algebraic systems have the same zero-divisor graph, which indicates that there may be some common characteristics among nonisomorphic algebraic systems. The zero-divisor graphs (ZDG) of commutative rings is a very active intersection of commutative algebra and graph theory. In 1988, Beck [5] illustrated the concept of ZDG of a commutative rings and proved that there is a one-to-one mapping between its chromatic number and its clique number . However, Anderson and Naseer [6] gave a counterexample on commutative local rings and denied this correspondence. By modifying the definition of the ZDG, the relationships between ZDG and commutative rings have aroused great interest among scholars [7–10]. Many different problems from bioinformatics and electrical engineering have been modeled by using cliques [11–14]. Tian et al. [15] proposed a password leak detection scheme based on a topological graph, using topological sequence to generate false user’s passwords and enhance the safety of the user’s passwords. Through the analysis of the structure of the topological graph, it was found that the zero-divisor graphs can also be applied to construct the password leak detection scheme. This scheme based on honeywords (false password) is helpful to enhance the security of password files in the system.
Owing to the important properties of ZDG, some scholars have extended the relevant concepts to noncommutative rings, and some interesting results have been obtained [16, 17]. Anderson and Weber [18] investigated the ZDG of , where does not contain an identity. Patil and Waphare [19] characterized the ZDG of a ring with involution. Mulay [20] classified the cycle structure of the ZDG and established some group-theoretic properties of the group of graph-automorphisms. Das et al. [21] proved the upper bound of the oriented relative clique number of a planar graph to 32. Estaji and Khashyarmanesh [22] studied the properties of ZDG on finitely bounded lattices £, which are closely related to Boolean algebra. Patil and Momale [23] proved the relationship between idempotent graphs and zero-divisor graphs over a ring . Bennis et al. [24] characterized powers of zero-divisors graph based on the parametrized family of graphs and investigated the diameter and girth of -extended zero-divisor graphs.
In the commutative ring, Anderson and Livingston [25] studied the general relationship between the graph structure properties of the ZDG and the ring structure properties of . In 2004, Akbari and Mohammadian [26] studied the relationship between the chromatic number of and its degree. Skowronek-kaziw [27] proved the one-to-one relationship between the clique number and the maximum degree of and gave the calculation method, but his result was imperfect.
In this paper, we reconsidered the ZDG of and gave some counterexamples. The method of calculating clique number is constructive. In Theorem 3, the construction method of the vertex set in the maximal cliques is given. On this basis, we introduce the ternary zero-divisor graph and give the calculation formula of three factors. In Section 3, we give an algorithm for calculating the clique number and the generation algorithm of the ternary zero-divisor graph, and the validity of the algorithm can be verified by Python programming.
2. Main Results
A clique is a subgraph of , any two of its vertices are connected by edges, and the order of the maximum clique in a graph is its clique number [28, 29]. A subgraph with nodes is referred to as a clique with dimension if every two different nodes in the have edges connected. The minimum number of colors that can be used to color the edges of is called the edge chromatic number, which is represented by . The maximum degree of is represented by . The node chromatic number of a graph is the minimum for which has a coloring. The ZDG of the rings is denoted by , and the node-set of the graph is , in which any two nodes and which have connected edges if and only if and . It is found that is a connected graph [30]. The graph is a graph with a vertex set in , where every two vertices and have connected edges if and .
In this section, we give some counterexamples about the clique number of , for example, let us set , and through the analysis of the clique number, we find that contains 30, 42, 70, and 210, so the clique number is 4, and let us set , we find that the vertices that satisfy the definition of are 6, 18, 36, 54, 72, and 90, so the clique number is 6. We give a method for calculating the clique number of . At the same time, we give some examples. Let be the prime power factorization of , where are different primes and , .
Definition 1. The ZDG of the rings is denoted by , and the node-set of the graph is , in which any two nodes and have connected edges if and only if and .
Theorem 1 (see [28],Vizing’s theorem). For every graph , , we have either or .
Theorem 2 (see [27]). The largest degree in has the node , and the largest degree is .
Theorem 3. If is a positive integer, all are equal to 1, then the clique number of the graph is equal to . If (where a is a positive integer, a >1, and all ), the clique number is . Otherwise, the clique number iswhere are even and are odd.
Proof. According to Definition 1, as long as the weight product of any two vertices is a multiple of , the result of the modular operation on is 0, and these vertices are in the set of the zero-divisor graph clique numbers. Based on this consideration, we only need to find that the weight value product of any two vertices is a multiple of . The problem of solving the maximal clique is transformed into the problem of solving the set of any two vertices whose weights are multiples of . Three cases are considered, respectively.(i)If is square-free, let , where are distinct primes. We consider the set , the product of every pair elements of the set is a multiple of , i.e., the elements of is in the vertices set of , and there are no more elements in . Thus, the clique number that satisfies the condition is equal to .(ii)If all are even, we investigate . Obviously, in the set composed of multiples of , the product of any two elements is a multiple of , and the set composed of these elements is the largest, that is, no larger set satisfies this feature. Then, the element and the elements form a clique number of . By the construction of element , it is not difficult to find that the product is the largest multiple of in ring , and the clique number that satisfies the condition is equal to .(iii)If are even and odd numbers, let , () are even, are odd, and satisfies the relation , , , , and satisfy the relation . In the following review of the clique number discussion, we use mathematical induction, and the purpose is to prepare for the later algorithm design.If , , and let . We consider the set . The product of every pair elements of the set is a multiple of , i.e., the elements of are in the vertices set of . By the construction of element , it is not difficult to find that the product is the largest multiple of in ring , and the clique number that satisfies the condition is equal to .
If , , and let . We consider the set . The product of every pair elements of the set is a product of , i.e., the elements of is in the vertices set of . By the construction of element , it is not difficult to find that the product is the largest multiple of in ring , and the clique number that satisfies the condition is equal to .
Repeat the process by using mathematical induction.
If , let , and . Let . We consider the set . The product of every pair elements of the set is a multiple of , i.e., the elements of is in the vertices set of . By the construction of element , it is not difficult to find that the product is the largest multiple of in ring , and the clique number that meets the condition is . Of course, the number .
Through the above analysis, we conclude that the number of elements satisfying the condition is equal toThe proof is complete.
We give some examples of calculating the number of the clique number in the ZDG, and the validity of the algorithm can be verified by Python programming.
In this paper, we present ZDG for by Python. Figure 1 shows the structure of the ZDG of , which is completely symmetric. The clique number of ZDG of is 2, and the sets that satisfy the zero-divisor condition are = \{2, 10\}, = \{6, 10\}, = \{14, 10\}, = \{18, 10\}, = \{4, 10\}, = \{8, 10\}, = \{12, 10\}, = \{16, 10\}, = \{4, 5\}, = \{5, 8\}, = \{5, 12\}, = \{5, 16\}, = \{4, 15\}, = \{8, 15\}, = \{12, 15\}, and = \{15, 16\}. There are 16 sets that satisfy this condition, and these sets are isomorphic. Figure 2 shows the structure of the ZDG of , which is also completely symmetric. The two-way arrow indicates that the condition of ZDG of is satisfied between two points, where the triangle formed by the bold line is the element of the number of clusters of the ZDG of , which include 10, 12, and 15. Figure 3 shows the structure of the ZDG of , which include 7, 14, 21, 28, 35, and 42. Figure 4 shows the structure of the ZDG of . The number of elements which satisfying the condition is 4, which include 6, 30, 45, and 60.




To further investigate the properties of the zero-divisor graphs, we generalize the number of zero-divisor graphs satisfying Definition 1 to three, namely, all zero-divisor graphs satisfying equation , where is a positive natural number; the product of any three positive natural numbers is a multiple of ; after the product takes the modulus of , the result is zero, which we call zero-divisor. The three zero-divisor elements represent the weight values of vertices and edges in graph , respectively.
Definition 2. The zero-divisor graph of the rings is denoted by , and the node-set of the graph is , in which any three nodes , , and have connected edges if and only if and , , and . In the triple , we specify that the first element and the third element represent two vertices of the zero-divisor graph, and the second element represents the edge weight values of the zero-divisor graph.
Theorem 4. Suppose , , and are positive integers, where , , and are different from each other and satisfy the following 3-tuples congruence equation:When is taken of different values, the number of triples formed by the solutions to equation (3) is given byFor the sake of convenience, the symbol represents the set of solutions for all the positive integers satisfying the 3-tuples congruence equation, represents the number of elements in the set , represents the set that contains , , represents the set that contains , , , and represents the set that contains multiple of .
Proof. If , according to Definition 2, it is not difficult to find that set is empty. is a prime number, and then set is empty.
The following assumes that is a composite number, according to the fundamental arithmetic theorem, and we have the standard decomposition of which iswhere are different primes and , .
We discuss the value of in the following situations, and the method discussed is similar when takes other values. According to the prime factorization of integer , we divide the elements in the interval into two disjoint sets and select the elements from different sets to generate the multiple of . Obviously, the product of elements satisfying the multiple of also satisfies equation (1). Based on this idea, we have the following discussion:(i) The number of elements is . Since , , the number of elements is , and the number of elements is . By the permutation and combination formula, we can get In this case, is calculated from equation (6).(ii) The number of elements is . Since , , the number of elements is , and the number of elements is . By the permutation and combination formula, we can get In this case, is calculated from equation (7).(iii) The number of elements is , the number of elements is , the number of elements is , and the number of elements is . By the permutation and combination formula, we have In this case, is calculated from equation (8).(iv) The number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is . For the sake of writing conveniently, is abbreviated as , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , and represents the set . By the permutation and combination formula, we have In this case, is calculated from equation (9).(v) The number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , the number of elements is , and the number of elements is . represents the set represents the set , represents the set , represents the set , represents the set , represents the set , represents the set , and represents the set . The number of elements is . By the permutation and combination formula, we have In this case, is calculated from equation (10). This completes the proof.
In Figures 5–8, the zero-divisor graphs corresponding to different are given. With the increase of , the number of edges of the zero-divisor graphs shows a rapid increase trend, but the number of the corresponding maximum clique does not change significantly, which indicates that the zero-divisor graphs are characterized by sparsity. The clique number of is 5. The vertices set of maximal clique is . The set of maximal clique elements is . The clique number of is 4. The vertices set of maximal clique is . The set of maximal clique elements is . The clique number of is 3. The vertices set of maximal clique is . The set of maximal clique elements is . The clique number of is 5. The vertices set of maximal clique is . The set of maximal clique elements is .




3. The Clique Number Algorithm and Some Examples
3.1. Clique Number Algorithm
The Clique number algorithm is detailed in Algorithm 1. The speed at which the clique number on the ring is solved depends on the prime factorization of the integer. If the integer is a composite number, according to the discussion of Theorem 3, the clique number is solved in three cases, in one case, the indexes are all 1, in the second case, the indexes are all even, and in the third case, the number of odd and even indexes is at least 1. It is not difficult to find that the number of the clique number is closely related to the prime factors and indicators of integers. The zero-divisor graph of three factors is given by Algorithm 2, and the formula of the solution of the ternary is given by Theorem 4. We find that the complexity of solving zero-divisor is increasing rapidly with the difference of the number and index of prime factors.
|
|
3.2. Examples
(1)If , based on Theorem 3, the clique number of satisfying the condition is 3. The vertices set of is .(2)If , based on Theorem 3, the clique number of that meets the criteria is 3. The vertices set of is .(3)If , then based on Theorem 3, the clique number of that meets the criteria is 141.(4)If , then based on Theorem 3, the clique number of satisfying the condition is 106.(5)If , then based on Theorem 3, the clique number of satisfying the condition is 2. The vertices set of is .
4. Conclusions
Through the induction and classification discussion methods, we simplified the calculation of the clique number and constructed an algorithm to calculate the clique number in the ZDG. Through analysis, it is found that the ZDG satisfies the properties of high symmetry and degree centrality. The so-called degree centrality refers to that a very large scale of edges are connected by very few vertices, at the same time, other edges are joined by very few vertices. Furthermore, we discussed the calculation of the ternary zero-divisor graph and gave the algorithm of the ternary zero-divisor graph. By analyzing Theorem 4, we found that the number of zero-divisor solutions is given by fractional polynomials, and the complexity of solving zero-divisor solutions increases rapidly with the increase of the number of prime factors.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that they have no conflicts of interest or personal relationships that could have appeared to influence the work reported in this paper.
Acknowledgments
This work was supported in part by the National Key Research and Development Program of China (Grant no. 2020YFB1805403), the National Natural Science Foundation of China (Grant nos. 62032002, 61972051), and the Natural Science Foundation of Beijing Municipality (Grant no. M21034).