Let be a numerical semigroup and be an irreducible ideal of . The graph assigned to an ideal of is a graph with elements of as vertices, and any two vertices are adjacent if and only if . In this work, we give a complete characterization (up to isomorphism) of the graph having metric dimension 2.
1. Introduction
In algebraic combinatorics, the study of graphs associated with algebraic objects is one of the most important and fascinating fields of research. During the last couple of decades, a lot of research is carried out in this field. There are many papers on assigning graphs to rings, groups, and semigroups [1–6]. Several authors [7–13] studied different properties of these graphs including diameter, girth, domination, metric dimension, central sets, and planarity.
We start by defining some basic concept related to graph theory. A graph has a vertex set and the edge set . The cardinality of the vertex set and edge set is called the order and size of , respectively. A path in is a sequence of edges . A graph is connected if every pair of vertices is connected by a path. The distance between two vertices is denoted by and is the length of the shortest path between them. The diameter of is denoted by and is defined as the largest distance between the vertices of . Let be an ordered subset of . Then, the tuple is the representation with respect to . The vertex is said to be resolved by if for any vertex . The set is called resolving set of if distinct vertices of have distinct representations with respect to , and it is called basis of if it is a resolving set with minimal cardinality. The metric dimension of , denoted by , is the cardinality of basis. The concept of metric dimension was introduced by Slater [14] and later studied by Harary and Melter [15]. It has many applications, for example, robot navigation [16], pharmaceutical chemistry [17, 18], sonar and coast guard long range navigation [14], and combinatorial optimization [19].
Let be set of nonnegative integers. A subset is said to be numerical semigroup if the following holds:(1)(2) for all (3) is finite
It is easy to observe that the numerical semigroup is a commutative monoid. Thus, the set of numerical semigroups classifies the set of all submonoids of . The elements of the set are called gaps of , and the largest element of this set is known as Frobenius number. Note that every numerical semigroup is finitely generated; that is, there exist a set such that . Moreover, every numerical semigroup has a unique minimal system of generators. The cardinality of the minimal system of generators is called embedding dimension of . It is denoted by . A subset of numerical semigroup is ideal (integral ideal) of if for all and and the element . An ideal is called irreducibly ideal if it cannot be written as intersections of two or more than two ideals which contained it properly. For more details on theory of numerical semigroup, the interested readers can refer to [20].
Recently, several authors studied the metric dimension of the graphs associated with the algebraic objects. Soleymanivarniab et al. [21] gave some metric dimension formula for annihilator graphs. Bailey et al. [22] studied the constructions of resolving sets of Kneser and Johnson graphs and provided bounds on their metric dimension. Faisal et al. [23] studied the metric dimension of the commuting graph of a dihedral group. The metric dimension of a zero-divisor graph of a commutative ring was studied in [13], while the metric dimension of a total graph of a finite commutative ring was studied in [24]. For more results on the metric dimension, we refer the readers to [25–30].
2. Notation and Preliminaries
Let be a numerical semigroup, where is the minimal system of generators of . Then, every has a representation of the form , where are nonnegative integers. Let be a fixed integer. We say that an element has a -representation if there exist and positive integers such that ; that is, can be written as linear combination of exactly generator of . Let denote the set containing all the elements , which have a representation. It is easy to see that
Note that an element may have more than one representations. For an element , we use the notation if it has a unique representation and if it has number of representations. Let , then there exist two -tuples, the coefficients tuple , and the generators -tuple such that . We denote the coefficient and generators tuple of an element by and , respectively. Also, the -th component of and is denoted by and , respectively. By using the above notations, for any , we define
For a -representation , we set
Lemma 1. With the notations defined above, we have
Proof. The proof of this lemma follows from the definition of .
Let be a numerical semigroup and be irreducible ideal of . Binyamin et al. [31] assigned a graph to numerical semigroup and studied its properties. Peng Xu et al. [32] assign a graph to the ideal of numerical semigroup with vertex set and two vertices are adjacent if and only if . Barucci [33] showed that every irreducible ideal of numerical semigroup can be expressed in the form , where , for some . Hence, the vertex set of the graph is the set for some . Peng Xu et al. [32] proved that the graph is always connected and diameter 2. The aim of this paper is to find all the graphs having metric dimension 2. The following result by Chartrand et al. [18] gives bound on the order of graph with given metric dimension and diameter .
Theorem 1. Let be a graph with metric dimension and . Let be the diameter of . Then, .
Hence, to find graphs with metric dimension 2, it is enough to classify all graphs of order less than or equal to 6. In the next section, we give bounds for the graphs of orders 4 and 5.
2.1. Bounds for the Graphs of Orders 4 and 5
Lemma 2. Let be a numerical semigroup of embedding dimension . Then, , if one of the following holds:(1) for some .(2).(3).(4) and .(5) and .
Proof. (1)If for some , then there is a -representation of in . This gives . This implies .(2)If , then there are with . We assume that and then . This gives , and therefore, .(3)If , then we have with . One can easily see that must contain , , , , and . Therefore, .(4) Lemma 1: If and then there is the unique 2-representation of . Now if for some then from (1), it follows that , and if for all , then gives . So if , then ; otherwise, . Consequently, .(5)If and , then we can assume and . This gives are in , and therefore, .
Lemma 3. Let be a numerical semigroup of embedding dimension . Then, , if one of the following holds:(1) for some .(2).(3).(4) and .
Proof. This lemma can be proved in a similar way as we proved Lemma 2.
2.2. Computation of Irreducible Ideals for the Graphs of Orders 4 and 5
Lemma 4. Let be a numerical semigroup of embedding dimension . If , then is one of the following:(1).(2) and .(3) and .
Proof. If , then from Lemma 2, it follows that satisfies one of the following conditions: and , . , and , .If and , , then has a unique 1-representation . By Lemma 1, we get . As , it follows that . This gives case (1).
Now if and , , then there are exactly two 1-representations, say and of . Assume that , then and is not a multiple of . Then, it follows from Lemma 1 thatWe show that . Let for some with . Then, , and we get . This gives , a contradiction. Therefore, we have . As , and is the only possibility. This gives case (2).
Let and , . Then, we can assume and are the only possible 1-representation and 2-representation of , respectively. By (2) in Lemma 2, we have . In this case, it is easy to see that . Then, gives and we get case (3).
Lemma 5. Let be a numerical semigroup of embedding dimension . If , then is one of the following:(1).(2).(3) and .(4) and .
Proof. Given that , then from Lemma 5, it follows that satisfies one of the following conditions: and , . and , . , and , .These possibilities can be checked in a similar way as we did in Lemma 4 to get the required result.
3. Graphs with Metric Dimension 2
Theorem 2. There are exactly 5 nonisomorphic graphs with metric dimension 2.
We prove Theorem 2 in a sequence of following lemmas.
Lemma 6. There are exactly 2 nonisomorphic graphs with 4 or less vertices and metric dimension 2.
Proof. It is trivial to note that no such graph exists for .
Now if , then from Lemma 4, we have the following possibilities:(1) with , .(2) with , .(3) with , .If (1) holds, then , and therefore, is isomorphic to the graph given in Figure 1. So metric dimension of is 2.
Now if (2) or (3) holds, then either or . In both cases, is isomorphic to the graph given in Figure 2, and therefore, metric dimension of is 2.