The Simultaneous Local Metric Dimension of Graph Families

In a graph G = (V, E), a vertex v ∈ V is said to distinguish two vertices x and y if dG(v, x) 6= dG(v, y). A set S ⊆ V is said to be a local metric generator for G if any pair of adjacent vertices of G is distinguished by some element of S. A minimum local metric generator is called a local metric basis and its cardinality the local metric dimension of G. A set S ⊆ V is said to be a simultaneous local metric generator for a graph family G = {G1, G2, . . . , Gk}, defined on a common vertex set, if it is a local metric generator for every graph of the family. A minimum simultaneous local metric generator is called a simultaneous local metric basis and its cardinality the simultaneous local metric dimension of G. We study the properties of simultaneous local metric generators and bases, obtain closed formulae or tight bounds for the simultaneous local metric dimension of several graph families and analyze the complexity of computing this parameter.


Introduction
A generator of a metric space is a set S of points in the space with the property that every point of the space is uniquely determined by its distances from the elements of S. Given a simple and connected graph G = (V, E), we consider the function d G : V × V → N, where d G (x, y) is the length of the shortest path between u and v and N is the set of non-negative integers.Clearly, (V, d G ) is a metric space, i.e., d G satisfies d G (x, x) = 0 for all x ∈ V, d G (x, y) = d G (y, x) for all x, y ∈ V and d G (x, y) ≤ d G (x, z) + d G (z, y) for all x, y, z ∈ V.A vertex v ∈ V is said to distinguish two vertices x and y if d G (v, x) = d G (v, y).A set S ⊆ V is said to be a metric generator for G if any pair of vertices of G is distinguished by some element of S.
As pointed out by Okamoto et al. in [21], there exist applications where only neighboring vertices need to be distinguished.Such applications were the basis for the introduction of the local metric dimension.A set S ⊆ V is said to be a local metric generator for G if any pair of adjacent vertices of G is distinguished by some element of S. A minimum local metric generator is called a local metric basis and its cardinality the local metric dimension of G, denoted by dim l (G).Additionally, Jannesari and Omoomi [16] introduced the concept of adjacency resolving sets as a result of considering the two-distance in V(G), which is defined as d G,2 (u, v) = min{d G (u, v), 2} for any two vertices u, v ∈ V(G).A set of vertices S such that any pair of vertices of V(G) is distinguished by an element s in S considering the two-distance in V(G) is called an adjacency generator for G.If we only ask S to distinguish the pairs of adjacent vertices, we call S a local adjacency generator.A minimum local adjacency generator is called a local adjacency basis, and the cardinality of any such basis is the local adjacency dimension of G, denoted adim l (G).
The notion of simultaneous metric dimension was introduced in the framework of the navigation problem proposed in [4], where navigation was studied in a graph-structured framework in which the navigating agent (which was assumed to be a point robot) moves from node to node of a "graph space".The robot can locate itself by the presence of distinctively-labeled "landmark" nodes in the graph space.On a graph, there is neither the concept of direction, nor that of visibility.Instead, it was assumed in [4] that a robot navigating on a graph can sense the distances to a set of landmarks.Evidently, if the robot knows its distances to a sufficiently large set of landmarks, its position on the graph is uniquely determined.This suggests the following problem: given a graph G, what are the fewest number of landmarks needed and where should they be located, so that the distances to the landmarks uniquely determine the robot's position on G? Indeed, the problem consists of determining the metric dimension and a metric basis of G. Now, consider the following extension of this problem, introduced by Ramírez-Cruz, Oellermann and Rodríguez-Velázquez in [22].Suppose that the topology of the navigation network may change within a range of possible graphs, say G 1 , G 2 , ..., G k .This scenario may reflect several situations, for instance the simultaneous use of technologically-differentiated redundant sets of landmarks, the use of a dynamic network whose links change over time, etc.In this case, the above-mentioned problem becomes determining the minimum cardinality of a set S, which must be simultaneously a metric generator for each graph G i , i ∈ {1, ..., k}.Therefore, if S is a solution for this problem, then each robot can be uniquely determined by the distance to the elements of S, regardless of the graph G i that models the network at each moment.Such sets we called simultaneous metric generators in [22], where, by analogy, a simultaneous metric basis was defined as a simultaneous metric generator of minimum cardinality, and this cardinality was called the simultaneous metric dimension of the graph family G, denoted by Sd(G).
In this paper, we recover Okamoto et al.'s observation that in some applications, it is only necessary to distinguish neighboring vertices.In particular, we consider the problem of distinguishing neighboring vertices in a multiple topology scenario, so we deal with the problem of finding the minimum cardinality of a set S, which must simultaneously be a local metric generator for each graph G i , i ∈ {1, ..., k}.
Given a family G = {G 1 , G 2 , ..., G k } of connected graphs G i = (V, E i ) on a common vertex set V, we define a simultaneous local metric generator for G as a set S ⊆ V such that S is simultaneously a local metric generator for each G i .We say that a minimum simultaneous local metric generator for G is a simultaneous local metric basis of G and its cardinality the simultaneous local metric dimension of G, denoted by Sd l (G) or explicitly by Sd l (G 1 , G 2 , ..., G k ).An example is shown in Figure 1, where the set {v 3 , v 4 } is a simultaneous local metric basis of {G 1 , G 2 , G 3 }.
It will also be useful to define the simultaneous local adjacency dimension of a family G = {G 1 , G 2 , . . ., G k } of connected graphs G i = (V, E i ) on a common vertex set V, as the cardinality of a minimum set S ⊆ V such that S is simultaneously a local adjacency generator for each G i .We denote this parameter as Sad l G.
In what follows, we will use the notation K n , K r,s , C n , N n and P n for complete graphs, complete bipartite graphs, cycle graphs, empty graphs and path graphs of order n, respectively.Given a graph and they are false twins if N G (x) = N G (y).In general, two vertices are said to be twins if they are true twins or they are false twins.As usual, a set The vertex cover number of G, denoted by β(G), is the minimum cardinality of a vertex cover of G.The remaining definitions will be given the first time that the concept appears in the text.
The rest of the article is organized as follows.In Section 2, we obtain some general results on the simultaneous local metric dimension of graph families.Section 3 is devoted to the case of graph families obtained by small changes on a graph, while in Sections 4 and 5, we study the particular cases of families of corona graphs and families of lexicographic product graphs, respectively.Finally, in Section 6, we show that the problem of computing the simultaneous local metric dimension of graph families is NP-hard, even when restricted to families of graphs that individually have a (small) fixed local metric dimension.

