ARS MATHEMATICA CONTEMPORANEA Also available at http://amc-journal.eu ISSN 1855-3966 (printed edn.), ISSN 1855-3974 (electronic edn.) ARS MATHEMATICA CONTEMPORANEA 8 (2015) 365-379 On global location-domination in graphs* Carmen Hernando Dept. of Applied Mathematics I, Universität Politécnica de Catalunya, Barcelona, Spain Merce Mora Dept. of Applied Mathematics II, Universitat Politecnica de Catalunya, Barcelona, Spain Ignacio M. Pelayo f Dept. of Applied Mathematics III, Universitat Politecnica de Catalunya, Barcelona, Spain Received 23 December 2013, accepted 8 February 2015, published online 29 May 2015 A dominating set S of a graph G is called locating-dominating, LD-set for short, if every vertex v not in S is uniquely determined by the set of neighbors of v belonging to S. Locating-dominating sets of minimum cardinality are called LD-codes and the cardinality of an LD-code is the location-domination number A(G). An LD-set S of a graph G is global if it is an LD-set of both G and its complement G. The global location-domination number Ag (G) is introduced as the minimum cardinality of a global LD-set of G. In this paper, some general relations between LD-codes and the location-domination number in a graph and its complement are presented first. Next, a number of basic properties involving the global location-domination number are showed. Finally, both parameters are studied in-depth for the family of block-cactus graphs. Keywords: Domination, global domination, locating domination, complement graph, block-cactus. Math. Subj. Class.: 05C35, 05C69 * Research partially supported by projects MTM2012-30951/FEDER, Gen. Cat. DGR 2014SGR46, MTM2011-28800-C02-01, Gen. Cat. DGR 2009SGR1387. t Corresponding author. E-mail addresses: carmen.hernando@upc.edu (Carmen Hernando), merce.mora@upc.edu (Merce Mora), ignacio.m.pelayo@upc.edu (Ignacio M. Pelayo) Abstract ©® This work is licensed under http://creativecommons.org/licenses/by/3.0/ 365 ArsMath. Contemp. 8(2015)297-318 1 Introduction Let G = (V, E) be a simple, finite graph. The open neighborhood of a vertex v e V is NG(v) = {u e V : uv e E} and the close neighborhood is NG[v] = {u e V : uv e E} U {v}. The complement of a graph G, denoted by G, is the graph on the same vertices such that two vertices are adjacent in G if and only if they are not adjacent in G. The distance between vertices v, w e V is denoted by dG(v, w). We write N(u) or d(v, w) if the graph G is clear from the context. Assume that G and H is a pair of graphs whose vertex sets are disjoint. The union G + H is the graph with vertex set V(G) U V(H) and edge set E(G) U E (H). The join G V H has V (G) U V (H) as vertex set and E (G) U E (H) U {uv : u e v(G) and v e V(H)} as edge set. For further notation, see [6]. A set D C V is a dominating set if for every vertex v e V \ D, N(v) n D = 0. The domination number of G, denoted by 7(G), is the minimum cardinality of a dominating set of G. A dominating set is global if it is a dominating set of both G and its complement graph, G. The minimum cardinality of a global dominating set of G is the global domination number of G, denoted with ys (G) [3, 4, 18]. If D is a subset of V and v e V \ D, we say that v dominates D if D C N(v). A set S C V is a locating set if every vertex is uniquely determined by its vector of distances to the vertices in S. The location number of G ^(G) is the minimum cardinality of a locating set of G [10, 12, 20]. A set S C V is a locating-dominating set, LD-set for short, if S is a dominating set such that for every two different vertices u, v e V \ S, N(u) n S = N(v) n S. The location-domination number of G, denoted by A(G), is the minimum cardinality of a locating-dominating set. A locating-dominating set of cardinality A(G) is called an LD-code [21]. Certainly, every LD-set of anon-connected graph G is the union of LD-sets of its connected components and the location-domination number is the sum of the location-domination number of its connected components. Notice also that a locating-dominating set is both a locating set and a dominating set, and thus ^(G) < A(G) and 7(G) < A(G). LD-codes and the location-domination parameter have been intensively studied during the last decade; see [1, 2, 5, 8, 13, 15] A complete and regularly updated list of papers on locating dominating codes is to be found in [16]. A block of a graph is a maximal connected subgraph with no cut vertices. A graph is a block graph if it is connected and each of its blocks is complete. A connected graph G is a cactus if all its blocks are cycles or complete graphs of order at most 2. Cactus are characterized as those graphs such that two different cycles share at most one vertex. A block-cactus is a connected graph such that each of its blocks is either a cycle or a complete graph. The family of block-cactus graphs is interesting because, among other reasons, it contains all cycles, trees, complete graphs, block graphs, unicyclic graphs and cactus (see Figure 1). Cactus, block graphs, and block-cactus have been studied extensively in different contexts, including the domination one; see [7, 11, 17, 22, 23]. The remaining part of this paper is organized as follows. In Section 2, we deal with the problem of relating the locating-dominating sets and the location-domination number of a graph and its complement. Also, global LD-sets and global LD-codes are defined. In Section 3, we introduce the so-called global location-domination number, and show some basic properties for this new parameter. In Section 4, we are concerned with the study of the sets and parameters considered in the preceding sections for the family of block-cactus graphs. Finally, the last section is devoted to address some open problems. C. Hernando et al.: On global location-domination in graphs 367 2 Relating A(G) to A(G) This section is devoted to approach the relationship between A(G) and A(G), for any arbitrary graph G. Some of the results we present were previously shown in [13] and we include them for the sake of completeness. Notice that Ng(x) n S = S \ NG(x) for any set S Ç V and any vertex x G V \ S .A straightforward consequence of this fact is the following lemma. Lemma 2.1. Let G = (V, E) be a graph and S Ç V. If x, y G V \ S, then NG(x) n S = NG(y) n S if and only if NG(x) n S = NG(y) n S. As an immediate consequence of this lemma, the following result is derived. Proposition 2.2. If S Ç V is an LD-set of a graph G = ( V, E), then S is an LD-set of G if and only if S is a dominating set of G. Proposition 2.3 ([13]). If S Ç V is an LD-set of a graph G = (V, E ), then S is an LD-set of G if and only if there is no vertex in V \ S dominating S in G. Proof. By Proposition 2.2, S is an LD-set of G if and only if S is a dominating set of G. But S is a dominating set of G if and only if Ng(u) n S = 0, for any vertex u G V \ S. This condition is equivalent to NG(u) n S = S for any vertex u G V \ S. Therefore, S is an LD-set of G if and only if there is no vertex u G V \ S such that S Ç NG(u), that is, there is no vertex in V \ S dominating S. □ Proposition 2.4 ([13]). If S Ç V is an LD-set of a graph G = (V, E) then there is at most one vertex u G V \ S dominating S, and in the case it exists, S U {u} is an LD-set of G. Proof. By definition of LD-set of G, there is at most one vertex adjacent to all vertices of S. Moreover, u is the only vertex not adjacent to any vertex of S in G. Therefore S U {u} is an LD-set of G and a dominating set of G. By Proposition 2.2, it is also an LD-set of G. □ Theorem 2.5 ([13]). For every graph G, |A(G) - A(G)| < 1. 368 Ars Math. Contemp. 8 (2015) 235-244 Proof. If S has an LD-code of G not containing a vertex dominating S, then S is an LD-set of G by 2.3. Consequently, A(G) < A(G). If S is an LD-code of G_with a vertex u e V\ S dominating S, then S U {u} is an LD-set of G by 2.4. Hence, A(G) < A(G) + 1. In any case, A(G)-A(G) < 1. By symmetry, A(G) - A(G) < 1,and thus |A(G)-A(G)| < 1. □ According to the preceding result, for every graph G, A(G) e {A(G) -1, A(G), A(G) + 1}, all cases being feasible for some connected graph G. For example, it is easy to check that the star K1,n-1 of order n > 2 satisfies A(K1in-1) = A(K1in-1), and the bi-star K2(r, s), r, s > 2, obtained by joining the central vertices of two stars K1,r and K1,s , satisfies A(K2(r,s)) = A(K2(r, s)) - 1. We intend to obtain either necessary or sufficient conditions for a graph G to satisfy A(G) > A(G), i.e., A(G) = A(G) + 1. After noticing that this fact is closely related to the existence or not of sets that are simultaneously locating-dominating sets in both G and its complement G, the following definition is introduced. Definition 2.6. A set S of vertices of a graph G is a global LD-set if S is an LD-set of both G and its complement G. Certainly, an LD-set is non-global if and only if there exists a (unique) vertex u e V(G) \ S which dominates S, i.e., such that S C N(u). Accordingly, an LD-code S of a graph G is said to be global if it is a global LD-set, i.e. if S is both an LD-code of G and an LD-set of G. In terms of this new definition, a result proved in [13] can be presented as follows. Proposition 2.7 ([13]). If G is a graph with a global LD-code, then A(G) < A(G). Proposition 2.8. If G is a graph with a non-global LD-set S and u is the only vertex dominating S, then the following conditions are satisfied: 1. The eccentricity of u is ecc(u) < 2; 2. the radius of G is rad(G) < 2; 3. the diameter of G is diam(G) < 4; 4. the maximum degree of G is A(G) > A(G). Proof. If x e N(u), then d(u, x) = 1. If x e N(u), since S is a dominating set of G, then there exists a vertex y e S n N(x) C N(u). Hence, ecc(u) < 2. Consequently, rad(G) < 2 and diam(G) < 4. By the other hand, degG(u) = |NG(u)| > |S| = A(G), implying that A(G) > A(G). □ Corollary 2.9. If G is a graph satisfying A(G) = A(G) + 1, then G is a connected graph such that rad(G) < 2, diam(G) < 4 and A(G) > A(G). The above result is tight in the sense that there are graphs of diameter 4 and radius 2 (resp. A(G) = A(G)), verifying A(G) = A(G) + 1. The graph displayed in Figure 2 is an example of graph satisfying rad(G) = 2, diam(G) = 4 and A(G) = A(G) + 1, and the complete graph Kn is an example of a graph such that A(G) = A(G) and A(G) = A(G) + 1, since A(Kñ) = n, A(Kn) = A(Kn) = n - 1. C. Hernando et al.: On global location-domination in graphs 369 Figure 2: This graph satisfies: rad(G) = 2, diam(G) = 4, X(G) = 3, X(G) = 4 and {x, y, z} is a non-global LD-code. 3 The global location-domination number Definition 3.1. The global location-domination number of a graph G, denoted by Xg (G), is defined as the minimum cardinality of a global LD-set of G. Notice that, for every graph G, Xg(G) = Xg (G), since for every set of vertices S C V(G) = V(G), S is a global LD-set of G if and only if it is a global LD-set of G. Proposition 3.2. For any graph G = (V, E), X(G) < Xg (G) < X(G) + 1. Proof. The first inequality is a consequence of the fact that a global LD-set of G is also an LD-set of G. For the second inequality, suppose that S is an LD-code of G,i.e. |S| = X(G). If S is a global LD-set of G,then Xg (G) = X(G). Otherwise, there exists a vertex u G V\S dominating S and S U {u} is an LD-set of G. Therefore, Xg (G) < X(G) + 1. □ Corollary 3.3. For any graph G = (V, E), max{X(G), X(G)} < Xg(G) < min{X(G) + 1, X(G) + 1}. Corollary 3.4. Let G = (V, E) be a graph. • If X(G) = X(G), then Xg(G) = max{X(G), X(G)}. • If X(G) = X(G), then Xg (G) G {X(G), X(G) + 1}, and both possibilities are feasible. Proof. Both statements are consequence of Proposition 3.2. Next, we give some examples to illustrate all possibilities given. It is easy to check that the complete graph K2 satisfies 1 = X(K2) = X(K2) = 2 and Xg(K2) = X(K2); the path P3 satisfies X(P3) = X(P3) = Xg(P3) = 2 and the cycle C5, satisfies X(C5) = X(C5) = 2 and Xg(C5) = 3. □ Proposition 3.5. For any graph G = (V,E), Xg (G) = X(G) + 1 if and only if every LD-code of G is non-global. Proof. A global LD-code of G is an LD-set of both G and G. Hence, if G contains at least a global LD-code, then Xg(G) = X(G). Conversely, if every LD-code of G is non-global, then there is no global LD-set of G of size X(G). Then, Xg (G) = X(G) + 1. □ As a consequence of Propositions 2.8 and 3.5, the following corollary holds. Corollary 3.6. If G is a graph with diam(G) > 5, then Xg (G) = X(G). We finalize this section by determining the exact values of X(G), X(G) and Xg(G) for some basic graph families. 370 Ars Math. Contemp. 8 (2015) 235-244 Lemma 3.7. If n > 7, then A(C„) = A(P„) = A(Pn_i). Proof. Firsty, we prove that A(Cn) < A(Pn-1) and A(Pn) < A(Pn-1). Suppose that V(Pn_i) = {1, 2,..., n - 1} and E(P„_i) = {(i,i + 1) : i = 1, 2, ...,n - 2} are the vertex set and the edge set of Pn-1, respectively. Assume that S is an LD-code of Pn-1 such that S does not contain vertex 1 neither n - 1 (it is easy to construct such an LD-code from those given in [1]). Since n - 1 > 6, S has at least 3 vertices and there is no vertex in V(Pn-1) \ S dominating S in Pn-1. Hence, S is an LD-set of Pn-1. Next, consider the graph G* obtained by adding to the graph Pn-1 a new vertex u adjacent to the vertices 2,3,..., n - 2, and may be to 1 or n - 1. Clearly, by construction, u is adjacent to all vertices of S in G* and there is no vertex in Pn-1 adjacent to all vertices in S. Therefore, S is an LD-set of G* and A(G*) < A(Pn-1). Finally, observe that if u is not adjacent to 1, neither to n - 1, then G* is the graph Cn and if u is adjacent to exactly one of the vertices 1 or n -1, then G* is the graph Pn, which proves the inequalities before stated. Lastly, we prove that A(Pn-1) < A(G), when G G {Pn, Cn}. Consider an LD-code S of G. Let x be the only vertex dominating S in G, if it exists, or any vertex not in S, otherwise. By construction, S is an LD-set of G - x, hence A(G - x) < A(G). To end the proof, we distinguish two cases. - If G is the cycle Cn, then G - x is the path Pn-1, implying that A(Pn-1) < A(Cn). - If G if the path Pn, then G-x is either the path Pn-1 or the graph Pr +Ps, with r, s > 1 andr + s = n-1 > 6. Since, A(Pr + Ps) = A(Pr) + A(Ps) = [2r/5] +_[2s/5] > [2(r + s)/5] = A(Pn-1), we conclude that, in any case, A(Pn-1) < A(Pn). ^ Proposition 3.8. Let G be a graph of order n > 1. IfG belongs to the set {Pn, Cn, Wn, Kn, K1,n_1, Kr,n_r, K2(r,n - r - 2)}, then the values of A(G) and A(G) areknown andthey are displayed in Tables 1 and 2. Proof. The values of the location-domination number of all these families, except the wheels, are already known (see [1,13,21]). Next, let us calculate the values of the location-domination number for the wheels and for the complements of all these families and also, from the results previously proved, the global location-domination number of them. • For paths, cycles and wheels of small order, the values of A(G) and Ag (G) can easily be checked by hand (see Table 1). • If n > 7, then A(W„) = A(Cn_1) = [], since (i) W„ = K V C„_1, (ii) every LD-code S of Cn_1 is an LD-set of Wn, and (iii) every LD-code of Cn_1 is global. • A(Kn) = A(K1 + • • • + K1) = A(K1) + • • • + A(K1) = n. A(K1,n_1) = A(K1 + Kn_1) = A(K1) + A(Kn_1) = 1 + (n - 2) = n - 1. A(Krn_r) = A(Kr + K„_r) = A(Kr) + A(K„_r) = (r - 1) + (n - r - 1) = n - 2, if 2 < r < n - r. The complement of the bi-star K2(r, s), with s = n - r - 2, is the graph obtained by joining a vertex v to exactly r vertices of a complete graph of order r + s and joining a vertex w to the remaining s vertices of the complete graph of order r + s. It is immediate to verify that the set containing all vertices except w, a vertex adjacent to v and a vertex adjacent to w is an LD-code of K2 (r, s) with n - 3 vertices. Thus, A(K2(r,s)) = n - 3. C. Hernando et al.: On global location-domination in graphs 371 G Pi P2 P3 P4 P5 Pe C4 C5 Ce W5 We W7 A(G) 1 1 2 2 2 3 2 2 3 2 3 3 A(G) 1 2 2 2 2 3 2 2 3 3 3 4 Ag (G) = Ag (G) 1 2 2 2 3 3 2 3 3 3 3 4 Table 1: The values of A(G), A(G) and Ag(G) of small paths, cycles and wheels. For every n > 7, A(Pn) = A(Cn) = [^n--2]. This result is a direct consequence of Lemma 3.7 and the fact that A(P„) = A(C„) = [2-1. • According to Lemma 3.7, A(W„) = A(K + C„_i) = A(Ki) + A(Cn_i) = 1 + A(P„_2) = 1 + [2(n - 2)/51 = |"(2n + 1)/51. n Theorem 3.9. Let G be a graph of order n > 1. If G belongs to the set {Pn, Cn, Wn, Kn, K1,n_1, Kr,n_r, K2(r, n — r — 2)}, then Ag(G) is known and it is displayed in Tables 1 and 2. Proof. All the cases follow from Corollary 3.4, except K1,n_1 and Kr,n_r, which are trivial. □ G Pn Wf Kf Ki,f-1 Kr,„ K2 (r, n - r - 2) order n n > 7 n>7 n > 8 n > 2 n > 4 2 < r < f - r 2 < r < f - r - 2 X (G) r 2f 1 r 2f 1 r 2f-21 n - 1 n - 1 n- 2 n - 2 X (G) r 2f-21 r2f-21 r2f+11 n n - 1 n- 2 n - 3 Xg(G) = = Xg (G) r 2f 1 r 2f 1 r2f+11 n n - 1 n- 2 n - 2 Table 2: The values of A(G), A(G) and Ag (G) for some families of graphs. 4 Global location-domination in block-cactus This section is devoted to characterizing those block-cactus G satisfying A(G) = A(G) +1. By Proposition 2.7, this equality is feasible only for graphs without global LD-codes. We will refer in this section to some specific graphs, such as the paw, the bull; the banner P, the complement of the banner, P; the butterfly and the corner L (see Figure 3). The block-cactus of order at most 2 are K and K2. For these graphs we have A(K ) = A(K1) = 1 and A(Kî) = 1 < 2 = A(K). In [5], all 16 non-isomorphic graphs with A(G) = 2 are given. After carefully examining all cases, the following result is obtained (see Figure 4). Proposition 4.1. Let G = (V, E) be a block-cactus such that A(G) = 2. Then, A(G) > A(G). Moreover, A(G) = A(G) + 1 = 3 if and only if G is isomorphic to the cycle of order 3, the paw, the butterfly or the complement of a banner. 372 Ars Math. Contemp. 8 (2015) 235-244 —<1C O-—<1 XI Paw Bull Banner, P P Butterfly Corner, L Figure 3: Some special graphs. A(G) = A(G) = 2 A(G) = 3 = A(G) + 1 n = 3 •—•—• < n = 4 n = 5 X Figure 4: All block-cactus with A(G) = 2. Next, we approach the case A(G) > 3. First of all, let us present some lemmas, providing a number of necessary conditions for a given block-cactus to have at least a non-global LD-set. Lemma 4.2. Let G = (V, E) be a block-cactus and S Ç V a non-global LD-set of G. If u G V \ S dominates S, then G[N(u)] is a disjoint union of cliques. Proof. Let x, y be a pair of vertices belonging to the same component H of G[N(u)]. Suppose that xy G E and take an x - y path P in H. Let z be an inner vertex of P. Notice that the set {u, x, y, z} is contained in the same block B of G. As B is not a clique, it must be a cycle, a contradiction, since degB (u) > 3. □ Lemma 4.3. Let G = (V, E) be a block-cactus and S Ç V a non-global LD-set of G. If u G V \ S dominates S and W = V \ N [u], then, for every vertex w G W, the following properties hold. i) 1 <| N (u) n N (w) |< 2. ii) If N (u) n N (w) = {x}, then x G S. iii) If N (u) n N (w) = {x, y}, then xy G E. iv) If w' G W and N (u) n N (w) = N (u) n N (w') = {x}, then w' = w. v) If w' G W, w' = w and |N (u)nN (w) | = |N (u)nN (w') | = 2, then N [w]nN [w'] = 0. C. Hernando et al.: On global location-domination in graphs 373 Proof. i),ii),iii): | N(u) n N(w) |> 1 as S C N(u) and S dominates vertex w. If N(u) n N(w) = {x}, then necessarily x G S. Assume that | N(u) n N(w) |> 1. Observe that the set N[u] n N[w] is contained in the same block B of G. Certainly, B must be a cycle since uw G E. Hence, | N(u) n N(w) |= 2. Moreover, in this case B is isomorphic to the cycle C4, which means that, if V(B) = {u, x, y, w}, then xy G E. iv): If w' = w, then S n N(w) = S n N(w'), as S is an LD-set. v): Suppose that w = w', N(u) n N(w) = {x, y} and N(u) n N(w') = {z,t}. Notice that {x, y} = {z, t}, since S is an LD-set. If y = z, then the set {u, w, w', x, y, t} is contained in the same block B of G, a contradiction, because B is neither a clique, since uw G E, nor a cycle, as degG(u) > 3. Assume thus that {x,y} n {z, t} = 0. If either ww' G E or N(w) n N(w') = 0, then the set {u, w, w', x, y, z, t} is contained in the same block B of G, again a contradiction, because B is neither a clique, since uw G E, nor a cycle, as degG(u) > 4. □ Lemma 4.4. Lei G = (V, E) be a block-cactus and S C V a non-global LD-set of G. If u G V \ S dominates S and W = V \ N[u], then • Every component of G[W] is isomorphic either to Ki or to K2. • If w, w' G W and ww' G E, then the set {w, w'} is contained in the same block, which is isomorphic to C5. Proof. Let w, w' such that ww' G E. According to Lemma 4.3, the set {u} U N[w] U N[w'] forms a block B of G, which is isomorphic to the cycle C5. In particular, no vertex of W \{w,w'} is adjacent to w or to w'. □ As a corollary of the previous three lemmas the following proposition is obtained. Proposition 4.5. Let G = (V, E) be a block-cactus and S C V a non-global LD-set of G. If u G V \ S dominates S, then every maximal connected subgraph of G such that u is not a cut-vertex is isomorphic to one of the following graphs (see Figure 5): a) u is adjacent to every vertex of a complete graph Kr, r > 1, and each one of the vertices of Kr is adjacent to at most one new vertex of degree 1; b) u is a vertex of a cycle of order 4, and each neighbor of u is adjacent to at most one new vertex of degree 1 ; c) u is a vertex of a cycle of order 5. In the next theorem, we characterize those block-cactus not containing any global LD-code of order at least 3. Theorem 4.6. Let G = (V, E) be a block-cactus such that A(G) > 3. Then, every LD-code of G is non-global if and only if G is isomorphic to one of the following graphs (see Figure 6): a) Ki V (Ki + Kr), r > 3; b) the graph obtained by joining one vertex of K2 with a vertex of a complete graph of order r + 1, r > 3; c) Kr+i, r > 3; 374 Ars Math. Contemp. 8 (2015) 235-244 Bi Bo u 1 Bk G Kr, r> 1 u (b) Figure 5: If Bi,..., Bk are the maximal connected subgraphs of G with vertex u not being a cut-vertex, each subgraph Bj is isomorphic to one of the graphs displayed in (a), (b), (c). Gray vertices are optional. d) the graph obtained by joining a vertex of K2 with one of the vertices of degree 2 of a corner; e) if we consider the graph K1 V (Kri + • • • + Krt) and t' copies of a corner, with t +1' > 2 and r1,..., rt > 2, the graph obtained by identifying the vertex u of K1 with one of the vertices of degree 2 of each copy of the corner. X (a) r > 3 y (b) r > 3 u Kr (c) r > 3 (d) t') K r 1 ■ t) K rt (e) t +1' > 2, ri,...,rt > 2 Figure 6: Block-cactus with A(G) > 3 not containing any global LD-code. u u Proof. Firstly, let us show that none of these graphs contains a global LD-code. a) Let G be the graph showed in Figure 6(a). Observe that A(G) = r and, for every LD-code S, |S n {x, u}| = 1 and |S n Kr | = r — 1. Let w be the vertex of Kr not in S. If x € S, then S c N(u). Otherwise, if u e S, then S c N(w). b) Let G be the graph showed in Figure 6(b). Notice that A(G) = r and, for every LD-code S, x e S and |S n Kr | = r — 1. Hence , if S is an LD-code of G, then S c N(u). C. Hernando et al.: On global location-domination in graphs 375 c) If G = Kn (Figure 6(c)), then G contains no global LD-code. d) Let G be the graph showed in Figure 6(d). Clearly, the unique LD-code of G is S = N (u). e) Let G be the graph showed in Figure 6(e). In this graph, every LD-code contains both vertices adjacent to vertex u in each copy of the corner and, for every i € {1,..., t}, ri - 1 vertices of Kri. Thus, for every LD-code S of G, S c N(u). In order to prove that these are the only graphs not containing any global LD-code, we previously need to show the following lemmas. Lemma 4.7. Let G = (V, E) be a block-cactus and S C V a non-global LD-set of G. If u € V \ S dominates S, then, for every component H of G[N(u)] of cardinality r, |V(H) n S)| = max{1,r - 1}. Proof. This result is an immediate consequence of Lemma4.2 (G[N(u)] is a disjoint union of cliques), along with the fact that S is an LD-set. □ Given a cut vertex u of a connected graph G, let Au be the set of all maximal connected subgraphs H of G such that (i) u € V(H) and (ii) u is not a cut vertex of H. Observe that any subgraph of Au can be obtained from a certain component of the graph G - u, by adding the vertex u according to the structure of G. Lemma 4.8. Let G = (V, E) be a block-cactus with A(G) > 3 and let S C V be a nonglobal LD-set of G. If u € V \ S dominates S and the set Au contains a graph isomorphic to one of the graphs displayed in Figure 7, then G has a global LD-code. (a) z (b) v z u -?