Abstract

A source detection problem in complex networks has been studied widely. Source localization has much importance in order to model many real-world phenomena, for instance, spreading of a virus in a computer network, epidemics in human beings, and rumor spreading on the internet. A source localization problem is to identify a node in the network that gives the best description of the observed diffusion. For this purpose, we select a subset of nodes with least size such that the source can be uniquely located. This is equivalent to find the minimal doubly resolving set of a network. In this article, we have computed the double metric dimension of convex polytopes and by describing their minimal doubly resolving sets.

1. Introduction and Preliminaries

Let be a finite and connected graph with vertex set and edge set . The cardinality of and is called the order and the size of the graph , respectively. For any two vertices and of graph , the number of edges in a shortest path between the vertices and is called the distance between them and is represented as . A vertex is said to resolve two vertices and if is not equal to . Consider be an ordered set and be a vertex of ; then, the representation of with respect to is the -vector . The set is called a resolving set for graph if any vertex of has unique representation with respect to . A resolving set having least number of vertices is called a metric basis of . represents cardinality of metric basis and is known as the metric dimension of . For the notions that are used and not defined in this paper, we refer [1, 2].

In graph theory, the notion of minimal resolving sets were first defined in [3, 4] by Slater, Harary, and Melter independently. Slater used the metric dimension as location number of the graph. He used this concept by placing sonar/loran detecting devices with the least cardinality in such a way that the location of each vertex is unique with respect to its distances from the devices in the network. The idea of trilateration in real two-dimensional plane can be generalized in terms of the metric dimension of graphs. For instance, in Global Positioning System (GPS), three satellites in orbit uniquely determine the location of an object on earth by using distances. Also, for the theoretical study of the metric dimension, there are many inspirational applications regarding robot navigation [5] and chemical structure [6]. Different coin weighing problems discussed in [7, 8] and complete analysis of Mastermind game found in [9] have strong connections with the metric dimension of hamming graphs. Many applications of this concept have been explored in different fields such as geographical routing protocols [10], combinatorial optimization [11], network discovery and verification [12], pharmaceutical chemistry [6], etc. [13].

It is a computationally difficult problem to determine the exact value of the metric dimension of arbitrary graphs. Therefore, some useful bounds have been found for different classes of graphs.

Chartrand et al. [6], in 2000, characterized all graphs with metric dimension , , and 1. Buczkowski et al. [14] and Tomescu and Javaid [15] determined the metric dimension of wheel graphs and Jahangir graphs, respectively. Ali et al. [16] studied the metric dimension of Mobius ladders. They proved that Mobius ladders constitute a family of cubic graphs with constant metric dimension. Baca et al. [17] computed the metric dimension of regular bipartite graphs. Imran and Baig [18, 19] determined the metric dimension for some classes of convex polytopes. In 2015, Tomescu and Imran used sets for the computation of the metric dimension of necklace graphs [20]. Ahmad et al. computed the metric dimension for the families of kayak paddle graphs and chorded cycles (for details, see [2123]).

It is an interesting challenge in complex networks to localize the epidemic source. For example, in order to find a mysterious source of virus spreading throughout the network, the only information needed to identify the mysterious source is the infection times of the subset of vertices known as sensors. These sensors may record their least time of being infected. Now, the main problem consists of determining how many sensors are needed to assure that the virus source is exactly located. The characteristic known as the double metric dimension is the answer of this problem (see [24]).

The recognition of the virus source might be straightforward if one can notice the whole procedure of the spreading of virus. Unfortunately, the whole procedure might be very expensive because of the cost of collecting information. If the starting time of epidemic spread is not known, in that case accurate recognition of infection source is possible if and only if the network sensor set is a doubly resolving set.

Cáceres et al. presented the doubly resolving sets by demonstrating its relation with the metric dimension of the Cartesian product of the graph and also proved that the least cardinality of a doubly resolving set is an upper bound of the metric dimension of the graph under consideration (see [25]). For , are said to doubly resolve if . If any two vertices of are doubly resolved by some two vertices in , then is termed doubly resolving set of . In other words, there do not exist such that for some , and is a vector of length with all entries equal to 1. Such of least cardinality is known as minimal doubly resolving set and its cardinality is called the double metric dimension of represented by . It should be noted that, for and , or implies to be also a resolving set. Consequently, for any graph , we have . The NP-hardness of and were proven by Khuller et al. in [5] and Kratica et al. in [26], respectively.

In [24], it was discussed that to identify the virus source in a star-like network is more difficult compared to that in a path-like network. A star graph with vertices must have a doubly resolving set consisting of all the external vertices, which show the double metric dimension is , and for the path graph, it is 2. This also implies that the double metric dimension always depends upon the topology of network.

In [27], the metric and double metric dimensions were found to be equal in case for some families of the circulant graph. Prism graphs, hamming graphs, and some convex polytopes have been discussed in the context of the double metric dimension in [2830]. Ahmad et al. determined the minimal doubly resolving sets for some families of Harary graphs (see [31]). Chen et al. [32] provided the first explicit approximation lower and upper bounds for the minimum doubly resolving set problem. In [33, 34], Ahmad et al. have determined the metric and double metric dimensions for the line graphs of prism graphs, -sunlet graphs, and kayak paddle graphs.