Basic Results
Remark 1.Let G = {G 1 , . . ., G k } be a family of connected graphs defined on a common vertex set V, and let G = (V, ∪E(G i )).The following results hold: Proof.(1) is deduced directly from the definition of simultaneous local metric dimension.Let B be a simultaneous metric basis of G, and let u, v ∈ is a simultaneous local metric generator for G, so (2) holds.Finally, (3) is obtained from the following facts: (a) the union of local metric generators for all graphs in G is a simultaneous local metric generator for G, which implies that Sd l (G) The inequalities above are tight.For example, the graph family G shown in Figure 1 We now analyze the extreme cases of the bounds given in Remark 1.

Corollary 1.
Let G be a family of connected graphs on a common vertex set.If K n ∈ G, then: As shown in Figure 2, the converse of Corollary 1 does not hold.In general, the cases for which the upper bound Sd l (G) ≤ |V| − 1 is reached are summarized in the next result.
Theorem 1.Let G be a family of connected graphs on a common vertex set V.Then, Sd l (G) = |V| − 1 if and only if for every u, v ∈ V, there exists a graph G uv ∈ G such that u and v are true twins in G uv .
Proof.We first note that for any connected graph G = (V, E) and any vertex v ∈ V, it holds that V − {v} is a local metric generator for G. Therefore, if Sd l (G) = |V| − 1, then for any v ∈ V, the set V − {v} is a simultaneous local metric basis of G, and as a consequence, for every u ∈ V − {v}, there exists a graph G uv ∈ G, such that the set V − {u, v} is not a local metric generator for G uv , i.e., u and v are adjacent in G uv and d G u,v (u, x) = d G u,v (v, x) for every x ∈ V − {u, v}.Therefore, u and v are true twins in G u,v .
Conversely, if for every u, v ∈ V there exists a graph G uv ∈ G such that u and v are true twins in G uv , then for any simultaneous local metric basis B of G, it holds that u ∈ B or v ∈ B. Hence, all but one element of V must belong to B. Therefore, |B| ≥ |V| − 1, which implies that Sd l G = |V| − 1.
Notice that Corollary 1 is obtained directly from the previous result.Now, the two following results concern the limit cases of Item (1) of Remark 1.

Theorem 2.
A family G of connected graphs on a common vertex set V satisfies Sd l (G) = 1 if and only if every graph in G is bipartite.
Proof.If every graph in the family is bipartite, then for any v ∈ V, the set {v} is a local metric basis of every G i ∈ G, so Sd l (G) = 1.
Let us now consider a family G of connected graphs on a common vertex set V such that Sd l (G) = 1 and assume that some G ∈ G is not bipartite.It is shown in [21] that dim l (G) ≥ 2, so Item (1) of Remark 1 leads to Sd l (G) ≥ 2, which is a contradiction.Thus, every G ∈ G is bipartite.
Paths, trees and even-order cycles are bipartite.The following result covers the case of families composed of odd-order cycles.Theorem 3. Every family G composed of cycle graphs on a common odd-sized vertex set V satisfies Sd l (G) = 2, and any pair of vertices of V is a simultaneous local metric basis of G.
Proof.For any cycle C i ∈ G, the set {v}, v ∈ V, is not a local metric generator, as the adjacent vertices v  The following result allows us to study the simultaneous local metric dimension of a family G from the family of graphs composed by all non-bipartite graphs belonging to G.
Theorem 4. Let G be a family of graphs on a common vertex set V, not all of them bipartite.If H is the subfamily of G composed of all non-bipartite graphs belonging to G, then: Proof.Since H is a non-empty subfamily of G, we conclude that Sd l (G) ≥ Sd l (H).Since any vertex of a bipartite graph G is a local metric generator for G, if B ⊆ V is a simultaneous local metric basis of H, then B is a simultaneous local metric generator for G and, as a result, Sd l (G) ≤ |B| = Sd l (H).Some interesting situations may be observed regarding the simultaneous local metric dimension of some graph families versus its standard counterpart.In particular, the fact that false twin vertices need not be distinguished in the local variant leads to some cases where both parameters differ greatly.For instance, consider any family G composed of three or more star graphs having different centers.It was shown in [22] that any such family satisfies Sd(G) = |V| − 1, yet by Theorem 2, we have that Sd l (G) = 1.
Given a family G = {G 1 , G 2 , . . ., G k } of graphs G i = (V, E i ) on a common vertex set V, we define a simultaneous vertex cover of G as a set S ⊆ V, such that S is simultaneously a vertex cover of each G i .The minimum cardinality among all simultaneous vertex covers of G is the simultaneous vertex cover number of G, denoted by β(G).Theorem 5.For any family G of connected graphs with common vertex set V, Furthermore, if for every uv ∈ ∪ G∈G E(G) there exists G ∈ G such that u and v are true twins in G , then Sd l (G) = β(G).
Proof.Let B ⊆ V be a simultaneous vertex cover of G. Since V − B is a simultaneous independent set of G, we conclude that Sd l (G) ≤ β(G).
We now assume that for every uv ∈ ∪ G∈G E(G), there exists G ∈ G, such that u and v are true twins in G , and suppose, for the purpose of contradiction, that Sd l (G) < β(G).In such a case, there exists a simultaneous local metric basis C ⊆ V, which is not a simultaneous vertex cover of G. Hence, there exist u , v ∈ V − C and G ∈ G such that u v ∈ E(G), ergo u v ∈ ∪ G∈G E(G).As a consequence, u and v are true twins in some graph G ∈ G, which contradicts the fact that C is a simultaneous local metric basis of G. Therefore, the strict inequality does not hold, hence Sd l (G) = β(G).

