Figures
Abstract
A model for mobility of robots keeping the property of uniquely recognizing the vertices of a given network is considered in this work. This is made in order to detect failures or intruders, by means of dynamic vectors of distances to the set of mobile robots. We consider the smallest set of robots that can be placed in a set of nodes of a network that forms a resolving set, which is a structure of a graph such that it uniquely recognizes all the vertices of the graph by using distances. We are then focused on allowing such robots to move from one vertex to another adjacent one, through the edges of the whole graph. At each performed movement we require that the new set of covered nodes forms a resolving set. This process allows the robots to recognize all the vertices of the graph, independently on the position in which they are located. In this sense, the notion of mobile metric dimension is introduced in this article, and the study of its primary combinatorial properties is initiated. We relate this parameter with the classical metric dimension and the resolving number of graphs and compute its value for several graph classes.
Citation: Camacho Campos C, Camacho Moreno JC, Kuziak D, Raza Z, Yero IG (2025) A model of mobile robots in networks with resolvability properties. PLoS One 20(6): e0325565. https://doi.org/10.1371/journal.pone.0325565
Editor: Sergio Consoli, European Commission, ITALY
Received: January 10, 2025; Accepted: May 13, 2025; Published: June 17, 2025
Copyright: © 2025 Camacho Campos et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: We are using no data in our investigation.
Funding: This investigation has been partially supported by “Ministerio de Ciencia, Innovación y Universidades” through the grant PID2023-146643NB-I00, and by the University of Cadiz Research Plan, Reference PB2025-035.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
The location of intruders or failures in networks, as well as, the mobility of robots keeping a certain property on the movements of the robots are typical problems in computer engineering, as well as, in several other scientific areas. In this work, our aim is to consider a mobility situation of robots in a network, while maintaining the property of uniquely recognizing the elements of the network. This situation is studied in order to detect failures or intruders, by means of dynamic vectors of distances to the set of mobile robots.
A resolving set S in a graph G (subset of vertices of such G) represents a structure with the property that each vertex of G is uniquely represented by a vector of distances to the vertices of S. This uniqueness capability of S has been crucial while designing monitoring systems or robot navigation models in networks, which might be somehow understood to be similar to a set of satellites required for GPS to efficiently work. Some considerations on these directions have appeared in [4,18,24]. A natural setting requires then for an optimal (as smallest as possible) number of recognition devices (elements in the resolving set - also called “landmarks”). In addition, the same recognition feature existing in such landmarks in a network can be meaningful while tracing the development of a disease that spreads between communities of people. On the other hand, according to [30], such resolving sets can be used to identify source points of misinformation in networks.
Some other applications of related resolving parameters are known in the literature. Among them, the reader can find applications to pharmaceutical sciences in [21,22]; to pattern recognition and image processing in [27]; to the design of error correcting codes in [1]; and to measuring the privacy in social networks against active attacks in [31]. With respect to this last remarkable application, the recent work [9], published in the reputed journal Scientific Reports, has given a privacy evaluation of several random networks through the use of a linear optimization model. These facts above show the significance of these metric problems in graphs.
Despite the unquestionable usefulness of resolving sets (in several of its variants), there could be some practical settings that would require some improvements. To see this, consider a monitoring system formed by a set of landmarks S in a network G (clearly, able to identify the vertices of G by means of a vector of distances to the vertices in S), which would need not only to monitor the vertices of G, but also to repair a failure if it appears. This is clearly possible if landmarks are for instance agents that repair the failure points and are carrying out the monitoring devices. In this sense, if a landmark moves its position from one point to the failing one, it could clearly lose the capability of identifying the remaining vertices of the network, and of course, the possibility of detecting other possible failures. A possible solution to this fact could be that of using a fault-tolerant resolving set as the set of landmarks, a notion first described in [17], or that more general one of k-resolving sets (first defined in [8]), which can be understood as a resolving set able to tolerate at most faults. However, as we shall observe from our deductions, this is indeed not the best solution for the problem we approach here.
A better possible solution to the problem mentioned above, is that all the time the set of landmarks will have the possibility of uniquely recognizing the vertices of the network, despite the fact that a landmark of the resolving set would have been required to move its location from one point to another one (probably because of a failure in some point or any other specific situation out of control of the monitoring system itself). This gives a step forward introducing our proposal for a mobile navigation model.
Formally, we shall consider a set of robots standing in a set of nodes of a network that forms a resolving set, which is (as already mentioned) a structure of a graph that uniquely recognizes all the vertices in the graph by using (a vector of) distances. We are then focused on allowing such robots to move from one occupied vertex to another adjacent not occupied one, through the edges of the whole graph, and requiring that, at each performed movement, the new set of covered nodes forms a resolving set. This process allows the robots to recognize all the vertices of the graph, independently on the position in which they are located. With the purpose of optimizing the resources, it is desirable to have the property of using the smallest possible number of robots to be placed in the given network.
We consider is a connected, undirected and simple graph without loops and multiple edges. The set of vertices and of edges of G shall be written as V(G) and E(G), respectively. Given two vertices
, the distance between u and v is the length of a shortest u,v-path, and is denoted by
. The two vertices u,v are resolved, identified or recognized by a vertex
if
. It is also said that x resolves, identifies or recognizes the pair of vertices u,v. Moreover, by
we mean the set of all vertices of G that resolves the pair x,y (note that x,y are in
). In this sense, a set of vertices
is a resolving set of G if any two vertices in V(G) are resolved by a vertex of S. A resolving set with the smallest possible cardinality is called a metric basis. The cardinality of a metric basis in G is the metric dimension of G, denoted by
.
The concepts above were independently and first presented in [16,29] for the graph theory area. However, it remained weakly and naively investigated until the beginning of this century, when the article [4] motivated an increasing attention to the parameter. Nowadays, the topic of metric dimension in graphs is a classical one, and a reader can find a rich literature on both theoretical and applied results, as well as, a number of open problems that remain unsolved. Some recent and significant contributions on this topic are [6,7,10,12,14,15,26,28,33]. For more information on metric dimension of graphs and related topics we suggest the recent surveys [25,30].
Given a resolving set S of a graph G occupied by a set of robots, and a vertex v of S, the robot located at the vertex v makes a valid resolving movement, if it moves from v to a neighbor of it (not occupied by another robot), say , such that the new set
occupied by the robots is also a resolving set of G. A valid resolving movement from v to
shall be represented as
. Now, we say that a set of vertices
is a mobile resolving set if every vertex of G can be visited by at least one of the robots initially placed at the resolving set S, in a sequence of valid resolving movements. The mobile metric dimension of G is the cardinality of a smallest mobile resolving set of G, which is denoted by
. A mobile resolving set of cardinality
is called a mobile metric basis. From now on, in order to facilitate our exposition, by a robot x, we mean a robot that is placed at a vertex
of the graph G. We remark the fact that there could be several different sequences of valid resolving movements that will allow the robots placed at a mobile resolving set to visit all the vertices of a graph. Finding such sequences might be a challenging problem, and it is not in the scope of this investigation. In Fig 1 we present a fairly representative example of the concepts above.
Notice that in this way, making three cyclic movements more, all the vertices of C6 shall be visited by valid resolving movements. On the other hand, observe that cyclic movements in the opposite way can be also done with a same result.
Other necessary terminologies and notations we need are as follows. The Cartesian product of the graphs G and H has vertex set equal to
. Two vertices
are adjacent in
if either
and
are adjacent in H; or
and
are adjacent in G.
2 First basic results
It is clear that any mobile resolving set is also a resolving set. On the other hand, since any set of cardinality is a resolving set of a graph G, it can readily observed that a mobile resolving set of such cardinality always exists, which means that the concept is well defined. As a consequence, the following bounds are clear for any connected graph G of order n, since also the metric dimension of any graph is at least equal to 1.
As we next show, an example where the equality in the bound above is achieved is for instance the case of cycle graphs Cn with , for which it is known that
.
Proposition 2.1. For any cycle Cn with ,
Proof: For the cycle C3, it is trivial to check that . Now, in the cycle C4 any metric basis is formed by two adjacent vertices. However, no robot placed at a vertex of such metric bases can make a valid resolving movement. Thus, any mobile resolving set of C4 cannot be a metric basis of C4. This leads to
, which is indeed an equality, since any three vertices of C4 form a mobile resolving set.
On the other hand, let with
. It is well known that
and that any two adjacent vertices of Cn, as well as any two vertices at distance two (when
), form a metric basis. In this sense, we consider the metric basis
with
and assume the operations with the subindex are done modulo n. It can be readily seen that
represents a valid resolving movement since it produces a new metric basis of Cn with two vertices at distance two. Then, the subsequent
is again a valid resolving movement, since it produces again a new metric basis with two adjacent vertices. Thus, by repeating this process, we can find a sequence of valid resolving movements that allows to visit all the vertices of Cn. Therefore,
, and by (1), the conclusion is deduced.
Following with the notion of vertex transitive graphs (like cycles), we next consider the case of circulant graphs Cn(2). A circulant graph Cn(t) is a graph with vertex set and such that two vertices
are adjacent if either
or
. We are focused in this work in the case t = 2. The distance formula for any two vertices
is
The metric dimension of circulant graphs has been somehow intensively studied in several articles, from which we remark [2,13,19,20,32]. For the particular case of Cn(2), the following was proved in [2,20]. For any integer ,
By using some computer computations, we have first obtained the following for small values of n, that is, and
. We next give the remaining values for larger values of n.
Theorem 2.2. For any integer ,
.
Proof: Based on the distance formula (2), we first note that each two vertices of Cn(2), other than the pairs with
, are resolved by at least one of the vertices
, unless n = 4k + 1 for some
, where also each pair of the set of three vertices
are neither resolved by 1 nor by 2 (such facts were already noted in [2,20]). Thus, if we want to show that a set of vertices properly containing 1,2 is a resolving set, then we only need to prove that such pairs are resolved by some extra vertices different from 1 and 2.
Assume first that (mod 4), say
for some
. From (3), we know that
. From the proof of such result presented in [2,20], it is known that the set of vertices
is a metric basis for C4k + 1(2). We first claim that also the set
is a resolving set of C4k + 1(2). To see this, observe that due to the symmetry of C4k + 1(2) by using the arguments from the previous paragraph (for the vertices 1,2), the pairs of vertices not resolved by the vertices 4,5 are
- (i) the pairs
with
, and
- (ii) each pair of the set of three vertices
.
We recall that the set of vertices not resolved by 1,2 are
- (iii) the pairs
with
, and
- (iv) each pair of the set of three vertices
.
(We relatively abuse the notation and say that the vertex, if it appears in the above sums, n + t is indeed the vertex t for any ).
Now, we observe that from the pairs of vertices in (i) at least one is even. In contrast, the pairs of vertices from (iii) are both odd. This means that such pairs from (i) and (iii) will never coincide. Also, the vertices of (ii) and (iv) are consecutive and different, while the vertices i from (i) and j from (iii) satisfy that . Thus, there is no pair of vertices from (i)-(iv) that appears in two different items. This means that any two vertices of C4k + 1(2) is identified by at least one vertex of
, and so, it is a metric basis since
.
Having these facts in mind, we consider a metric basis S1 = {1,2,3,4} of C4k + 1(2), and place one robot in each of these vertices. Next, by using the arguments above, we have that the movement is a valid resolving movement since S2 = {1,2,4,5} is a metric basis of C4k + 1(2) as shown. Now, the movement
leads to the set S3 = {2,3,4,5} which, by symmetry, is also a metric basis for C4k + 1(2). Hence, by using this idea, one can make a sequence of analogous valid resolving movements that allows to visit all the vertices of C4k + 1(2). Therefore, S1 is a mobile resolving set, and so,
. The equality is completed by (1).
From now on, we assume (mod 4). In such situation, each two vertices of Cn(2), other than the pairs
with
, are resolved by at least one of the vertices
. Again, if one wants to show that a set of vertices properly containing 1,2 is a resolving set, then it is necessary to prove that such pairs are resolved by some extra vertices different from 1 and 2.
It is known from [20] that , and along the proof of such result, it is shown that the set
is a metric basis for Cn(2). We claim that also the set
is a metric basis for Cn(2). Since 1,2 are part of S, by the arguments above, we only need to show that pairs of vertices
are resolved by the vertex 5. We can w.l.g. assume that
. By using the distance formula (2), if i = 1, then
and
, unless n = 8 when
. Also, if i = 2, then
and
. In any other case, that is
, it holds,
On the other hand, if , then
Also, if , then by using the fact that
(or equivalently
), we deduce that
Thus, we deduce that the vertex 5 resolves every pair with
, and so, S is a metric basis as claimed.
Similarly to the previous situation, we begin with a set S1 = {1,2,3} and place a robot in each of these vertices. By the reasons above, we readily see that is a valid resolving movement since S2 = {1,2,5} is a metric basis. Now, observe that the movement
leads to the set S3 = {1,4,5}, which by its symmetry with the set S2, is also a metric basis of Cn(2). Next, by its symmetry with respect to S1, we have that the set S4 = {3,4,5}, that can be obtained from S3 by the movement
, is also a metric basis. In this sense, we repeat the process as many times are required, and we hence develop a sequence of valid resolving movements that allows to visit all the vertices of Cn(2). Thus, S1 is a mobile resolving set, and so,
. The desired equality again follows by (1), which completes the proof.
The central inequality () of (1) can be also strict. The concept of void vertex of a graph G was introduced in [15] as a vertex which does not belong to any metric basis of G. For instance, in a path of at least three vertices, any vertex of degree two is a void vertex. The following result is then obtained.
Remark 2.3. If a graph G has a void vertex, then .
Proof: Since a void vertex v does not belong to any metric basis of G, in order to visit v by a valid movement made by a robot of a mobile resolving set of G, it is necessary that such mobile resolving set would have cardinality at least . Thus,
.
The equality in the lower bound above occurs in several situations. That is stated in our next results.
Remark 2.4. If G is a graph with and that has a metric basis S whose complement induces a connected graph, then
.
Proof: If the complement of S induces a connected graph, then for any vertex it is clear that
is also a resolving set. Since a robot placed at this vertex u can visit all the vertices of G not in S by a sequence of resolving movements (because the complement of S induces a connected graph), we deduce that
is a mobile resolving set. Thus,
, and the equality follows since
by assumption.
The result above covers a large class of graphs, namely, all the graphs having at least one void vertex and a metric basis S whose complement induces a connected graph. Some examples of such graphs include for instance trees of order at least three and grid graphs. We next list a few of them.
Corollary 2.5. The following statements holds.
- (i) For any path Pn,
- (ii) For any tree T of order at least three,
.
- (iii) For any grid graph
,
.
We now consider a useful observation, where we need the following terminology. The open neighborhood NG(x) of a vertex x is the set of neighbors of x, and the closed neighborhood of x is . Two vertices x,y of a graph G are called true twins or false twins if they have the same closed or open neighborhood, respectively. A vertex x is called a twin, if there is another vertex y such that x and y are either true or false twins.
Item (ii) from Corollary 2.5, among other conclusions, allows to observe that using fault-tolerant resolving sets to solve the problem we deal with in this exposition is not the best solution. That is, from Corollary 2.5 (ii), we have , while from [17], the existence of fault-tolerant resolving sets in a tree T containing a number of vertices significantly larger than
is already known.
Remark 2.6. If a graph G has a universal vertex which is not a twin vertex, then .
Proof: Notice that the vertex x does not identify any pair of vertices of G unless such pair contains the vertex x itself. In this sense, if x is not a twin, then x does not belong to any metric basis of G, and so, it is a void vertex. Thus, from Remark 2.3, we have that . In addition, since x is universal, for any metric basis S of G, its complement is connected. Therefore, from Remark 2.4 we obtain the desired equality.
The remark above has some consequences for some graph classes.
Corollary 2.7. For any graph G of maximum degree at most ,
. In particular, this follows for wheels Wn and fans Fn.
From Remarks 2.4 and 2.6, it can be noted that the difference between the metric dimension and the mobile metric dimension of graphs is one. We next show that this difference can be also arbitrarily large. To this end, we consider some necessary constructions. We first introduce the following family of graphs Gk for
.
For each integer , Gk is a graph of order k + 2k such that
, where
and B is formed by all the possible subsets of the set
(clearly |B| = 2k), that is
. The edge set of Gk is specified as follows:
- each of the sets A and B induces a clique in Gk;
- a vertex
is adjacent to every vertex
such that
.
See Fig 2 for the graph G3 and the labeling of its vertices.
The next known result is necessary for our purposes.
Theorem 2.8. [4] For any connected graph G of order n and diameter d, , where f(n,d) represents the least positive integer k such that
.
Lemma 2.9. For each , let
. Then,
- (i)
;
- (ii) if S is a resolving set of Gk such that
, then
; and
- (iii) the set A is the unique metric basis of Gk.
Proof: We shall use the notation of the set of vertices of Gk used in its definition.
(i) Since for any two vertices it follows
, we deduce that
are identified by a vertex of A. Thus, A is a resolving set for Gk, and so,
. Since G has diameter 2 and order 2k + k, from Theorem 2.8, we deduce the equality.
(ii) Assume and let
. If
, then we deduce that
because B induces a clique, and any two vertices of
are not identified by vertices in B. Thus, we may assume that
. We now notice that a vertex
is the only vertex that identifies all the pair of vertices
such that (w.l.g.)
. This means that for every vertex
such that
, there are
distinct pairs of vertices in B which are not identified by the vertices of
. Since any pair of vertices
of B are also not identified by any vertex of B except themselves, we deduce that at least one vertex from each of these
distinct pairs must be in
, that is
. Consequently,
.
(iii) By (i), if S is a metric basis of Gk, then . By (ii), if S is a resolving set such that
, then
, and so, S is not a metric basis. Thus, it must happen S = A, and so there is a unique metric basis in Gk, which is A.
Now, in order to prove that the difference between the metric dimension and the mobile metric dimension of graphs can be also arbitrarily large, we need the following construction. For an integer , we consider q copies of a graph
for some
. We next add all the possible edges between vertices belonging to the set A in each of the q copies of the graph Gk. We denote the constructed graph as Gq,k. Note that the union of the copies of the sets A induces a clique in Gq,k. The next properties of such graphs can be readily observed, based on the fact that pairs of vertices of Gq,k belonging to a same copy of A, or of B, in one copy of Gk are only identified by vertices inside of such copy of Gk used to construct Gq,k.
Lemma 2.10. For any and
,
- (i)
;
- (ii) if S is a resolving set of Gq,k such that
for some set A of some copy of Gk in Gq,k, then
; and
- (iii) the union of the sets A of each copy of Gk in Gq,k is the unique metric basis of Gq,k.
We might recall that the unique metric basis of Gq,k has the property that its complement does not induce a connected graph. This fact is a key point in our next result.
Theorem 2.11. For any integer , there exist a graph G such that
.
Proof: To prove our claim, we consider a graph Gq,k. From Lemma 2.10 (i) and (iii), we know that and that the union of the sets A of each copy of Gk in Gq,k is the unique metric basis of Gq,k. Let
be a set of vertices of Gq,k containing its unique metric basis together with exactly one vertex, say Aj, from each set B of every copy of Gk in Gq,k. Clearly,
. Since the vertex Aj from each copy of Gk in Gq,k can visit all the vertices of B in its corresponding copy through a sequence of valid resolving movements, we obtain that
is a mobile resolving set, and so,
.
On the other hand, let S be a mobile metric basis of Gq,k, and suppose that . Since Gq,k has q copies of Gk, by the pigeon hole principle, there must be a copy of Gk, say
, in Gq,k such that it contains less than
elements of S, that is at most k vertices of S. Indeed,
cannot have less than k vertices of S, because then we would find a pair of vertices which is not identified by S, which is not possible. Thus, there must be exactly k vertices of S in
. Let
be the set of vertices of S in
. We moreover notice that
must be equal to the set A of
. Now, in order to visit a vertex Aj of B in
, we cannot use other vertices of S from other copies of Gk, because every path between Aj and other vertices of S not in
contains a vertex of
in the way. Hence, vertices of B in
need to be visited by one vertex of the set
. However, in such setting, no vertex of
can make a valid resolving movement because if we move one vertex of
to a neighbor in B, then there are at least
distinct pairs which are not identified by S, and this is not possible. Consequently, vertices of B in the copy
cannot be visited by any vertex of S, which is a contradiction. Therefore,
, which gives the equality
. Finally, since
, our desired claim follows.
Based on all the results from this section, one could think that the opposite of Remark 2.3 might be satisfied. Namely, if for a graph G, then G has a void vertex. We next show this is not the case, if we for instance, consider the case of the prism of an odd cycle. It is known from [3] that for any integers
and
,
Notice that the prism graph of a cycle Cn is precisely the Cartesian product . Moreover, it is also possible to check that
has no void vertex since it is a vertex transitive graph. As we next show, if n is odd, then
.
Proposition 2.12. If is an odd integer, then
.
Proof: From [3] it is known that . Let
be a metric basis of
. Suppose
. Namely the two vertices
belong to different copies of the cycle Cn in
. If
are adjacent, then
and for the two neighbors of v in Cn, say
, it is satisfied that
and
. Thus,
and
are not identified by S, which is a contradiction.
Assume now are not adjacent. Hence, by the structure of the graph
, there are (at least) two completely disjoint shortest
-paths in
of length at least two. Thus, the two neighbors of (u,v) from two of such disjoint paths are neither by identified by (u,v) nor by
, which is not possible. Therefore, if
is a metric basis of
, then it must happen
, or equivalently, the two vertices of S must belong to a same copy of a cycle in
.
In consequence, if there is a set of robots placed at a resolving set of , in order to visit all the vertices of
by a sequence of valid resolving movements, then such resolving set cannot be a metric basis, due to the required structure of any metric basis of
. Thus,
.
On the other hand, it can be readily seen that any metric basis of together with any other vertex not in such metric basis is a mobile resolving set of
. Therefore,
and the equality follows.
By using similar techniques as in the proof above, we can compute the value of for any
and n odd. However, for this case (
), the result follows directly from Remark 2.3, since in such situation,
has void vertices. Anyway, we next state the result without proof.
Proposition 2.13. If and
is an odd integer, then
.
3 Bounds and extremal cases
We continue our exposition with the following bounds. We recall that the diameter of a graph is the largest possible distance between any two vertices of the graph.
Remark 3.1. For any graph G of order and diameter
,
.
Proof: Let be a diametral path in G. We claim that the set
forms a mobile resolving set for G. To see this, we need to notice that the vertex
identifies all the vertices
. Thus, the robot located at the vertex
can visit all the vertices of the set
by the sequence of resolving movements
. Therefore,
as desired.
It is now a kind of folklore result that a graph G has metric dimension one if and only if the graph is a path. In this sense, due to (1), it is clear that if G satisfies that , then G must be a path. However, only a path on two vertices holds such fact. This gives sense to the lower bound of our next basic result.
Remark 3.2. For any graph G of order ,
.
Proof: The upper bound trivially follows by the fact any set of vertices of G with cardinality n–1 is a resolving set of G. On the other hand, since any mobile resolving set is also a resolving set, we have that . Now, if
, then
and G must be a path. If G is a path, then any metric basis of G is formed by exactly one of its leaves. But then, no robot placed at a leaf of a path of order at least 3 can make a valid resolving movement. This means that, in order to have a mobile resolving set in such a path, we need at least two vertices. Therefore,
, which gives the lower bound.
We next center our attention on the graphs attaining the limit values in the trivial bounds above. To this end, we say that is the family of graphs Hs,t that can be obtained from the join of two graphs H and
of orders s and t (s or t can be zero), respectively, such that
are cliques or empty graphs. Notice that for instance complete graphs Kn (s = n and t = 0) and complete bipartite graphs Ks,t are graphs of the family
.
Theorem 3.3. Let G be a graph of order n. Then if and only if
.
Proof: First, it can be easily observed that if , then
. On the other hand, assume
. From Remark 3.1, we deduce that G has diameter at most 2. If G has diameter 1, then G is a complete graph, and so
. Hence, we consider G has diameter 2. Let A be an independent set of largest cardinality in G. Notice that
, for otherwise G is complete. Also, let
. If
, then G is a star, namely, a complete bipartite graph K1,n−1, and so,
. In consequence, we may assume
and
.
Now, suppose B does not induce neither a clique nor an empty graph. Let such that
and let
such that
. Hence, we must have
. Consider now the subgraph
induced by the vertices
. Note that
has at least three vertices. Moreover, there must be two vertices
(which might be adjacent or not), such that one of them, say x, has a neighbor, say
, which is not a neighbor of y. We have two situations.
Case 1: x,y are not adjacent. Let . Observe that
and that z identifies the pair x,y. Thus, S is a resolving set of G. Now, let
be a neighbor of x in A, which exists because A is an independent set of largest cardinality in G. Then, the robot placed in
moves to x, and let
. Since x,y are not adjacent, we have that
identifies the pair
and so,
is also a resolving set. Now, we turn back this previous movement, that is, consider
, which is indeed the same as S. Next we perform a similar movement but using y and a neighbor
instead of x and
and consider the set
. By similar arguments,
identifies the pair
and so,
is also a resolving set. Thus, we have developed a sequence of valid resolving movements to visit all the vertices of G. Therefore, S is a mobile resolving set of cardinality n–2, which is not possible.
Case 2: x,y are adjacent. Let again be neighbors of x,y, respectively. If
, then the set
taken as before is a mobile resolving set, by using the following two sequences of movements
and also
. This is a contradiction since S has cardinality n–2. Hence, we may assume that x,y have exactly one neighbor in A, and that such neighbors coincide, say w is such neighbor. Since
, let
. Clearly,
is not adjacent to x nor to y. Since G is connected and A is independent,
must have a neighbor
. Hence, the vertices
are identified by any of
and so,
is a resolving set. Now, we make the following sequence of movements:
, and the set
is a resolving set since w identifies the pair
.
and the set
is a resolving set.
, and the set
is a resolving set since
identifies the pair
.
Thus, we deduce that S is a mobile resolving set of cardinality n–2, which is again not possible.
Therefore, the contradictions from the two cases above allow to deduce that B induces either a clique or an empty graph. In this sense, we next consider these two possible situations.
Case 3: B induces a clique. If every vertex of A is adjacent to every vertex of B, then . In this sense, suppose there is
and
such that
. Let
such that
(note that such
exists because A is independent and G is connected). Also notice that
because B induces a clique. Let
. It is clear that such S is a resolving set, since
are identified at least by
. Now, consider the robot placed in b moves to
, and let
. Now, a,b are not identified by
, but they are identified by some neighbor, say
, of b in
. Such
exists because b needs to have at least one neighbor in A (and such neighbor is not a), since A is a largest independent set. Thus,
is also a resolving set. Next, the robot placed in
moves to a, and let
. Clearly, now
is also a resolving set since a identifies
. As a consequence, we obtain that S is a mobile resolving set of cardinality n–2, which is a contradiction. Thus, every vertex of A is adjacent to every vertex of B, which means
.
Case 4: B induces an empty graph. If every vertex of A is adjacent to every vertex of B, then G is a complete bipartite graphs, and so . Hence, as in the previous case, suppose there is
and
such that
, and also similarly, let
and
such that
. Since
are identified by b, we have that
is a resolving set for G. Now, it can be readily find two sequences of valid resolving movements that allows to claim S is a mobile resolving set. The sequences are
and
. This is a contradiction since S has cardinality n–2.
This final contradiction completes the proof of the theorem.
Now, in order to consider some partial results concerning a possible characterization of the graphs achieving the equality in the lower bound of Remark 3.2, we need the following construction. Let be the family of graphs Gr,t, with
and
, obtained from a cycle Cr and a path Pt by identifying one vertex of Cr with a leaf of Pt.
Proposition 3.4. Let . Then
if and only if r is odd.
Proof: Let ,
and assume
is identified with u1 in Gr,t, hence to simplify the notation let w be the vertex obtained by the identification of
and u1.
() Let r be an odd integer. We claim that the set
is a mobile resolving set of Gr,t. We first observe that S is a resolving set. Let
and consider some situations.
- If
, then they are clearly identified by
and by
.
- If
, then they are clearly identified by
and by
, since
.
- If
,
and
, then clearly
. Moreover, since
and
(because
and
) we deduce that x,y are identified by
.
As a consequence of the items above, we conclude that S is a resolving set. Let us now describe a sequence of valid resolving movements in order to visit all the vertices of Gr,t beginning with vertices of the set S. To this end, we use the following fact that can be readily checked.
Claim A: Any two vertices of an odd cycle form a resolving set of such cycle.
Now, let us consider the following sequence of movements of the robots in S: . Notice that if r = 3, then no movement is made and we are done. Hence, we may assume
. At each step notice that the set of robots is given by
with
. We shall prove that every Sj is a resolving set for
since j = 1 has already been considered. By Claim A, any two vertices of the cycle are identified by at least one of the vertices from each Sj. Also, any two vertices of the path Pt are identified by every vertex of these sets. It remains to consider a vertex x from Pt different from
and a vertex
(for some
) from the cycle. Suppose that
and
where . Thus, in consequence with this, it must happen that y is a vertex of the path
. Moreover, the shortest
-path does not intersect with the shortest
-path (except in y); nor with the
-path; nor with the edge
. According to these comments, it must occur that
On the other hand, from (4) and (5) we deduce that
Therefore, by summing up the last equality with (6), we obtain that . Hence, r is an even integer, which is a contradiction with our assumption. Thus, it holds that x,y are identified by
or by
, and so, each Sj is a resolving set. Consequently,
is a sequence of valid resolving movements.
By the same arguments as above, also the movements are valid resolving movements as well, and by symmetry also the movements
are such.
Consequently, we have now visited all the vertices of the cycle but w. At this point notice that the robots are placed at the resolving set . We now make the movement
, and shall prove that the set
is a resolving set.
By Claim A, any two vertices of the cycle are identified by at least one of the vertices from . Also, any two vertices of the path Pt are identified by the two vertices of
. We need to consider a vertex x from Pt and a vertex y from the cycle. Since w and
are diametral vertices and r is odd, it can be readily observed that if
, then
. Thus,
is a resolving set, and so
is a valid resolving movement.
Now, in order to complete the proof of our initial claim (that is a mobile resolving set of Gr,t), we make the following movements
(notice that we are using the set
). It can be also easily verified that at each step the set
, with
, is a resolving set. Thus,
are valid resolving movements, which allows to finally conclude that
is a mobile resolving set of Gr,t, and the proof of this implication is completed.
() Assume now
. Suppose that r is even. We shall prove that the vertex
is a void vertex of Gr,t. For the contrary, suppose there is a metric basis R such that
and let
. Clearly, z cannot belong to the path Pt since then R is not a resolving set. Thus, z must be in the cycle Cr. Hence, at least one of the vertices
or
, say
, is not in R. Consider the pair of vertices
. In order to identify such pair (since they have the same distance to
), it must happen that
. This means that also
. Thus, to identify the pair
it must similarly happen that
. Consequently, z must be equal to
, but then there are several pairs of vertices (for instance the two neighbors of
in the cycle) that are not identified by R, which is a contradiction. Thus, w cannot belong to any metric basis, and so it is a void vertex of Gr,t. Since Gr,t is not a path, it is satisfied that
. Therefore, by using Remark 2.3 we deduce that
, a contradiction with the statement. This allows to conclude that r needs to be odd and the proof is completed.
The result above, Corollary 2.5 and Proposition 2.1 allow to observe that there are several different classes of graphs G for which . Moreover, there are also some other distinct graphs satisfying this property. To see this, consider for instance a cycle of order three with a pendant vertex added to each vertex (this graph is indeed the corona of C3). It can be readily observed (using the symmetry of such graph) that any set of two vertices of the cycle C3 is a mobile resolving set. In this sense, it is maybe worthy of considering characterizing all the graphs G with
.
3.1 The mobile metric dimension versus the resolving number
The resolving number of a graph G was first defined in [5] as the smallest integer k such that every set of vertices of G of cardinality at least k is a resolving set for G. The parameter has been studied in a few other articles, and among them, we remark [11], where the authors proved that finding the resolving number of graphs can be done in polynomial time. To this end, given two vertices
, let
It was shown in [11] that for any graph G of order n,
and that such quantity can be computer in time. This result turns to be very useful for our purposes of bounding the mobile metric dimension of graphs. That is next stated.
Proposition 3.5. For any graph G, .
Proof: If is a set of cardinality
, then it is a resolving set. Thus, a movement from a vertex of S to any of its neighbors not in S (if they exist) is a valid resolving movement, because any set of cardinality
is a resolving set of G. Thus, S is a mobile resolving set and the bound follows
The bound above is tight for several graphs classes. For instance, if G is a path of order at least three or a cycle of odd order, then it is satisfied that . Complete bipartite graphs Kr,s are other graphs achieving the previous equality since
. On the other hand, since
for any graph G, by using Proposition 3.5 we deduce the following result.
Remark 3.6. If G satisfies that , then
.
Although there are several graphs G for which the equality holds, we observe that the difference between such parameters can be arbitrarily large. For instance, consider the grid graph
. From Corollary 2.5,
. However,
. To see this, notice that if
and
, then the set of vertices
is not a resolving set of
, since the two vertices
are not identified by S.
4 Concluding remarks
We have considered in this work a model for mobile robots in a network keeping the property of uniquely identifying all the vertices of the network while the robots move from one point to another, and with the requirement of visiting all the nodes of the networks at least once. We have given several combinatorial properties of smallest sets of nodes achieving this properties. As usual, there are several open questions that might deserve attention to be widely explored. We next remark a few of them which are of interest from our point of view.
- The problem of finding a mobile resolving set depends on finding the best possible way for moving the robots from the mobile resolving set. In this sense, it is of interest to develop efficient strategies for such movements of the robots.
- Which is the complexity of finding the mobile metric dimension of graphs? Is it polynomial to check on whether a given set of vertices is indeed a mobile resolving set?
- Is there any heuristic that can be developed to find or approximate the value of the mobile metric dimension of graphs?
- From Remark 2.3 we have that if G has a void vertex, then
. From Proposition 2.12 there are also graphs without void vertices for which
. Can we characterize all the graphs G without void vertices and such that
?
- Based on Theorem 2.2, it seems of interest to complete the study of the mobile metric dimension of circulant graphs, or even more general, on vertex transitive graphs.
- In view of Proposition 3.5, it would be of interest characterizing the class of graphs G satisfying the equality
.
- The mobile resolving sets of a graph frequently have the property that only one of its vertices is indeed “moving” through out all the vertices of the graph, while the remaining ones are those “keeping” the resolvability properties. This model could sometimes be not a realistic one. In this sense, as a future research line, it would be of interest to consider a model for mobile robots in networks (keeping some resolvability properties) in which all the robots visit all the vertices of the graph, by using the same rules as the mobile robots of this present investigation. On the other hand, one may also consider a variant of this problem in which not only one robot is moving at the same time.
- The edge metric dimension of graphs is a variant in which the edges of a graph are uniquely recognize by distances from a set of vertices of the graph (see [23]). It is also known that the metric and edge metric dimension of graphs are in general not comparable. In this sense, it might be of interest to consider a mobile version of the edge metric dimension, and among other contributions, check on whether the non-comparability properties remain between the mobile metric and edge metric dimensions of graphs.
Acknowledgments
The research has been supported by the University of Cadiz Proper Research Plan, Reference PB2025-035.
References
- 1. Bailey RF, Yero IG. Error-correcting codes from k-resolving sets. Discuss Math Graph Theory. 2019;39(2):341–55.
- 2. Borchert A, Gosselin S. The metric dimension of circulant graphs and Cayley hypergraphs. Utilitas Math. 2018;106:125–47.
- 3. Cáceres J, Hernando C, Mora M, Pelayo IM, Puertas ML, Seara C, et al. On the metric dimension of Cartesian products of graphs. SIAM J Discrete Math. 2007;21(2):423–41.
- 4. Chartrand G, Eroh L, Johnson MA, Oellermann OR. Resolvability in graphs and the metric dimension of a graph. Discrete Appl Math. 2000;105(1–3):99–113.
- 5. Chartrand G, Poisson C, Zhang P. Resolvability and the upper dimension of graphs. Comput Math Appl. 2000;39(12):19–28.
- 6. Claverol M, García A, Hernández G, Hernando C, Maureso M, Mora M, et al. Metric dimension of maximal outerplanar graphs. Bull Malays Math Sci Soc. 2021;44:2603–30.
- 7. Corregidor SG, Martínez-Pérez A. A note on k-metric dimensional graphs. Discrete Applied Mathematics. 2021;289:523–33.
- 8. Estrada-Moreno A, Rodríguez-Velázquez JA, Yero IG. The k-metric dimension of a graph. Appl Math Inf Sci. 2015;9(6):2829–40.
- 9. Fernández E, Kuziak D, Muñoz-Márquez M, Yero IG. On the (k,l)-anonymity of networks via their k-metric antidimension. Sci Rep. 2023;13(1):19090. pmid:37925527
- 10. Foster-Greenwood B, Uhl Ch. Metric dimension of a direct product of three complete graphs. Electron J Comb. 2024;31(2):P2–13.
- 11. Garijo D, González A, Márquez A. The resolving number of a graph. Discrete Math Theor Comput Sci. 2013;15(3):155–66.
- 12. Geneson J, Kaustav S, Labelle A. Extremal results for graphs of bounded metric dimension. Discrete Applied Mathematics. 2022;309:123–9.
- 13. Grigorious C, Manuel P, Miller M, Rajan B, Stephen S. On the metric dimension of circulant and Harary graphs. Appl Math Comput. 2014;248:47–54.
- 14. Hakanen A, Junnila V, Laihonen T, Yero IG. On the unicyclic graphs having vertices that belong to all their (strong) metric bases. Discrete Appl Math. 2024;353:191–207.
- 15. Hakanen A, Junnila V, Laihonen T, Yero IG. On vertices contained in all or in no metric basis. Discrete Appl Math. 2022;319:407–23.
- 16. Harary F, Melter RA. On the metric dimension of a graph. Ars Combin. 1976;2:191–5.
- 17. Hernando A, Mora M, Slater PJ, Wood DR. Fault-tolerant metric dimension of graphs. Convex Discrete Struct. 2008;5:81–5.
- 18.
Hulme BL, Shiver AW, Slater PJ. A Boolean Algebraic Analysis of Fire Protection. North-Holland Mathematics Studies. Elsevier; 1984. p. 215–27. https://doi.org/10.1016/s0304-0208(08)72964-5
- 19. Imran M, Baig AQ, Bokhary SAUH, Javaid I. On the metric dimension of circulant graphs. Appl Math Lett. 2012;25(3):320–5.
- 20. Javaid I, Rahim MT, Ali K. Families of regular graphs with constant metric dimension. Utilitas Math. 2008;75:21–33.
- 21. Johnson M. Structure-activity maps for visualizing the graph variables arising in drug design. J Biopharm Stat. 1993;3(2):203–36. pmid:8220404
- 22. Johnson MA. Browsable structure-activity datasets. Advances in Molecular Similarity; 1998. p. 153–70.
- 23. Kelenc A, Tratnik N, Yero IG. Uniquely identifying the edges of a graph: The edge metric dimension. Discrete Appl Math. 2018;251:204–20.
- 24. Khuller S, Raghavachari B, Rosenfeld A. Landmarks in graphs. Discrete Appl Math. 1996;70(3):217–29.
- 25. Kuziak D, Yero IG. Metric dimension related parameters in graphs: A survey on combinatorial, computational and applied results. arXiv. 2021. Available from:
- 26. Mashkaria S, Ódor G, Thiran P. On the robustness of the metric dimension of grid graphs to adding a single edge. Discrete Appl Math. 2022;316:1–27.
- 27. Melter RA, Tomescu I. Metric bases in digital geometry. Comput Vision Grap Image Process. 1984;25(1):113–21.
- 28. Sedlar J, Škrekovski R. Metric dimensions vs. cyclomatic number of graphs with minimum degree at least two. Appl Math Comput. 2022;427:127147.
- 29. Slater PJ. Leaves of trees. Cong Numer. 1975;14:549–59.
- 30. Tillquist RC, Frongillo RM, Lladser ME. Getting the lay of the land in discrete space: A survey of metric dimension and its applications. SIAM Rev. 2023;65(4):919–62.
- 31. Trujillo-Rasúa R, Yero IG. k-metric antidimension: A privacy measure for social graphs. Inform Sci. 2016;328:403–17.
- 32. Vetrík T. The metric dimension of circulant graphs. Canad Math Bull. 2017;60(1):206–16.
- 33. Wu J, Wang L, Yang W. Learning to compute the metric dimension of graphs. Appl Math Comput. 2022;432:127350.