The convex polytopes in the context of metric dimension had been studied widely by many authors in last few years. The computation of the double metric dimension in convex polytopes is a challenging problem nowadays. In this paper, we compute the double metric dimensions of convex polytopes and defined by Baca in [35]. Imran et al. [36] determined the metric dimensions of these convex polytopes given in the following theorems:

Theorem 1. Let be the graph of convex polytopes; then, for every .

Theorem 2. Let be the graph of convex polytopes; then, for every .

The above results are also useful in finding the lower bound of the double metric dimensions of convex polytopes and .

The remaining portion of the article is structured as follows.

The double metric dimension for the convex polytopes and is described in Sections 2 and 3, respectively. Finally, we conclude in Section 4 that the double metric dimension for the convex polytopes and is constant.

2. The Double Metric Dimension for the Convex Polytope

This section will particularly focus to find out the double metric dimension for convex polytope . The graph of convex polytope consists of three-sided, four-sided, and -sided faces, as illustrated in Figure 1.

We label the vertices of the inner cycle by , the vertices of the center cycle by , and the vertices of the outer cycle by , as demonstrated in Figure 1.

Theorem 1 implies that , for . Furthermore, we will show that , for . Now, to calculate distances for the convex polytope , define is the set of vertices in at distance from . For with , we can find the sets that are elaborated in Table 1. Obviously, it can be seen from Figure 1 that , when , for even and , when , for odd . Note that the sets can clearly be used to find the distance between the two arbitrary vertices of as follows.

The symmetry in Figure 1 shows that

For odd values of , we have

For even values of , we have

As an outcome, if the distance is known for each , then one can recreate the distances between any two vertices of .

Lemma 1. for , whenever is even.

Proof. According to the set , the representations of is explained in Table 2.
Now, from Table 2, the first metric coordinate of the vector of is equal to 1. Similarly, it can be observed that there are no two vertices , for every such as . Thus, there are no two vertices and , for any , such as . Therefore, the set is the minimal doubly resolving set. Hence, Lemma 1 holds.

Lemma 2. , for , whenever is odd.

Proof. The minimal doubly resolving sets for and areNow, Table 3 demonstrates that the representations of in relation to the set .
Now, from Table 3, the first metric coordinate of the vector of is equal to 1. Similarly, it can be observed that there are no two vertices , for every such as . Thus, there are no two vertices and , for any , such as . Therefore, the set is the minimal doubly resolving set. Hence, Lemma 2 holds.

It is displayed from the whole technique that , for . The statement of the theorem by using Lemmas 1 and 2 is mentioned below.

Theorem 3. Let be the convex polytope; then, for .

3. The Double Metric Dimension for the Convex Polytope

This section will particularly focus to find out the double metric dimension for convex polytope . The graph of convex polytope consists of three-sided, four-sided, five-sided, and -sided faces, as demonstrated in Figure 2.

We label the vertices of the inner cycle by , the vertices of the interior cycle by , the set of exterior vertices by , and the vertices of the outer cycle by , as demonstrated in Figure 2.

Theorem 2 implies that , for . Furthermore, we will show that , for .

Now, to calculate distances for the convex polytope , define is the set of vertices in at distance from . For with , we can find the sets that are elaborated in Table 4. Obviously, it can be seen from Figure 2 that , when , for even , and , when , for odd . Note that the sets can clearly be used to find the distance between the two arbitrary vertices of as follows.

The symmetry in Figure 2 shows that

For odd values of , we have

For even values of , we have

As an outcome, if the distance for every is known, then one can recreate the distances between any two vertices of .

Lemma 3. , for , whenever is even.

Proof. The representations of according to the set are explained in Table 5.
Now, from Table 5, the first metric coordinate of the vector of is equal to 1. Similarly, it can be checked that there are no two vertices , for every such as . Thus, there are no two vertices and , for any , such as . Therefore, the set is the minimal doubly resolving set. Thus, Lemma 3 holds.

Lemma 4. , for , whenever is odd.

Proof. The minimal doubly resolving sets for , , and areThe representations of convex polytope according to the set are explained in Table 6.
Now, from Table 6, the first metric coordinate of the vector of is equal to 1. Similarly, it can be checked that there are no two vertices , for every such as . Thus, there are no two vertices and , for any , such as . Therefore, the set is the minimal doubly resolving set. Hence, Lemma 4 holds.

It is displayed from the whole technique that , for . The statement of the theorem by using Lemmas 3 and 4 is mentioned below.

Theorem 4. Let be the convex polytope, then , for .

4. Conclusion

Despite of the fact that determining the minimal resolving sets of general graphs is computationally tough, the metric dimension has been gaining all the attention due to its applications in the different fields such as computer networking, navigation of robots, sonar technology, and optimization problems. The doubly resolving sets are a reasonable tool to successfully diagnose the source of infection within a network. The metric and double metric dimensions are NP-hard in general case.

The focus of article was the computation of the double metric dimension regarding convex polytopes and . We conclude that the double metric dimension of these classes of plane graphs is finite and independent of the number of vertices in these graphs. Just three vertices suitably picked up are sufficient to doubly resolve all the vertices of these classes of plane graphs.

Data Availability

All data used to support the findings of the study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Authors’ Contributions

All authors contributed equally to this study.

Acknowledgments

This research work was funded by Baoji Education Institute of Shaanxi, China, and University of Management and Technology, Pakistan.