Families Obtained by Small Changes on a Graph
Consider a graph G whose local metric dimension is known.In this section, we address two related questions:

•
If a series of small changes is repeatedly performed on E(G), thus producing a family G of consecutive versions of G, what is the behavior of Sd l (G) with respect to dim l (G)?
If several small changes are performed on E(G) in parallel, thus producing a family G of alternative versions of G, what is the behavior of Sd l (G) with respect to dim l (G)?
Addressing this issue in the general case is hard, so we will analyze a number of particular cases.First, we will specify three operators that describe some types of changes that may be performed on a graph G:

•
Edge addition: We say that a graph G is obtained from a graph G by an edge addition if there is an edge e ∈ E(G) such that G = (V(G), E(G) ∪ {e}).We will use the notation G = add e (G).

•
Edge removal: We say that a graph G is obtained from a graph G by an edge removal if there is an edge e ∈ E(G) such that G = (V(G), E(G) − {e}).We will use the notation G = rmv e (G).

•
Edge exchange: We say that a graph G is obtained from a graph G by an edge exchange if there is an edge e ∈ E(G) and an edge for every i ∈ {1, . . ., k}.Likewise, we define the class P O k (G) containing all graph families of the form G = {G 1 , G 2 , . . ., G k }, composed by connected graphs on the common vertex set V(G), where G i = op i (G) for every i ∈ {1, . . ., k}.In particular, if op i = add e i (op i = rmv e i , op i = xch e i , f i ) for every i ∈ {1, . . ., k}, we will write We have that performing an edge exchange on any tree T (path graphs included) either produces another tree or a disconnected graph.Thus, the following result is a direct consequence of this fact and Theorem 2.
Remark 2. For any tree T, any k ≥ 1 and any graph family T ∈ C X k (T) ∪ P X k (T), Our next result covers a large class of families composed by unicyclic graphs that can be obtained by adding edges, in parallel, to a path graph.Remark 3.For any path graph P n , n ≥ 4, any k ≥ 1 and any graph family G ∈ P A k (P n ), Proof.Every graph G ∈ G is either a cycle or a unicyclic graph.If the cycle subgraphs of every graph in the family have even order, then Sd l (G) = 1 by Theorem 2. If G contains at least one non-bipartite graph, then Sd l (G) ≥ 2. We now proceed to show that in this case, Sd l (G) ≤ 2. To this end, we denote by V = {v 1 , . . ., v n } the vertex set of P n , where v i ∼ v i+1 for every i ∈ {1, . . ., n − 1}.We claim that {v 1 , v n } is a simultaneous local metric generator for the subfamily G ⊂ G composed by all non-bipartite graphs of G.In order to prove this claim, consider an arbitrary graph G ∈ G , and let e = v p v q , 1 ≤ p < q ≤ n be the edge added to E(P n ) to obtain G.We differentiate the following cases: 1. e = v 1 v n .In this case, G is an odd-order cycle graph, so {v 1 , v n } is a local metric generator.
2. 1 < p < q = n.In this case, G is a unicyclic graph where v p has degree three, v 1 has degree one and the remaining vertices have degree two.Consider two adjacent vertices u, v ∈ Thus, if v p distinguishes u and v, so does v 1 , otherwise v n does.3. 1 = p < q < n.This case is analogous to Case 2. 4. 1 < p < q < n.In this case, G is a unicyclic graph where v p and v q have degree three, v 1 and v n have degree one and the remaining vertices have degree two.Consider two adjacent vertices u, v ∈ V − {v 1 , v n }.If u or v belong to the path from v 1 to v p (or to the path from v q to v n ), then v 1 (or v n ) distinguishes them.If both u and v belong to the cycle, then Thus, if v p distinguishes u and v, so does v 1 , otherwise v q distinguishes them, which means that v n also does.
According to the four cases above, we conclude that {v 1 , v n } is a local metric generator for G, so it is a simultaneous local metric generator for G .Thus, by Theorem 4, Sd l (G) = Sd l (G ) ≤ 2.
Remark 4. Let C n , n ≥ 4, be a cycle graph, and let e be an edge of its complement.If n is odd, then Proof.Consider e = v i v j .We have that C n is bipartite for n even.If, additionally, From now on, we assume that n ≥ 5 and proceed to show that dim l (add e (C n )) ≤ 2. Note that add e (C n ) is a bicyclic graph where v i and v j are vertices of degree three and the remaining vertices have degree two.We denote by C n 1 and C n−n 1 +2 the two graphs obtained as induced subgraphs of add e (C n ), which are isomorphic to a cycle of order n 1 and a cycle of order n − n 1 + 2, respectively.Since n ≥ 5, we have that n 1 > 3 or n − n 1 + 2 > 3. We assume, without loss of generality, that n 1 > 3. Let a, b ∈ V(C n 1 ) are two vertices such that: We claim that {a, b} is a local metric generator for add e (C n ).Consider two adjacent vertices u, v ∈ V(add e (C n )) − {a, b}.We differentiate the following cases, where the distances are taken in add e (C n ): According to the three cases above, {a, b} is a local metric generator for add e (C n ), and as a result, the proof is complete.
The next result is a direct consequence of Remarks 1 and 4.
Remark 5. Let C n , n ≥ 4, be a cycle graph.If e, e are two different edges of the complement of C n , then:

Families of Corona Product Graphs
Let G and H be two graphs of order n and n , respectively.The corona product G H is defined as the graph obtained from G and H by taking one copy of G and n copies of H and joining by an edge each vertex from the i-th copy of H with the i-th vertex of G. Notice that the corona graph K 1 H is isomorphic to the join graph K 1 + H.Given a graph family G = {G 1 , . . ., G k } on a common vertex set and a graph H, we define the graph family: Several results presented in [23,24] describe the behavior of the local metric dimension on corona product graphs.We now analyze how this behavior extends to the simultaneous local metric dimension of families composed by corona product graphs.Theorem 6.In references [23,25], Let G be a connected graph of order n ≥ 2. For any non-empty graph H, As we can expect, if we review the proof of the result above, we check that if A is a local metric basis of G H, then A does not contain elements in V(G).Therefore, any local metric basis of G H is a simultaneous local metric basis of G H. This fact and the result above allow us to state the following theorem.
Theorem 7. Let G be a family of connected non-trivial graphs on a common vertex set V. For any non-empty graph H, Given a graph family G on a common vertex set and a graph family H on a common vertex set, we define the graph family: The following result generalizes Theorem 7. In what follows, we will use the notation v for the graph G = (V, E) where V = {v} and E = ∅.Theorem 8.For any family G of connected non-trivial graphs on a common vertex set V and any family H of non-empty graphs on a common vertex set, Proof.Let n = |V|, and let V be the vertex set of the graphs in H, V i the copy of V corresponding to We first need to prove that any G ∈ G satisfies Sd l (G H) = n • Sad l (H).For any i ∈ {1, . . ., n}, let S i be a simultaneous local adjacency basis of H i .In order to show that X = n i=1 S i is a simultaneous local metric generator for G H, we will show that X is a local metric generator for G H, for any G ∈ G and H ∈ H.To this end, we differentiate the following four cases for two adjacent vertices x, y ∈ V(G H) − X.
1. x, y ∈ V i .Since S i is an adjacency generator of H i , there exists a vertex u ∈ S i such that

2.
x ∈ V i and y ∈ V.If y = v i , then for u ∈ S j , j = i, we have: Now, if y = v j , j = i, then we also take u ∈ S j , and we proceed as above.3. x = v i and y = v j .For u ∈ S j , we find that:

4.
x ∈ V i and y ∈ V j , j = i.In this case, for u ∈ S i , we have: Hence, X is a local metric generator for G H, and since G ∈ G and H ∈ H are arbitrary graphs, X is a simultaneous local metric generator for G H, which implies that: It remains to prove that Sd l (G H) ≥ n • Sad l (H).To do this, let W be a simultaneous local metric basis of G H, and for any i ∈ {1, . . ., n}, let W i = V i ∩ W. Let us show that W i is a simultaneous adjacency generator for H i .To do this, consider two different vertices x, y and consequently, W i must be an adjacency generator for H i ; and since H ∈ H is arbitrary, W i is a simultaneous local adjacency generator for H i .Hence, for any i ∈ {1, . . ., n}, This completes the proof.
The following result is a direct consequence of Theorem 8.

Corollary 2.
For any family G of connected non-trivial graphs on a common vertex set V and any family H of non-empty graphs on a common vertex set, Furthermore, if every graph in H has diameter two, then:  We now consider the case in which the graph H is empty.Theorem 9.In reference [24], Let G be a connected non-trivial graph.For any empty graph H, The result above may be extended to the simultaneous scenario.
Theorem 10.Let G be a family of connected non-trivial graphs on a common vertex set.For any empty graph H, Suppose that A is a simultaneous local metric basis of G H and |A| < |B|.If there exists x ∈ A ∩ V ij for the j-th copy of H in any graph G i H, then the pairs of vertices of G i H that are distinguished by x can also be distinguished by v i .As a consequence, the set A obtained from A by replacing by Theorem 11.In reference [24], Let H be a non-empty graph.The following assertions hold.
1.If the vertex of K 1 does not belong to any local metric basis of K 1 + H, then for any connected graph G of order n, 2. If the vertex of K 1 belongs to a local metric basis of K 1 + H, then for any connected graph G of order n ≥ 2, As for the previous case, the result above is extensible to the simultaneous setting.
Theorem 12. Let G be a family of connected non-trivial graphs on a common vertex set V, and let H be a family of non-empty graphs on a common vertex set.The following assertions hold.
1.If the vertex of K 1 does not belong to any simultaneous local metric basis of K 1 + H, then: 2. If the vertex of K 1 belongs to a simultaneous local metric basis of K 1 + H, then: Proof.As above, let n = |V|, and let V be the vertex set of the graphs in H, V i the copy of V corresponding to v i ∈ V, H i the i-th copy of H and H i ∈ H i the i-th copy of H ∈ H.
We will apply a reasoning analogous to the one used for the proof of Theorem 11 in [24].If n = 1, then G H ∼ = K 1 + H, so the result holds.Assume that n ≥ 2, Let S i be a simultaneous local metric basis of v i + H i , and let S i = S i − {v i }.Note that S i = ∅ because H i is the family of non-empty graphs and v i does not distinguish any pair of adjacent vertices belonging to V i .In order to show that X = ∪ n i=1 S i is a simultaneous local metric generator for G H, we differentiate the following cases for two vertices x, y, which are adjacent in an arbitrary graph G H: Hence, X is a local metric generator for G H, and since G ∈ G and H ∈ H are arbitrary graphs, X is a simultaneous local metric generator for G H. Now, we shall prove (1).If the vertex of K 1 does not belong to any simultaneous local metric basis of K 1 + H, then v i ∈ S i for every i ∈ {1, ..., n}, and as a consequence, Now, we need to prove that Sd l (G H) ≥ n • Sd l (K 1 + H).In order to do this, let W be a simultaneous local metric basis of G H, and let . Therefore, we conclude that W i ∪ {v i } is a simultaneous local metric generator for v i + H i .Now, since v i does not belong to any simultaneous local metric basis of v i + H i , we have that and the proof of (1) is complete.
Finally, we shall prove (2).If the vertex of K 1 belongs to a simultaneous local metric basis of K 1 + H, then we assume that v i ∈ S i for every i ∈ {1, ..., n}.Suppose that there exists B such that B is a simultaneous local metric basis of G H and |B| < |X|.In such a case, there exists i ∈ {1, ..., n} such that the set , which is a contradiction.Hence, X is a simultaneous local metric basis of G H, and as a consequence, The proof of ( 2) is now complete.

Corollary 4.
Let G be a connected graph of order n ≥ 2, and let H = {K r 1 ,n −r 1 , K r 2 ,n −r 2 , . . ., K r k ,n −r k }, 1 ≤ r i ≤ n − 1, be a family composed by complete bipartite graphs on a common vertex set V .Then, Lemma 1.In reference [24], Let H be a graph of radius r(H).If r(H) ≥ 4, then the vertex of K 1 does not belong to any local metric basis of K 1 + H.
Note that an analogous result holds for the simultaneous scenario.Lemma 2. Let H be a graph family on a common vertex set V, such that r(H) ≥ 4 for every H ∈ H.Then, the vertex of K 1 does not belong to any simultaneous local metric basis of K 1 + H.
Proof.Let B be a simultaneous local metric basis of {K 1 + H 1 , . . ., K 1 + H k }.We suppose that the vertex v of K 1 belongs to B. Note that v ∈ B if and only if there exists u ∈ V − B, such that B ⊆ N K 1 +H i (u) for some H i ∈ H.If r(H i ) ≥ 4, proceeding in a manner analogous to that of the proof of Lemma 1 as given in [24], we take u ∈ V such that d H i (u, u ) = 4 and a shortest path uu 1 u 2 u 3 u .In such a case, for every b ∈ B − {v}, we will have that d which is a contradiction.Hence, v does not belong to any simultaneous local metric basis of {K 1 + H As a direct consequence of item (1) of Theorem 12 and Lemma 2, we obtain the following result.Proposition 1.For any family G of connected graphs on a common vertex set V and any graph family H on a common vertex set V such that r(H) ≥ 4 for every H ∈ H,

Families of Lexicographic Product Graphs
Let G = {G 1 , . . ., G r } be a family of connected graphs with common vertex set V = {u 1 , . . ., u n }.
For each u i ∈ V, let H i = {H i1 , . . .H is i } be a family of graphs with common vertex set V i .For each i = 1, . . ., n, choose H ij ∈ H i and consider the family H j = {H 1j , H 2j , . . ., H nj }.Notice that the families H i can be represented in the following scheme where the columns correspond to the families H j .For a graph G k ∈ G and the family H j , we define the lexicographic product of G k and H j as the graph We are interested in the simultaneous local metric dimension of the family: The relation between distances in a lexicographic product graph and those in its factors is presented in the following remark.Remark 6.If (u, v) and (u , v ) are vertices of G • H, then: We point out that the remark above was stated in [26,27] for the case where H ij ∼ = H for all H ij ∈ H j .By Remark 6, we deduce that if u ∈ V − {u i }, then two adjacent vertices (u i , w), (u i , y) are not distinguished by (u, v) ∈ V(G • H).Therefore, we can state the following remark.In order to state our main result (Theorem 13), we need to introduce some additional notation.Let B be a simultaneous local adjacency generator for a family of non-trivial connected graphs H i = {H i1 , . . ., H is } on a common vertex set V i , and let G • H be family of lexicographic product graphs defined as above.
S 0 is a family composed by empty graphs.
) is the family of subsets of I(V, H) as follows.We say that and the result follows.
As we will show in the next example, in order to get the value of Ψ(H i ), it is interesting to remark about the necessity of considering the family Γ(H i ) of all simultaneous local adjacency generators and not just the family of simultaneous local adjacency bases of H i .

Example 1.
Let H 1 ∼ = H 2 ∼ = P 5 be two copies of the path graph on five vertices such that V(H We define the following graph families. Proof.Let B be a simultaneous local adjacency generator for H and v ∈ V. We claim that B ⊆ N H (v).
To see this, we differentiate the following cases for H ∈ H.
• H has two non-trivial connected components J 1 , J 2 .In this case, B ∩ J 1 = ∅ and B ∩ J 2 = ∅, which implies that B ⊆ N H (v).
• H has one non-trivial component J such that r(J) ≥ 4. If H has two non-trivial components, then we are in the first case.Therefore, we can assume that J is the only non-trivial component of H. Suppose that B ⊆ N H (v), and get v ∈ V such that d H (v, v ) = 4.If vv 1 v 2 v 3 v is a shortest path from v to v , then v 3 and v are adjacent, and they are not distinguished by the elements in B, which is a contradiction.

•
H has one non-trivial component J of girth g(J) ≥ 7.In this case, if H has two non-trivial components, then we are in the first case.Therefore, we can assume that H has just one non-trivial component of girth g(J) ≥ 7. Suppose that B ⊆ N H (v). For each cycle v 1 v 2 . . .v n v 1 , there exists According to the five cases above, H ⊆ ∪ 4 i=0 S i leads to D[H, B] = ∅, for any simultaneous local adjacency generator, which implies that Ψ(H) = Sad l (H).
)) is a simultaneous local metric generator for G.However, the converse is not true, as we can see in the following example.

Example 2. Consider the family of connected graphs
the family consisting of only one graph H i , as follows: Lemma 4. Let G • H be a family of lexicographic product graphs.Let B ⊆ V be a simultaneous local metric generator for G.Then, B ∩ I(V, H) ∈ Υ(V, H).
Lemma 5. Let G • H be a family of lexicographic product graphs.For each u i ∈ V, let B i ⊆ V i be a simultaneous local adjacency generator for H i , and let Proof.In order to prove the lemma, let G k ∈ G, H j ∈ H, and let (u and we consider the following cases: In this case, there exists v ∈ B i 1 such that vv 1 / ∈ E(H i 1 j ), and then, (u i 1 , v) distinguishes the pair.

2.
In this case, by definition of A, there exists ∈ E(H i 1 j ); then, (u i 1 , v) distinguishes the pair.
Corollary 6.Let G • H be a family of lexicographic product graphs.Then: For each u i / ∈ A, let B i ⊆ V i be a simultaneous local adjacency basis of H i .For each u i ∈ A, let B i be a local adjacency generator for H i and then, by Lemma 5, B is a simultaneous local metric generator for G • H, and: As A ∈ Υ(V, H) is arbitrary: and the result follows.
Lemma 6.Let F be a simultaneous local metric basis of G • H.
Proof.Suppose, for the purpose of contradiction, that X F / ∈ Υ(V, H).That means that there exist As F is a simultaneous local metric generator, there exists (u i 3 , v) ∈ F that resolves the pair, which implies that F i 3 = ∅.By hypothesis u i 3 ∈ (Φ(V, H) − X F ) ∪ {u i 1 , u i 2 }, and so, u i 3 ∈ {u i 1 , u i 2 }.Without loss of generality, we assume that u i 3 = u i 1 and, in this case, which is a contradiction.Therefore, X F ∈ Υ(V, H).
Theorem 13.Let G • H be a family of lexicographic product graphs.
Proof.Let B be a simultaneous local metric basis of G • H.
and the result follows by Corollary 6.
Now, we will show some cases where the calculation of Sd l (G • H) is easy.At first glance, we have two main types of simplification: first, to simplify the calculation of Ψ(H i ) and, second, the calculation of the A ∈ Υ(V, H) that makes the sum achieves its minimum.
For the first type of simplification, we can apply Lemma 3 to deduce the following corollary.
Corollary 7. If for each i, H i ⊆ S 0 and H i ⊆ 4 j=0 S j , then: Given a family G of graphs on a common vertex set V and a graph H, we define the family of lexicographic product graphs: By Theorem 13, we deduce the following result.
Corollary 8. Let G be a family of graphs on a common vertex set V, and let H be a graph.If for every local adjacency basis B of H, B ⊆ N H (v) for every v ∈ V(H) − B, then: By Corollary 5 and Theorem 13, we have the following result.
Proposition 2. If V − I(V, H) is a simultaneous local metric generator for G or the graph G(G, I(V, H)) is empty, then: For the second type of simplification, we have the following remark.
From Remark 11, we can get some consequences of Theorem 13.

Proposition 3.
Let G • H be a family of lexicographic product graphs.For any vertex cover B of G(G, I(V, H)), u 1 and u 2 .Let x, y ∈ I(V, H) such that xy ∈ ∪ G∈G E(G).Since any u i ∈ Φ(V, H) distinguishes x and y, we can conclude that {u i } ∈ Υ(V, H), and by Remark 8, Ψ(H i ) = 1.Therefore, Theorem 13 leads to Sd l (G • H) = ∑ Sad l (H i ) + 1.
Assume that there exists In any one of these cases {u i } is a simultaneous local metric basis of G and, for every pair u 1 , u 2 of adjacent vertices in some G k ∈ G such that u i / ∈ {u 1 , u 2 }, u i distinguishes the pair.Since u i ∈ V − Φ(V, H), we can claim that ∅ ∈ Υ(V, H), and by Theorem 13, Sd l (G • H) = ∑ Sad l (H i ).

Families of Join Graphs
For two graph families G = {G 1 , . . ., G k 1 } and H = {H 1 , . . ., H k 2 }, defined on common vertex sets V 1 and V 2 , respectively, such that V 1 ∩ V 2 = ∅, we define the family: Notice that, since for any G i ∈ G and H j ∈ H the graph G i + H j has diameter two, The following result is a direct consequence of Theorem 13.

Corollary 9.
For any pair of families G and H of non-trivial graphs on common vertex sets V 1 and V 2 , respectively, Let G be a family of graphs defined on a common vertex set V 1 .If there exists B a simultaneous local adjacency basis of G such that D[G, B] = ∅, then for every H family of graphs defined on a common vertex set V 2 , we have: By Lemma 3 and Remark 12, we deduce the following result.
Proposition 7. Let G and H be two families of non-trivial connected graphs on a common vertex set V 1 and V 2 , respectively.If G ⊆ ∪ 4 i=1 S i , then:

Computability of the Simultaneous Local Metric Dimension
In previous sections, we have seen that there is a large number of classes of graph families for which the simultaneous local metric dimension is well determined.This includes some cases of graph families whose simultaneous metric dimension is hard to compute, e.g., families composed by trees [22], yet the simultaneous local metric dimension is constant.However, as proven in [23], the problem of finding the local metric dimension of a graph is NP-hard in the general case, which trivially leads to the fact that finding the simultaneous local metric dimension of a graph family is also NP-hard in the general case.
Here, we will focus on a different aspect, namely that of showing that the requirement of simultaneity adds to the computational difficulty of the original problem.To that end, we will show that there exist families composed by graphs whose individual local metric dimensions are constant, yet it is hard to compute their simultaneous local metric dimension.
To begin with, we will formally define the decision problems associated with the computation of the local metric dimension of one graph and the simultaneous local metric dimension of a graph family.As we mentioned above, LDIM was proven to be NP-complete in [23].Moreover, it is simple to see that determining whether a vertex set S ⊆ V, |S| ≤ p, is a simultaneous local metric generator can be done in polynomial time, so SLD is in NP.In fact, SLD can be easily shown to be NP-complete, since for any graph G = (V, E) and any integer 1 ≤ p ≤ |V(G)| − 1, the corresponding instance of LDIM can be trivially transformed into an instance of SLD by making G = {G}.

Local metric Dimension (LDIM)
For the remainder of this section, we will address the issue of the complexity added by the requirement of simultaneity.To this end, we will consider families composed by the so-called tadpole graphs [28].An (h, t)-tadpole graph (or (h, t)-tadpole for short) is the graph obtained from a cycle graph C h and a path graph P t by joining with an edge a leaf of P t to an arbitrary vertex of C h .We will use the notation T h,t for (h, t)-tadpoles.Since (2q, t)-tadpoles are bipartite, we have that dim l (T 2q,t ) = 1.In the case of (2q + 1, t)-tadpoles, we have that dim l (T 2q+1,t ) = 2, as they are not bipartite (so, dim l (T 2q+1,t ) ≥ 2), and any set composed by two vertices of the subgraph C 2q+1 is a local metric generator (so, dim l (T 2q+1,t ) ≤ 2).Additionally, consider the sole vertex v of degree three in T 2q+1,t and a local metric generator for T 2q+1,t of the form {v, x}, x ∈ V(C 2q+1 ) − {v}.It is simple to verify that for any vertex y ∈ V(P t ), the set {y, x} is also a local metric generator for T 2q+1,t .
Consider a family T = {T h 1 ,t 1 , T h 2 ,t 2 , . . ., T h k ,t k } composed by tadpole graphs on a common vertex set V. By Theorem 4, we have that Sd l (T ) = Sd l (T ), where T is composed by (2q + 1, t)-tadpoles.As we discussed previously, dim l (T 2q+1,t ) = 2.However, by Remark 1 and Theorem 1, we have that 2 ≤ Sd l (T ) ≤ |V| − 1.In fact, both bounds are tight, since the lower bound is trivially satisfied by unitary families, whereas the upper bound is reached, for instance, by any family composed by all different labeled graphs isomorphic to an arbitrary (3, t)-tadpole, as it satisfies the premises of Theorem 1.Moreover, as we will show, the problem of computing Sd l (T ) is NP-hard, as its associated decision problem is NP-complete.We will do so by showing a transformation from the hitting set problem, which was shown to be NP-complete by Karp [29].The hitting set problem is defined as follows: Hitting Set Problem (HSP) Instance: A collection C = {C 1 , C 2 , . . ., C k } of non-empty subsets of a finite set S and a positive integer p ≤ |S|.Question: Is there a subset S ⊆ S with |S | ≤ p such that S contains at least one element from each subset in C? Theorem 14.The Simultaneous Local metric Dimension problem (SLD) is NP-complete for families of (2q + 1, t)-tadpoles.
Proof.As we discussed previously, determining whether a vertex set S ⊆ V, |S| ≤ p, is a simultaneous local metric generator for a graph family G can be done in polynomial time, so SLD is in NP.Now, we will show a polynomial time transformation of HSP into SLD.Let S = {v 1 , v 2 , . . ., v n } be a finite set, and let C = {C 1 , C 2 , . . ., C k }, where every C i ∈ C satisfies C i ⊆ S. Let p be a positive integer such that p ≤ |S|.Let A = {w 1 , w 2 , . . ., w k } such that A ∩ S = ∅.We construct the family T = {T 2q 1 +1,t 1 , T 2q 2 +1,t 2 , . . ., T 2q k +1,t k } composed by (2q + 1, t)-tadpoles on the common vertex set V = S ∪ A ∪ {u}, u / ∈ S ∪ A, by performing one of the two following actions, as appropriate, for every r ∈ {1, . . ., k}:

•
If |C r | is even, let C 2q r +1 be a cycle graph on the vertices of C r ∪ {u}; let P t r be a path graph on the vertices of (S − C r ) ∪ A; and let T 2q r +1,t r be the tadpole graph obtained from C 2q r +1 and P t r by joining with an edge a leaf of P t r to a vertex of C 2q r +1 different from u.

•
If |C r | is odd, let C 2q r +1 be a cycle graph on the vertices of C r ∪ {u, w r }; let P t r be a path graph on the vertices of (S − C r ) ∪ (A − {w r }); and let T 2q r +1,t r be the tadpole graph obtained from C 2q r +1 and P t r by joining with an edge the vertex w r to a leaf of P t r .Figure 4 shows an example of this construction.In order to prove the validity of this transformation, we claim that there exists a subset S ⊆ S of cardinality |S | ≤ p that contains at least one element from each C r ∈ C if and only if Sd l (T ) ≤ p + 1.
To prove this claim, first assume that there exists a set S ⊆ S, which contains at least one element from each C r ∈ C and satisfies |S | ≤ p. Recall that any set composed by two vertices of C 2q r +1 is a local metric generator for T 2q r +1,t r , so S ∪ {u} is a simultaneous local metric generator for T .Thus, Sd l (T ) ≤ p + 1.Now, assume that Sd l (T ) ≤ p + 1, and let W be a simultaneous local metric generator for T such that |W| = p + 1.For every T 2q r +1,t r ∈ T , we have that u ∈ V(C 2q r +1 ) and δ T 2qr +1,tr (u) = 2, so | ((W − {x}) ∪ {u}) ∩ V(C 2q r +1 )| ≥ |W ∩ V(C 2q r +1 )| for any x ∈ W. As a consequence, if u / ∈ W, any set (W − {x}) ∪ {u}, x ∈ W, is also a simultaneous local metric generator for T , so we can assume that u ∈ W.Moreover, applying an analogous reasoning for every set C r ∈ C such that W ∩ C r = ∅, we have that, firstly, there is at least one vertex v r i ∈ C r such that v r i ∈ V(C 2q r +1 ) − {u} and δ T 2qr +1,tr (v r i ) = 2, and secondly, there is at least one vertex x r ∈ W ∩ ({w r } ∪ V(P t r )), which can be replaced by v r i .Then, the set: To conclude our proof, it is simple to verify that the transformation of HSP into SLD described above can be done in polynomial time.

Conclusions
In this paper we introduced the notion of simultaneous local dimension of graph families.We studied the properties of this new parameter in order to obtain its exact value, or sharp bounds, on several graph families.In particular, we focused on families obtained as the result of small changes in an initial graph and families composed by graphs obtained through well-known operations such as the corona and lexicographic products, as well as the join operation (viewed as a particular case of the lexicographic product).Finally, we analysed the computational complexity of the new problem, and showed that computing the simultaneous local metric dimension is computationally difficult even for families composed by graphs whose (individual) local metric dimensions are constant and well known. j+

2 (
subscripts taken modulo |V|) are not distinguished by v, so Item (1) of Remark 1leads to Sd l (G) ≥ max G∈G {dim l (G)} ≥ 2.Moreover, any set {v, v } is a local metric generator for every C i ∈ G, as the single pair of adjacent vertices not distinguished by v is distinguished by v , so that Sd l (G) ≤ 2.
Now, we give another result, which is a direct consequence of Theorem 8 and shows the general bounds of Sd l (G H).

Corollary 3 .
For any family G of connected graphs on a common vertex set V, |V| ≥ 2 and any family H of non-empty graphs on a common vertex set V , |V| ≤ Sd l (G H) ≤ |V|(|V | − 1).

Remark 7 .
If B is a simultaneous local metric generator for the family of lexicographic product graphs G • H, then B i = {v : (u i , v) ∈ B} is a simultaneous local adjacency generator for H i .

• S 1 2 ) ≥ 3 . 3 . 4 i=0S
is the family of graphs having at least two non-trivial components.• S 2 is the family of graphs having at least one component of radius at least four.• S 3 is the family of graphs having at least one component of girth at least seven.• S 4 is the family of graphs having at least two non-singleton true twin equivalence classes U 1 , U 2 such that d(U 1 , ULemma Let H ⊆ S 0 be a family of graphs on a common vertex set V. If H ⊆ i , then: Instance: A graph G = (V, E) and an integer p, 1 ≤ p ≤ |V(G)| − 1. Question: Is dim l (G) ≤ p? Simultaneous Local metric Dimension (SLD) Instance: A graph family G = {G 1 , G 2 , . . ., G k } on a common vertex set V and an integer p, 1 ≤ p ≤ |V| − 1. Question: Is Sd l (G) ≤ p?
− {x r }) ∪ {v r i }) is also a simultaneous local metric generator for T of cardinality |W | = p + 1 such that u ∈ W and (W − {u}) ∩ C r = ∅ for every C r ∈ C. Thus, the set S = W − {u} satisfies |S | ≤ p and contains at least one element from each C r ∈ C.
{H 11 , . . .H 1j , . . .H 1s 1 } defined on V 1 {H i1 , . . .H ij , . . .H is i } defined on V i H i = H n = {H n1 , . . .H nj , . . .H ns n } defined on V n then we define the graph D[H i , B] in the following way.The vertex set of D[H i , B] is D[H i , B], and two vertices v, w are adjacent in D[H i , B] if and only if for for every is the graph with vertex set I(V, H) and edge set E such that u i u j ∈ E if and only if there existsG k ∈ G such that u i u j ∈ E(G k ).If H i,j ∼ = N |V i | for every H i,j ∈ H i , then B = ∅ is the only simultaneous local adjacency basis of H i , D[H i , ∅] ∼ = K |V i | , and then, Ψ(H i ) = γ(K |V i | ) = 1.On the other hand, suppose that H i,j ∼ = N |V i |for some H i,j ∈ H i .In this case, Sad l (H i ) ≥ 1.If Sad l (H i ) > 1, then we are done.Suppose that Sad Remark 8. Ψ(Hi ) = 1 if and only if H i,j ∼ = N |V i | for every H i,j ∈ H i .Proof.l (H i ) = 1.For any simultaneous local adjacency basis u j }; and we are done.If there exists a simultaneous local metric generator B for By Remark 7, |B i | ≥ Sad l (H i ) for every u i ∈ V, so that Lemma 6