Next Article in Journal
Analysis of the Complex Network of the Urban Function under the Lockdown of COVID-19: Evidence from Shenzhen in China
Previous Article in Journal
Behavior Analysis of a Class of Discrete-Time Dynamical System with Capture Rate
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Remarks on the Vertex and the Edge Metric Dimension of 2-Connected Graphs

by
Martin Knor
1,†,
Jelena Sedlar
2,3,† and
Riste Škrekovski
3,4,*,†
1
Faculty of Civil Engineering, Slovak University of Technology in Bratislava, Radlinského 11, 813 68 Bratislava, Slovakia
2
Faculty of Civil Engineering, Architecture and Geodesy, University of Split, 21000 Split, Croatia
3
Faculty of Information Studies, 8000 Novo Mesto, Slovenia
4
Faculty of Mathematics and Physics, University of Ljubljana, 1000 Ljubljana, Slovenia
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2022, 10(14), 2411; https://doi.org/10.3390/math10142411
Submission received: 15 June 2022 / Revised: 7 July 2022 / Accepted: 8 July 2022 / Published: 10 July 2022
(This article belongs to the Section Network Science)

Abstract

:
The vertex (respectively edge) metric dimension of a graph G is the size of a smallest vertex set in G, which distinguishes all pairs of vertices (respectively edges) in G, and it is denoted by dim ( G ) (respectively edim ( G ) ). The upper bounds dim ( G ) 2 c ( G ) 1 and edim ( G ) 2 c ( G ) 1 , where c ( G ) denotes the cyclomatic number of G, were established to hold for cacti without leaves distinct from cycles, and moreover, all leafless cacti that attain the bounds were characterized. It was further conjectured that the same bounds hold for general connected graphs without leaves, and this conjecture was supported by showing that the problem reduces to 2-connected graphs. In this paper, we focus on Θ -graphs, as the most simple 2-connected graphs distinct from the cycle, and show that the the upper bound 2 c ( G ) 1 holds for both metric dimensions of Θ -graphs; we characterize all Θ -graphs for which the bound is attained. We conclude by conjecturing that there are no other extremal graphs for the bound 2 c ( G ) 1 in the class of leafless graphs besides already known extremal cacti and extremal Θ -graphs mentioned here.

1. Introduction

In this paper, we assume that all graphs are simple and connected, unless we explicitly say otherwise, and we consider distances in such graphs. Let G be a graph with the set of vertices V ( G ) and the set of edges E ( G ) . The distance  d G ( u , v ) between vertices u , v V ( G ) is the length of a shortest path in G connecting vertices u and v . The distance d G ( u , e ) between a vertex u V ( G ) and an edge e = v w E ( G ) is defined by d G ( u , e ) = min { d G ( u , v ) , d G ( u , w ) } . When no confusion arises from that, we use abbreviated notation d ( u , v ) and d ( u , e ) . We say that a pair x and x of vertices from V ( G ) (respectively of edges from E ( G ) ) is distinguished by a vertex s V ( G ) if d ( s , x ) d ( s , x ) . A set S is a vertex (respectively an edge) metric generator if every pair x and x of vertices from V ( G ) (respectively of edges from E ( G ) ) is distinguished by a vertex s S . The size of a smallest vertex (respectively edge) metric generator in G is called the vertex (respectively the edge) metric dimension of G, and it is denoted by dim ( G ) (respectively edim ( G ) ). The cyclomatic number  c ( G ) of a graph G is defined by c ( G ) = E ( G ) V ( G ) + 1 . A Θ -graphis any graph G with precisely two vertices of degree 3 and all other vertices of degree 2.
The concept of the vertex metric dimension was introduced related to the study of navigation systems [1] and the landmarks in networks [2]. Various aspects of this metric dimension have been studied since it was first introduced [3,4,5,6,7,8,9,10]. As was noticed recently in [11], there are graphs in which none of the smallest vertex metric generators distinguish all pairs of edges. This motivated the introduction of a new variant of the metric dimension, namely the edge metric dimension. Even though it is newer than the vertex metric dimension, the edge metric dimension also attracted interest [12,13,14,15,16,17,18,19,20]. A nice survey of the topic of the metric dimension is given in [21].
Particularly relevant for this paper is the line of investigation from papers [17,22,23,24,25,26]. In [22], the value of the vertex and edge metric dimensions for unicyclic graphs was bounded so it can take only two consecutive integer values, and then, in [17], the condition under which the dimensions take each of the values was established. This result was further extended to graphs with edge disjoint cycles [25], also called cactus graphs or cacti. A similar line of research for another variant of the metric dimension, the so-called mixed metric dimension, was conducted in [23,24,27]. The results for cacti from [25] imply that the simple upper bounds dim ( G ) L ( G ) + 2 c ( G ) and edim ( G ) L ( G ) + 2 c ( G ) hold for all cacti G distinct from paths, where
L ( G ) = v V ( G ) , ( v ) > 1 ( ( v ) 1 ) ,
with ( v ) being the number of paths pending at a vertex v of degree 3 . Moreover, the following conjectures were proposed for general graphs.
Moreover, the following conjectures were proposed for general graphs.
Conjecture 1.
Let G be a connected graph. Then, dim ( G ) L ( G ) + 2 c ( G ) .
Conjecture 2.
Let G be a connected graph. Then, edim ( G ) L ( G ) + 2 c ( G ) .
Since the attainment of the bound in the class of cactus graphs depends on the presence of leaves, leafless cacti and general graphs without leaves were further investigated in [26]. It was established that, for leafless cacti, the upper bound decreases to 2 c ( G ) 1 , and all cacti attaining this bound were characterized. It was further conjectured that the same decreased upper bound holds for all leafless graphs, i.e., the following two conjectures were posed.
Conjecture 3.
Let G C n be a graph with minimum degree δ ( G ) 2 . Then, dim ( G ) 2 c ( G ) 1 .
Conjecture 4.
Let G C n be a graph with minimum degree δ ( G ) 2 . Then, edim ( G ) 2 c ( G ) 1 .
To support these conjectures, it was established in [26] that they hold for all graphs with δ ( G ) 3 with the strict inequality. Moreover, additional results for graphs with δ ( G ) = 2 were also established, but let us first define all involved notions.
A set S V ( G ) is called a vertex cut if G S is not connected or it is trivial. A vertex v is called a cut vertex if S = { v } is a vertex cut. The (vertex) connectivity of a graph G is the size of the smallest vertex cut in G, and we denote it by κ ( G ) . A graph G is said to be k-connected if κ ( G ) k . Any maximal 2-connected subgraph of G is called a block of G. If a block G i contains at least three vertices, then G i is said to be non-trivial.
In [26], it was established that, for δ ( G ) = 2 , the problem can be reduced to 2-connected graphs, i.e., it was shown that if Conjecture 3 (respectively Conjecture 4) holds for 2-connected graphs, then it holds in general. Moreover, considering when the upper bound is attained, the following claim was established.
Lemma 1.
Let G C n be a graph with δ ( G ) 2 . If dim ( G i ) < 2 c ( G i ) 1 (respectively edim ( G i ) < 2 c ( G i ) 1 ) for a block G i of G distinct from a cycle or there exist two vertex-disjoint non-trivial blocks G j and G k in G, then dim ( G ) < 2 c ( G ) 1 (respectively edim ( G ) < 2 c ( G ) 1 ).
In this paper, we consider 2-connected graphs that attain the bound of Conjectures 3 and 4. In particular, we study Θ -graphs, as they are the simplest 2-connected graphs distinct from cycles. We show that the upper bound 2 c ( G ) 1 holds for both metric dimensions of Θ -graphs. Since, for all Θ -graphs, the value of the cyclomatic number equals 2 , to prove the conjectures, it is sufficient to prove that for all such graphs, metric dimensions are bounded above by 3. We also characterize all Θ -graphs for which the bounds are attained. The paper is concluded with the conjectures that the already known extremal leafless cacti from [26] and the extremal Θ -graphs established in this paper are the only leafless graphs for which the bound 2 c ( G ) 1 is attained. For these conjectures, we also established that they reduce to the same problem on the class of 2-connected graphs.

2. Θ -Graphs with Metric Dimensions Equal to 3

Therefore, let us first introduce a necessary notation for Θ -graphs. Let G be a Θ -graph; by u and v, we denote the two vertices of degree 3 in G . Notice that there are three distinct paths in G connecting u and v , and we denote them by P 1 = u 0 u 1 u p , P 2 = v 0 v 1 v q , and P 3 = w 0 w 1 w r , so that u 0 = v 0 = w 0 = u , u p = v q = w r = v , and p q r . The cycle in G induced by paths P i and P j will be denoted by C i j . A Θ -graph in which paths P 1 , P 2 , and P 3 are of lengths p , q , and r, respectively, is denoted by Θ p , q , r .
Lemma 2.
Let G = Θ p , p , p or Θ p , p , p + 2 with p 2 . Then, dim ( G ) 3 .
Proof. 
Let S V ( G ) be a set of vertices in G such that S = 2 . It is sufficient to show that S is not a vertex metric generator. First, if S = { u , v } , then u 1 and v 1 are not distinguished by S , so we can assume v S . Now, let us consider the case S V ( P i ) for some i { 1 , 2 , 3 } . Assume first S V ( P 3 ) . Since P 1 and P 2 are of equal length, the distance of u 1 and v 1 to all vertices of P 3 is the same; hence, S does not distinguish u 1 and v 1 . Let us now assume S V ( P 1 ) , and let us consider vertices v 1 and w 1 . Notice that a shortest path from both v 1 and w 1 to all vertices of P 1 leads through u . This implies that the distance from v 1 and w 1 to all the vertices of P 1 is the same, so a set S V ( P 1 ) would not distinguish v 1 and w 1 . The same reasoning goes for S V ( P 2 ) , so we may assume that S V ( P i ) for every i = 1 , 2 , 3 .
Now, denote by s 1 and s 2 the two elements of S. Then, s 1 and s 2 are internal vertices of paths P i and P j , respectively, where i j . We distinguish two cases.
Case 1: s 1 V ( P 1 ) and s 2 V ( P 2 ) . Let us denote d 1 = d ( s 1 , u ) , d 2 = d ( s 2 , u ) ,   a = d 1 + d 2 , and b = 2 p a . If a = b , then s 1 and s 2 form an antipodal pair on C 12 , which implies that two neighbors of s 1 are not distinguished by S. Therefore, without loss of generality, we may assume a < p and d 1 d 2 . Since a + b = 2 p , it follows that a and b are of the same parity; hence, b a is a positive even number. Therefore, we can define c = ( b a ) / 2 , and we know that c is a positive integer. Let d = 2 d 1 + c . Notice that
c < d = 2 d 1 + c a + c = a 2 + b 2 = p .
Therefore, there exist interior vertices u d P 1 and w c P 3 ; see Figure 1a.
Now, we prove that u d and w c are not distinguished by S. Notice that d ( u d , s 1 ) = d d 1 = d 1 + c . Since
c + d 1 = b 2 a 2 + d 1 b 2 = p a 2 < p ,
we have d ( w c , s 1 ) = c + d 1 , and so, u d and w c are not distinguished by s 1 . As for s 2 , notice that
c + d 2 < b a 2 + a = p ,
so we have d ( w c , s 2 ) = c + d 2 . Furthermore, we have
d 2 + d = d 2 + 2 d 1 + c = a + d 1 + b a 2 = p + d 1 > p ,
which implies
d ( u d , s 2 ) = 2 p d d 2 = 2 p p d 1 = p d 1 = p a + d 2 = c + d 2 .
We conclude that u d and w c are not distinguished by s 2 either, so S is not a vertex metric generator.
Case 2: s 1 V ( P 1 ) and s 2 V ( P 3 ) . For G = Θ p , p , p , this case is analogous to the previous one, so let us assume G = Θ p , p , p + 2 . Again, denote d 1 = d ( u , s 1 ) , d 2 = d ( u , s 2 ) , a = d 1 + d 2 , and b = 2 p + 2 a . If a = b , then s 1 and s 2 are antipodal on C 13 , so the two neighbors of s 1 are not distinguished by S. Hence, without loss of generality, we may assume a < b . Let us denote c = ( b a ) / 2 . Since a + b = 2 p + 2 we know that a and b are of the same parity, so b a is a positive integer. Consequently, also, c is a positive integer.
First, since s 1 and s 2 are internal vertices of paths P 1 and P 3 , respectively, we have a = d 1 + d 2 2 . This yields
c = b a 2 = a + b 2 a = p + 1 a p 1 .
Hence, there exists an interior vertex v c V ( P 2 ) , as it is shown in Figure 1b. Furthermore, notice that
d 1 + c < a + b a 2 = a + b 2 = p + 1 ,
which implies d ( v c , s 1 ) = d 1 + c .
Now, let d = 2 d 1 + c . If d p , we consider the vertex u d V ( P 1 ) ; otherwise, for the sake of simplicity, we denote u d = w 2 p + 2 d ; see Figure 1b. We have already shown d 1 + c < p + 1 , which yields
d d 1 = d 1 + c < p + 1 ,
and so, d ( u d , s 1 ) = d d 1 = d 1 + c = d ( v c , s 1 ) . Hence, u d and v c are not distinguished by s 1 . It remains to prove that u d and v c are not distinguished by s 2 either. For that purpose, notice that
c + d 2 < c + a = b a 2 + a = a + b 2 = p + 1 ,
which implies d ( v c , s 2 ) = c + d 2 . Furthermore, notice that
2 p + 2 d d 2 = a + b 2 d 1 c d 2 = a + b d 1 b a 2 ( d 1 + d 2 ) = a + b 2 d 1 = p + 1 d 1 < p + 1 ,
which implies
d ( s 2 , u d ) = 2 p + 2 d d 2 = a + b 2 d 1 = a + b 2 a + a d 1 = = b a 2 + d 2 = c + d 2 = d ( v c , s 2 ) .
Therefore, vertices v c and u d are not distinguished by s 2 either; hence, we conclude that S is not a vertex metric generator. □
Now, a subgraph H of a graph G is an isometric subgraph if d H ( u , v ) = d G ( u , v ) for every pair of vertices u , v V ( H ) . Consequently, if a pair of vertices is distinguished by S V ( H ) in H , then it is distinguished by S in G as well.
Lemma 3.
Let G = Θ p , p , p or Θ p , p , p + 2 with p 2 . Then. for any a V ( G ) , there are b , c V ( G ) such that S = { a , b , c } is a vertex metric generator in G.
Proof. 
First, notice that every cycle C i j of G is an isometric subgraph in G . We say that a set S V ( G ) is nice, if for every cycle C i j of G, it holds that S V ( C i j ) contains two vertices that do not form an antipodal pair in C i j . We first show that any nice set S is a vertex metric generator in G . In order to see this, let x and x be a pair of vertices from G . Notice that x and x belong to at least one cycle C i j in G. Since S is nice, S V ( C i j ) contains two vertices that are not antipodal in C i j , which implies that S V ( C i j ) is a vertex metric generator in C i j . Therefore, x and x are distinguished by S V ( C i j ) in C i j . Since C i j is an isometric subgraph of G , this further implies that x and x are distinguished by S in G , so S is a vertex metric generator of G. To complete the proof, for every a V ( G ) , we extend a to a nice set.
Let us assume G = Θ p , p , p . If p 3 , the set S = { u , v 1 , w 1 } is a nice set in G. Therefore, S is a vertex metric generator, which, due to the symmetry of G, proves the claim. Therefore, let us assume that p 4 . By symmetry, we may assume that a = u i , where 0 i p / 2 . However, then, S i = { u i , v 1 , w 1 } is a nice set in G.
Assume now that G = Θ p , p , p + 2 . If p = 2 , it is easy to see that sets S = { u , v 1 , w 1 } and S = { u , v 1 , w 2 } are nice in G , which, due to the symmetry of G, proves the claim. If p > 2 , then, due to the symmetry of G, it is sufficient to prove the claim for a = u i , where 0 i p / 2 , and for a = w j , where 1 j p / 2 + 1 . If a = u i for i p / 2 , then S = { u i , v 1 , w 1 } is nice in G. On the other hand, if a = w j for j p / 2 + 1 , then S = { u 1 , v 1 , w j } is nice in G. □
By Lemmas 2 and 3, the following statement holds.
Theorem 1.
For p 2 , it holds that dim ( Θ p , p , p ) = dim ( Θ p , p , p + 2 ) = 3 .
Since, in any Θ -graph G, it holds that L ( G ) = 0 and c ( G ) = 2 , the above theorem gives the following corollary.
Corollary 1.
We have dim ( Θ p , p , p ) = dim ( Θ p , p , p + 2 ) = 2 c ( G ) 1 .
Hence, for Θ p , p , p and Θ p , p , p + 2 , the bound from Conjecture 3 holds with equality. Similarly, when considering the edge metric dimension of Θ -graphs, we have the following.
Lemma 4.
Let G = Θ 1 , 2 , 2 or Θ p , p , q with 2 p 3 and p q p + 2 . Then, for any a V ( G ) , there are b , c V ( G ) such that S = { a , b , c } is an edge metric generator in G.
Proof. 
As p = 2 or 3 and q { p , p + 1 , p + 2 } , the problem is finite. To avoid a tedious proof, the statement was easily verified by a computer by checking all sets S V ( G ) of cardinality three. □
Proposition 1.
Let G = Θ 1 , 2 , 2 or Θ p , p , q with 2 p 3 and p q p + 2 . Then, edim ( G ) = 3 .
Proof. 
Similarly as before, by a computer, we checked easily that there is no edge metric generator of size two. Then, the claim follows from Lemma 4. □
Corollary 2.
Let G = Θ 1 , 2 , 2 or G = Θ p , p , q for 2 p 3 and p q p + 2 . Then, edim ( G ) = 2 c ( G ) 1 .

3. Θ -Graphs with Metric Dimensions Equal to 2

In this section, we show that all remaining Θ -graphs, i.e., all Θ -graphs not mentioned in the previous section, have the vertex (respectively the edge) metric dimension equal to 2. We first consider the vertex metric dimension. For all remaining Θ -graphs, we show that there is a set S of cardinality two that is a vertex metric generator; see Figure 2.
Lemma 5.
Let G = Θ p , q , r , where p q r , and let S be a set of vertices in G , defined in the following way:
(i)
If one of p, q, r is odd and at least 3 and one of p, q, r is even, say q 3 is odd and r is even, then S = { v ( q 1 ) / 2 , w r / 2 } ;
(ii)
If p = 1 and both q and r are even, then S = { u , w r / 2 } ;
(iii)
If all p, q, r are even and q { p , p + 2 } , then S = { v 1 , w r / 2 } ;
(iv)
If all of p, q, r are even, q { p , p + 2 } , and r p + 4 , then S = { v q / 2 , w 1 } ;
(v)
If all p, q, r are even and q = r = p + 2 , then S = { v 1 , w 1 } ;
(vi)
If all p, q, r are odd and q { p , p + 2 } , then S = { v 1 , w ( r 1 ) / 2 } ;
(vii)
If all p, q, r are odd, q { p , p + 2 } and r p + 4 , then S = { v ( q 1 ) / 2 , w 1 } ;
(viii)
If all p, q, r are odd and q = r = p + 2 , then S = { v 1 , w 1 } .
Then, S is a vertex metric generator in G .
Proof. 
First, we introduce some notation. For a vertex a V ( G ) , we denote by P a the partition of V ( G ) according to the distances from a. That is, if x , x are in the same set of P a , then d ( a , x ) = d ( a , x ) . To prove that S = { a , b } is a vertex metric generator in G, it suffices to show that d ( b , x ) d ( b , x ) for every pair of vertices x , x from a common set of P a . Proceeding by way of contradiction, if d ( b , x ) = d ( b , x ) , then the shortest path from b to x cannot contain a path from b to x and vice versa. This simplifies our consideration since Θ p , q , r contains only two branching vertices (i.e., vertices of degree at least 3). Let us now consider each of the eight cases separately:
(i) For the vertex w r / 2 S , we have
P w r 2 = ( { w r 2 } , { w i , w r i } i = 0 r 2 1 , { u i , v i , u p i , v q i } i = 1 p 2 , { v i , v q i } i = p 2 + 1 q 2 ) .
We have to show that the other vertex of S , i.e., v ( q 1 ) / 2 , distinguishes all pairs of vertices from a common set of P w r 2 . The first type of set in P w r 2 that contains at least one pair of vertices is { w i , w r i } , so we have to show that w i and w r i are distinguished by v ( q 1 ) / 2 , and that follows from
d ( v q 1 2 , w i ) = i + q 1 2 < i + q + 1 2 = d ( w q 1 2 , w r i ) .
The next set from P w r 2 to consider is of the type { u i , v i , u p i , v q i } , where we have
d ( v q 1 2 , v i ) < d ( v q 1 2 , v q i ) < d ( v q 1 2 , u i ) < d ( y q 1 2 , u p i ) ,
where the last two expressions have place only if i p 2 . Therefore, all pairs of vertices from that set are distinguished by v ( q 1 ) / 2 S . Notice that the inequality covers also the last type of set from P w r 2 . Furthermore, observe that we did not use the fact that p q r here, so the proof covers all cases when one of p , q , r is odd and at least 3 and one of p , q , r is even.
(ii) Analogously, as in (i), we have
P w r 2 = ( { w r 2 } , { w i , w r i } i = 0 r 2 1 , { v i , v q i } i = 1 q 2 1 , { v q 2 } ) .
It remains to show that u distinguishes all pairs of vertices that belong to a common set of P w r 2 . This is seen from d ( u , w i ) = i < i + 1 = d ( u , w r i ) and d ( u , v i ) = i < i + 1 = d ( u , v q i ) .
(iii) We have
P w r 2 = ( { w r 2 } , { w i , w r i } i = 0 r 2 1 , { u i , v i , u p i , v q i } i = 1 p 2 , { v i , v q i } i = p 2 + 1 q 2 ) .
(Observe that the third set has just three vertices if i = p / 2 , and the last set has just one vertex if i = q / 2 .) We show that v 1 S distinguishes all pairs of vertices from a common set of P w r 2 . Regarding set { w i , w r i } , notice that d ( v 1 , w i ) = i + 1 < 1 + p + i = d ( v 1 , w r i ) . The next sets of P w r 2 are of the form { u i , v i , u p i , v q i } , where
d ( v 1 , v i ) = i 1 < i + 1 = d ( v 1 , u i ) ,
and assuming that v 1 does not distinguish the other possible pairs leads to a contradiction, namely d ( v 1 , u i ) = d ( v 1 , u p i ) implies i + 1 = q 1 + i and q = 2 , a contradiction; d ( v 1 , u i ) = d ( v 1 , v q i ) implies i + 1 = q i 1 and i = q / 2 1 , but such u i exists only if q p + 2 , a contradiction; d ( v 1 , v i ) = d ( v 1 , u p i ) implies i 1 = p i + 1 and i = p / 2 + 1 , but such i is over the limit for this set; d ( v 1 , v i ) = d ( v 1 , v q i ) implies i 1 = 1 + p + i or simplified p = 2 , a contradiction; d ( v 1 , u p i ) = d ( v 1 , v q i ) implies 1 + p i = q i 1 and q = p + 2 , a contradiction.
For the last set of P w r 2 , we have d ( v 1 , v i ) = i 1 < q i 1 = d ( v 1 , v i ) , whenever i < q / 2 , and for i = q / 2 , the set is a singleton.
(iv) For v q / 2 S we have
P v q 2 = ( { v q 2 } , { v i , v q i } i = 0 q 2 1 , { u i , w i , u p i , w r i } i = 1 p 2 , { w i , w r i } i = p 2 + 1 r 2 ) .
Now, we consider the distances from w 1 S . Assuming d ( w 1 , v i ) = d ( w 1 , v q i ) implies i + 1 = p + 1 + i , so p = 0 , a contradiction.
The next set to consider is of the form { u i , w i , u p i , w r i } . We have
d ( w 1 , w i ) = i 1 < min { d ( w 1 , u i ) , d ( w 1 , u p i ) , d ( w 1 , w r i ) } ,
which resolves three of the six possible pairs of vertices. For all other possible pairs, we assume that they are not distinguished by w 1 and show that it leads to a contradiction. Namely, d ( w 1 , u i ) = d ( w 1 , u p i ) implies i + 1 = 1 + q + i or simplified q = 0 , a contradiction; d ( w 1 , u i ) = d ( w 1 , w r i ) implies i + 1 = r i 1 , which reduces to i = r / 2 1 , but such i exceeds the limit for this set, since r p + 4 ; d ( w 1 , u p i ) = d ( w 1 , w r i ) implies 1 + p i = r i 1 , which reduces to r = p + 2 , a contradiction.
For the last set of P v q 2 , if w i w r i and d ( w 1 , w i ) = d ( w 1 , w r i ) , then i 1 = p + 1 + i and p = 2 , a contradiction.
(v) The partition for v 1 S is
P v 1 = ( { v 1 } , { u , v 2 } , { u i , v i + 2 , w i } i = 1 p 1 , { v , w p } , { w p + 1 } ) ,
and for distances from w 1 S , we have
d ( w 1 , u ) = 1 < 3 = d ( w 1 , v 2 ) , d ( w 1 , w i ) = i 1 < d ( w 1 , u i ) = i + 1 < d ( w 1 , v i + 2 ) = i + 3 , d ( w 1 , w p ) = p 1 < p + 1 = d ( w 1 , v ) .
(vi) For w ( r 1 ) / 2 S , we have
P w r 1 2 = ( { w r 1 2 } , { w i , w r i 1 } i = 0 r 3 2 , { u 1 , v 1 , v } , { u i , v i , u p i + 1 , v q i + 1 } i = 2 p + 1 2 , { v i , v q i + 1 } i = p + 3 2 q + 1 2 ) .
Now, consider the distances from v 1 S . Assume d ( v 1 , w i ) = d ( v 1 , w r i + 1 ) implies i + 1 = p + 1 + i + 1 , which reduces to p = 1 , a contradiction.
In the next set { u 1 , v 1 , v } of P w r 1 2 , there are three possible pairs of vertices, for which we have
d ( v 1 , v 1 ) = 0 < d ( v 1 , u 1 ) = 2 < d ( v 1 , v ) = p + 1 ,
where the last inequality holds if p > 1 , otherwise u 1 = v , so there is no pair to be distinguished.
The next set from P w r 1 2 is of the type { u i , v i , u p i + 1 , v q i + 1 } , where we first have d ( v 1 , v i ) = i 1 < i + 1 = d ( v 1 , u i ) , so the pair u i , v i is distinguished by v 1 S . For all remaining pairs of vertices from that set, we show that assuming they are not distinguished by s 1 S leads to a contradiction. If d ( v 1 , u i ) = d ( v 1 , u p i + 1 ) , then i + 1 = q 1 + i 1 and q = 3 , a contradiction; if d ( v 1 , u i ) = d ( v 1 , v q i + 1 ) , then i + 1 = q i + 1 1 , which reduces to i = ( q 1 ) / 2 , but such i exceeds the limit since q > p + 2 ; if d ( v 1 , v i ) = d ( v 1 , u p i + 1 ) , then i 1 = 1 + p i + 1 and, therefore, i = ( p + 3 ) / 2 , but such i exceeds the limit; if d ( v 1 , v i ) = d ( v 1 , v q i + 1 ) , then i 1 = 1 + p + i 1 , which reduces to p = 1 , a contradiction; finally, if d ( v 1 , u p i + 1 ) = d ( v 1 , v q i + 1 ) , then 1 + p i + 1 = q i + 1 1 , and therefore, q = p + 2 , a contradiction.
As for the last type of set in P w r 1 2 , if v i v q i + 1 and d ( v 1 , v i ) = d ( v 1 , v q i + 1 ) , then i 1 = 1 + p + i 1 , and so, p = 1 , a contradiction.
(vii) Observe that
P v q 1 2 = ( { v q 1 2 } , { v i , v q i 1 } i = 0 q 3 2 , { u 1 , w 1 , v } , { u i , w i , u p i + 1 , w r i + 1 } i = 2 p + 1 2 , { w i , w r i + 1 } i = p + 3 2 r + 1 2 ) .
Now, we consider the distances from w 1 S . If d ( w 1 , v i ) = d ( w 1 , v q i 1 ) , then i + 1 = p + 1 + i + 1 and p = 1 , a contradiction.
As for the set { u 1 , w 1 , v } P v q 1 2 , we have
d ( w 1 , w 1 ) = 0 < d ( w 1 , u 1 ) = 2 < d ( w 1 , v ) = r 1 .
Therefore, all three pairs of vertices from this set are distinguished by w 1 .
For the next set of P v q 1 2 , we first have
d ( w 1 , w i ) = i 1 < min { d ( w 1 , u i ) , d ( w 1 , u p i + 1 ) , d ( w 1 , w r i + 1 ) } ,
so w 1 distinguishes w i from all the other vertices in that set. If d ( w 1 , u i ) = d ( w 1 , u p i + 1 ) , then i + 1 = 1 + q + i 1 and q = 1 , a contradiction. If d ( w 1 , u i ) = d ( w 1 , w r i + 1 ) , then i + 1 = r i + 1 1 and i = ( r 1 ) / 2 ( p + 3 ) / 2 , but such i exceeds the limit. Finally, d ( w 1 , u p i + 1 ) = d ( w 1 , w r i + 1 ) implies 1 + p i + 1 = r i + 1 1 , which reduces to r = p + 2 , a contradiction.
For the last set of P v q 1 2 , if w i w r i + 1 and d ( w 1 , w i ) = d ( w 1 , w r i + 1 ) , then i 1 = 1 + p + i 1 and p = 1 , a contradiction.
(viii) Observe that
P v 1 = ( { v 1 } , { u , v 2 } , { u i , v i + 2 , w i } i = 1 p 1 , { v , w p } , { w p + 1 } ) .
Hence, P v 1 (and also, P w 1 ) does not depend on the parity of p. Therefore, analogous to case (v), one can show that S = { v 1 , w 1 } is a vertex metric generator in this case. □
Using Lemma 5, we can prove that all Θ -graphs not mentioned in the previous section have metric dimension 2.
Theorem 2.
Let G be a Θ-graph such that G Θ p , p , p and Θ p , p , p + 2 with p 2 . Then, dim ( G ) = 2 .
Proof. 
It is sufficient to show that Lemma 5 includes all Θ -graphs distinct from Θ p , p , p and Θ p , p , p + 2 . Cases (iii)-(v) of this lemma obviously include all Θ -graphs distinct from Θ p , p , p and Θ p , p , p + 2 in which all three parameters p, q, and r are even. Similarly, cases (vi)–(viii) of the same lemma include all Θ -graphs in which all three parameters are odd. It remains to show that cases (i)–(ii) cover all Θ -graphs in which p, q, and r do not have the same parity. In that case, at least one of the parameters is odd. If none of the parameters is equal to one, then Lemma 5. (i) covers the cases. If there is parameter equal to 1, then p = 1 , since p q r . Since G has no parallel edges, q 2 . Hence, if one of q and r is odd, then this parameter is at least 3 and the other parameter is even, which is covered by Lemma 5. (i) again. The only remaining case when p = 1 and both q and r are even is covered by Lemma 5. (ii). □
As regards the motivating question for this investigation, Theorem 2 yields the following corollary.
Corollary 3.
Let G be a Θ-graph such that G Θ p , p , p and G Θ p , p , p + 2 . Then, dim ( G ) < 2 c ( G ) 1 .
Now, we consider the edge metric dimension of Θ -graphs. We proceed analogously as in the case of vertex metric dimension. The edge metric generators from the following lemma are illustrated in Figure 3.
Lemma 6.
Let G = Θ p , q , r , where p q r , and let S be a set of vertices in G defined in the following way:
(i)
If p < q , r 3 , and p + r is even, then S = { w ( r p ) / 2 , w ( r + p ) / 2 } ;
(ii)
If p < q , r p + 3 , and p + r is odd, then S = { w ( r p ) / 2 , w ( r + p ) / 2 } ;
(iii)
If p < q , r = p + 1 , and ( p , q , r ) ( 1 , 2 , 2 ) , then S = { v 1 , w 1 } ;
(iv)
If p = q and p 4 , then S = { u 2 , v 1 } ;
(v)
If p = q and r p + 3 , then S = { v 1 , w 1 } .
Then, S is an edge metric generator in G.
Proof. 
The proof is analogous to the proof of Lemma 5. Let a be a vertex in G. By P a e , we denote the partition of E ( G ) according to the distances from a. To prove that S = { a , b } is an edge metric generator for G, it suffices to show that d ( b , e ) d ( b , f ) for every pair of edges e , f from a common set of P a e . Furthermore, to abbreviate the notation, an edge u i u i + 1 will be denoted by u i + or u i + 1 , and a similar notation will be used for edges v i v i + 1 and w i w i + 1 . We now consider each of the five cases separately:
(i) Denote a = ( r p ) / 2 and b = ( r + p ) / 2 . Then, for w a S , we have
P w a e = ( { w a i , w a + i + } i = 0 a 1 , { u i + , v i + , w r p + i + } i = 0 p 1 , { v p + i + , v q i } i = 0 q p 2 ) .
Next, we suppose that w b has the same distance to a pair of edges from a common set of P w a e , and we always come to a contradiction. Here, and in the next cases, the first distance is denoted by d 1 and the second distance is denoted by d 2 .
Let us first consider the set { w a i , w a + i + } from P w a e . If d ( w b , w a i ) = d ( w b , w a + i + ) , then d 1 = d ( w b , w a i ) . Further, d 2 = d ( w b , w a + i ) (otherwise, d 2 < d 1 ), and so, d ( w b , w a i ) = d ( w b , w a + i ) . Consequently, b ( a i ) = ( a + i ) b , and therefore, a = b , which contradicts p 1 .
Let us now consider the set { u i + , v i + , w r p + i + } P w a e and the distances from w b to the three possible pairs of edges from this set. If d ( w b , u i + ) = d ( w b , v i + ) , then d 1 = d ( w b , u i + 1 ) , since d 1 < d ( w a , v ) = d ( w b , u ) . Analogously, d 2 = d ( w b , v i + 1 ) . Thus, p ( i + 1 ) = q ( i + 1 ) and p = q , a contradiction. The next pair is u i + and w r p + i + , where assuming d ( w b , u i + ) = d ( w b , w r p + i + ) yields d 1 = d ( w b , u i + 1 ) and d 2 = d ( w b , w r p + i + 1 ) . Thus,
r r + p 2 + p ( i + 1 ) = r + p 2 ( r p + i + 1 )
which reduces to r = p , a contradiction. The last pair is v i + and w r p + i + , in which case d ( w b , v i + ) = d ( w b , w r p + i + ) implies d 2 > d ( w b , v ) = d ( w a , u ) , and so, d 2 = d ( w b , w r p + i + 1 ) and d 1 = d ( w b , v i + 1 ) . This gives
r r + p 2 + q ( i + 1 ) = r + p 2 ( r p + i + 1 )
and r + q = 2 p , a contradiction.
It remains to consider the set { v p + i + , v q i } P w a e . Assuming d ( w b , v p + i + ) = d ( w b , v q i ) yields d 2 = d ( w b , v q i ) = d ( w b , v ) + d ( v , v q i ) . However, d ( { u , v } , { v p + i , v p + i + 1 } ) > d ( v , v q i ) and d ( { u , v } , w b ) d ( w b , v ) . Therefore, d 1 > d 2 , a contradiction.
(ii) Since r p + 3 , we have ( r p ) / 2 3 / 2 = 1 . Since p 1 , we have ( r p ) / 2 < ( r + p ) / 2 . Hence, 1 ( r p ) / 2 < r / 2 . Denote a = ( r p ) / 2 and b = ( r + p ) / 2 . Then, for w a S , we have
P w a e = ( { w a i , w a + i + } i = 0 a 1 , { u i + , v i + , w 2 a + i + } i = 0 p 1 , { v p + , v q , w r 1 + } , { v p + i + , v q i } i = 1 q p 1 2 ) .
For each of the sets from P w a e , we now show that all possible pairs of edges from that set are distinguished by w b S . Let us first consider the set { w a i , w a + i + } . Assuming d ( w b , w a i ) = d ( w b , w a + i + ) , analogous as in (i), we obtain a = b , which contradicts p 1 .
Now, consider { u i + , v i + , w 2 a + i + } . If d ( w b , u i + ) = d ( w b , v i + ) , then analogously as in (i), we obtain p = q , a contradiction. If d ( w b , u i + ) = d ( w b , w 2 a + i + ) , then d 1 = d ( w b , u i + 1 ) and d 2 = d ( w b , w 2 a + i + 1 ) . Thus,
r r + p + 1 2 + p ( i + 1 ) = r + p + 1 2 ( 2 r p 1 2 + i + 1 )
which reduces to r = p + 2 , a contradiction. Finally, if d ( w b , v i + ) = d ( w b , w 2 a + i + ) , then d 1 = d ( w b , v i + 1 ) and d 2 = d ( w b , w 2 a + i + 1 ) . Thus,
r r + p + 1 2 + q ( i + 1 ) = r + p + 1 2 ( 2 r p 1 2 + i + 1 )
and hence, r + q = 2 p + 2 , a contradiction.
For edges from { v p + , v q , w r 1 + } , we have d ( w b , w r 1 + ) = d ( w b , w r 1 ) = r b 1 and d ( w b , v q ) = d ( w b , v ) = r b , so that d ( w b , w r 1 + ) < d ( w b , v q ) . If d ( w b , w r 1 + ) = d ( w b , v p + ) , then d 2 = d ( w b , v p ) . Therefore, r b 1 = b + p , and consequently, r p 1 = 2 b = r + p + 1 , a contradiction. Finally, if d ( w b , v q ) = d ( w b , v p + ) , then d 2 = d ( w b , v p ) . Therefore, r b = b + p , and consequently, r p = 2 b = r + p + 1 , a contradiction.
Finally, consider { v p + i + , v q i } . Assuming d ( w b , v p + i + ) = d ( w b , v q i ) yields
d 2 = d ( w b , v q i ) = d ( w b , v ) + d ( v , v q i ) < min { d ( { u , v } , { v p + i , v p + i + 1 } ) + d ( w b , { u , v } ) } d 1 ,
a contradiction.
(iii) Notice that, in this case, G = Θ p , p + 1 , p + 1 , where p 2 . For v 1 S , the partition is
P v 1 e = ( { v 1 , v 1 + } , { u i + , v i + 2 + , w i + } i = 0 p 2 , { u p 1 + , w p 1 + , w p + 1 } ) .
First, consider the set { v 1 , v 1 + } . Since p 2 , we have d ( w 1 , v 1 ) = 1 < 2 = d ( w 1 , v 1 + ) , so v 1 and v 1 + are distinguished by w 1 S .
Now, consider { u i + , v i + 2 + , w i + } . Since
d ( w 1 , w i + ) i < d ( w 1 , u i + ) = i + 1 < i + 2 d ( w 1 , v i + 2 + ) ,
all three pairs are distinguished by w 1 S .
Finally, for { u p 1 + , w p 1 + , w p + 1 } , we have
d ( w 1 , w p 1 + ) = p 2 < d ( w 1 , w p + 1 ) = p 1 < d ( w 1 , u p 1 + ) = p .
(iv) Observe that
P v 1 e = ( { v 1 , v 1 + } , { u i + , v i + 2 + , w i + } i = 0 p 3 , { u p 2 + , u p , w p 2 + , w r } , { w p 1 + i + , w r 1 i } i = 0 r p 2 ) .
First, for the unique pair from { v 1 , v 1 + } , it holds that d ( u 2 , v 1 ) = 2 < d ( u 2 , v 1 + ) = 3 if p 4 , so it is distinguished by u 2 .
Next, consider { u i + , v i + 2 + , w i + } . Suppose that d ( u 2 , u i + ) = d ( u 2 , v i + 2 + ) . If i 2 , then d 1 = i 2 , and consequently, d 2 = i + 4 , a contradiction. Hence, 0 i 2 and
d ( u 2 , u i + ) = d ( u 2 , u i + 1 ) = 1 i < d ( u 2 , v i + 2 + ) = d ( u 2 , v i + 3 ) = p 2 + p ( i + 3 ) ,
a contradiction. For the second pair u i + and w i + , since i p 3 , we have
d ( u 2 , u i + ) ( i 2 ) + 3 < i + 2 = d ( u 2 , w i ) = d ( u 2 , w i + ) .
For the last pair v i + 2 + and w i + , we assume that d ( u 2 , v i + 2 + ) = d ( u 2 , w i + ) . We distinguish three subcases:
-
If 0 i p 5 , then d 1 = d ( u 2 , v i + 2 ) = i + 4 > i + 2 = d ( u 2 , w i ) = d 2 ;
-
If i = p 4 , then d 1 = d ( u 2 , v i + 3 ) = p 1 > p 2 = d ( u 2 , w i ) = d 2 ;
-
If i = p 3 , then d 1 = d ( u 2 , v i + 3 ) = p 2 < p 1 = d ( u 2 , w i ) = d 2 .
Now, we consider the set { u p 2 + , u p , w p 2 + , w r } . We have
d ( u 2 , u p 2 + ) = p 4 < d ( u 2 , u p ) = p 3 < d ( u 2 , w r ) = p 2 < d ( u 2 , w p 2 + ) p 1 ,
where the last inequality is an equality only if r = p .
Finally, for { w p 1 + i + , w r 1 i } , suppose that d ( u 2 , w p 1 + i + ) = d ( u 2 , w r 1 i ) . Then, d 2 = d ( u 2 , w r 1 i ) , and so, d 1 = d ( u 2 , w p 1 + i ) . Thus, 2 + p 1 + i = p 2 + r ( r 1 i ) and 1 = 1 , a contradiction.
(v) Observe that
P v 1 e = ( { v 1 , v 1 + } , { u i + , v i + 2 + , w i + } i = 0 p 3 , { u p 2 + , u p , w p 2 + , w r } , { w p 1 + i + , w r 1 i } i = 0 r p 2 ) .
First, consider the set { v 1 , v 1 + } . Since r 4 , we have d ( w 1 , v 1 ) = 1 < 2 = d ( w 1 , v 1 + ) .
Next, consider the set { u i + , v i + 2 + , w i + } . We have
d ( w 1 , v i + 2 + ) = i + 3 > d ( w 1 , u i + ) = i + 1 > d ( w 1 , w i + ) i ,
where the last inequality is an equality only if i = 0 and the first equality is a consequence of r p + 3 .
Now, consider the set { u p 2 + , u p , w p 2 + , w r } . We have
d ( w 1 , w p 2 + ) = p 3 < d ( w 1 , u p 2 + ) = p 1 < d ( w 1 , u p ) = p < d ( w 1 , w r ) = p + 1 ,
where the last inequality holds since r p + 3 .
Finally, consider the set { w p 1 + i + , w r 1 i } . If d ( w 1 , w p 1 + i + ) = d ( w 1 , w r 1 i ) , then d 1 = d ( w 1 , w p 1 + i ) , and so, d 2 = d ( w 1 , w r 1 i ) . Thus, p 1 + i 1 = 1 + p + r ( r 1 i ) and 2 = 2 , a contradiction. This concludes the proof. □
The following statement is a consequence of Lemma 6.
Theorem 3.
Let G be a Θ-graph such that G Θ 1 , 2 , 2 and Θ p , p , q for 2 p 3 and p q p + 2 . Then, edim ( G ) = 2 .
Proof. 
First suppose that p < q . If p + r is even, then r 3 , so Lemma 6. (i) covers this case. On the other hand, if p + r is odd, then r p + 1 , so Lemma 6. (ii) and Lemma 6. (iii) cover all cases except Θ 1 , 2 , 2 .
Now, suppose that p = q . Then, Lemma 6. (v) covers all cases, except Θ p , p , p , Θ p , p , p + 1 , and Θ p , p , p + 2 . These remaining cases are covered by Lemma 6. (iv) when p 4 . Hence, uncovered cases are Θ 2 , 2 , 2 , Θ 2 , 2 , 3 , Θ 2 , 2 , 4 , Θ 3 , 3 , 3 , Θ 3 , 3 , 4 , and Θ 3 , 3 , 5 . □
Supporting our motivation, Theorem 3 yields the following corollary.
Corollary 4.
Let G be a Θ-graph such that G Θ 1 , 2 , 2 and Θ p , p , q for 2 p 3 and p q p + 2 . Then, edim ( G ) < 2 c ( G ) 1 .

4. Further Work

In this paper, we investigated Conjecture 3 (respectively Conjecture 4), which states that the vertex (respectively the edge) metric dimension of a graph G C n with δ ( G ) 2 is bounded above by 2 c ( G ) 1 . It was established in [26] that the conjectures hold for cacti without leaves and that, for other leafless graphs, the problem reduces to 2-connected graphs, i.e., if the conjectures hold for 2-connected graphs distinct from a cycle, then they hold in general. In this paper, we considered Θ -graphs, since they are the most simple 2-connected graphs distinct from cycles. We established that Conjectures 3 and 4 hold on this class of graphs, and we characterized all Θ -graphs for which the upper bound is attained.
Besides Θ -graphs attaining the upper bound 2 c ( G ) 1 , it was previously established that the same upper bound is also attained by metric dimensions of some leafless cacti. To be more precise, a daisy graph is any graph consisting of at least two cycles that all share the same vertex. A cycle in a daisy graph is also called a petal. Now, it was established that dim ( G ) attains the bound 2 c ( G ) 1 if G is a daisy graph without odd petals and that edim ( G ) reaches the same bound for any daisy graph G. We expect that these graphs are the only graphs with δ ( G ) 2 whose metric dimensions reach the bound. Therefore, we conclude the paper by stating the following two conjectures.
Conjecture 5.
Let G be a connected graph with δ ( G ) 2 . Then, dim ( G ) = 2 c ( G ) 1 if and only if G is a daisy graph without odd petals, G = Θ p , p , p or G = Θ p , p , p + 2 .
Conjecture 6.
Let G be a connected graph with δ ( G ) 2 . Then, edim ( G ) = 2 c ( G ) 1 if and only if G is a daisy graph, G = Θ 1 , 2 , 2 or G = Θ p , p , q with 2 p 3 and p q p + 2 .
Similar as with Conjectures 3 and 4, we show in the next proposition that the above two conjectures reduce to the same problem on 2-connected graphs. In order to do so, we use a result from [26], which states that c ( G ) = c ( G 1 ) + + c ( G q ) where G 1 , , G q is the complete list of blocks of G.
Proposition 2.
If Conjecture 5 (respectively Conjecture 6) holds for 2-connected graphs, then it holds in general.
Proof. 
We say that G is vertex extremal, if G = Θ p , p , p or G = Θ p , p , p + 2 . We say G is edge extremal if G = Θ 1 , 2 , 2 or G = Θ p , p , q for 2 p 3 and p q p + 2 . Now, let G be a graph with δ ( G ) 2 , which is not 2-connected. According to Lemma 1, the equality dim ( G ) = 2 c ( G ) 1 (respectively edim ( G ) = 2 c ( G ) 1 ) may hold only when every non-trivial block of G distinct from a cycle is vertex extremal (respectively edge extremal) and all blocks of G share a vertex.
We shall now construct a vertex (respectively an edge) metric generator in such a graph whose size is smaller than 2 c ( G ) 1 , which is sufficient to prove the claim. Let v be a vertex of G shared by all blocks in G . Let us assume G 1 , , G q are all non-trivial blocks in G denoted so that G i is a cycle whenever i > p . According to Lemma 3 (respectively Lemma 4), for 1 i p , there is a vertex (respectively an edge) metric generator S i in G i such that v S i , and for such i, let us denote S i = S i \ { v } . For i > p , let S i consist of a single vertex, which is a neighbor of v in G i . Now, let S = S 1 S q . Observe that the set S distinguishes in G all pairs of vertices (respectively edges) that belong to the same block of G; this follows from the fact that a pair of vertices (respectively edges) that is distinguished by v in G i is in G distinguished by every vertex s S \ V ( G i ) .
By the above, a pair of vertices (respectively edges) x and x is not distinguished by S in G only if x belongs to G i and x belongs to G j , i j . In such a case, we say G i and G j are critically incident. Therefore, let G i and G j be critically incident with x V ( G i ) , x V ( G j ) such that x and x are not distinguished by S. Let further s S i and s S j . Then, d ( s , x ) = d ( s , x ) and d ( s , x ) = d ( s , x ) . Denote a = d ( s , v ) , b = d ( v , x ) , c = d ( s , v ) and d = d ( v , x ) . Then,
( a + d ) + ( c + b ) = d ( s , x ) + d ( s , x ) = d ( s , x ) + d ( s , x ) d ( s , v ) + d ( v , x ) + d ( s , v ) + d ( v , x ) = a + b + c + d ,
and so, a shortest path from x (respectively x ) to every vertex from S i (respectively S j ) leads through v. Hence, b = d and a = c .
If b > 1 , then let x 1 (respectively x 1 ) be a neighbor of x (respectively x ) on a shortest path from v to x (respectively x ). Then, for every s S i S j , we have d ( s , x 1 ) = d ( s , x 1 ) = a + b 1 , so x 1 and x 1 are not distinguished by S as well.
Finally, let x 2 and x 2 be another pair of vertices that is not distinguished by S, x 2 V ( G i ) , and x 2 V ( G j ) , and let d ( v , x 2 ) = d ( v , x ) . Then, x and x 2 are not distinguished by S i , which means that x 2 = x and, analogously, x 2 = x .
Thus, vertices y V ( G i ) , for which there exists y V ( G j ) such that y , y is a pair not distinguished by S, form a path starting at a neighbor of v. Denote this neighbor by z. If there is k j such that G i and G k are critically incident as well, then, again, vertices y V ( G i ) , for which there exists y V ( G k ) such that y , y is a pair not distinguished by S, form a path starting at z. Therefore, it is sufficient to add z to S i , and all pairs of vertices from G i and G k (as well as from G i and G j ) will be distinguished.
We conclude that it is sufficient to introduce to S at most q 1 vertices, and all pairs x and x from distinct blocks will also be distinguished by S . Consequently, since S i = dim ( G i ) 1 , we have
dim ( G ) i = 1 q ( dim ( G i ) 1 ) + q 1 = i = 1 q dim ( G i ) 1 = i = 1 p ( 2 c ( G i ) 1 ) + i = p + 1 q 2 c ( G i ) 1 = 2 c ( G ) p 1
which is obviously smaller than 2 c ( G ) 1 for p 1 . If p = 0 , then G is a cactus graph, and for cacti, it was already established that the bound is attained only for daisy graphs without odd petals. The proof for edim ( G ) is analogous. □

Author Contributions

Conceptualization, R.Š.; supervision, R.Š.; visualization, J.S.; writing—original draft, J.S. and M.K.; writing—review and editing, R.Š. and M.K. All authors have read and agreed to the published version of the manuscript.

Funding

The first author acknowledges partial support by Slovak research grants VEGA 1/0567/22, VEGA 1/0206/20, APVV-19-0308, APVV–17–0428. The second author acknowledges the support of Project KK.01.1.1.02.0027, a project co-financed by the Croatian Government and the European Union through the European Regional Development Fund—the Competitiveness and Cohesion Operational Programme. All authors acknowledge partial support of the Slovenian research agency ARRS program P1-0383 and ARRS project J1-1692.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Harary, F.; Melter, R.A. On the metric dimension of a graph. Ars Combin. 1976, 2, 191–195. [Google Scholar]
  2. Khuller, S.; Raghavachari, B.; Rosenfeld, A. Landmarks in graphs. Discrete Appl. Math. 1996, 70, 217–229. [Google Scholar] [CrossRef] [Green Version]
  3. Buczkowski, P.S.; Chartrand, G.; Poisson, C.; Zhang, P. On k-dimensional graphs and their bases. Period. Math. Hungar. 2003, 46, 9–15. [Google Scholar] [CrossRef]
  4. Chartrand, G.; Eroh, L.; Johnson, M.A.; Oellermann, O.R. Resolvability in graphs and the metric dimension of a graph. Discrete Appl. Math. 2000, 105, 99–113. [Google Scholar] [CrossRef] [Green Version]
  5. Dudenko, M.; Oliynyk, B. On unicyclic graphs of metric dimension 2. Algebra Discrete Math. 2017, 23, 216–222. [Google Scholar]
  6. Dudenko, M.; Oliynyk, B. On unicyclic graphs of metric dimension 2 with vertices of degree 4. Algebra Discrete Math. 2018, 26, 256–269. [Google Scholar]
  7. Fehr, M.; Gosselin, S.; Oellermann, O.R. The metric dimension of Cayley digraphs. Discrete Math. 2006, 306, 31–41. [Google Scholar] [CrossRef] [Green Version]
  8. Klein, D.J.; Yi, E. A comparison on metric dimension of graphs, line graphs, and line graphs of the subdivision graphs. Eur. J. Pure Appl. Math. 2012, 5, 302–316. [Google Scholar]
  9. Melter, R.A.; Tomescu, I. Metric bases in digital geometry. Comput. Vis. Graph. Image Process. 1984, 25, 113–121. [Google Scholar] [CrossRef]
  10. Poisson, C.; Zhang, P. The metric dimension of unicyclic graphs. J. Combin. Math. Combin. Comput. 2002, 40, 17–32. [Google Scholar]
  11. Kelenc, A.; Tratnik, N.; Yero, I.G. Uniquely identifying the edges of a graph: The edge metric dimension. Discrete Appl. Math. 2018, 251, 204–220. [Google Scholar] [CrossRef] [Green Version]
  12. Geneson, J. Metric dimension and pattern avoidance in graphs. Discrete Appl. Math. 2020, 284, 1–7. [Google Scholar] [CrossRef] [Green Version]
  13. Huang, Y.; Hou, B.; Liu, W.; Wu, L.; Rainwater, S.; Gao, S. On approximation algorithm for the edge metric dimension problem. Theoret. Comput. Sci. 2021, 853, 2–6. [Google Scholar] [CrossRef]
  14. Klavžar, S.; Tavakoli, M. Edge metric dimensions via hierarchical product and integer linear programming. Optim. Lett. 2021, 15, 1993–2003. [Google Scholar] [CrossRef]
  15. Knor, M.; Majstorović, S.; Masa Toshi, A.T.; Škrekovski, R.; Yero, I.G. Graphs with the edge metric dimension smaller than the metric dimension. Appl. Math. Comput. 2021, 401, 126076. [Google Scholar] [CrossRef]
  16. Peterin, I.; Yero, I.G. Edge metric dimension of some graph operations. Bull. Malays. Math. Sci. Soc. 2020, 43, 2465–2477. [Google Scholar] [CrossRef] [Green Version]
  17. Sedlar, J.; Škrekovski, R. Vertex and edge metric dimensions of unicyclic graphs. Discrete Appl. Math. 2022, 314, 81–92. [Google Scholar] [CrossRef]
  18. Zhang, Y.; Gao, S. On the edge metric dimension of convex polytopes and its related graphs. J. Comb. Optim. 2020, 39, 334–350. [Google Scholar] [CrossRef]
  19. Zhu, E.; Taranenko, A.; Shao, Z.; Xu, J. On graphs with the maximum edge metric dimension. Discrete Appl. Math. 2019, 257, 317–324. [Google Scholar] [CrossRef]
  20. Zubrilina, N. On the edge dimension of a graph. Discrete Math. 2018, 341, 2083–2088. [Google Scholar] [CrossRef]
  21. Kuziak, D.; Yero, I.G. Metric dimension related parameters in graphs: A survey on combinatorial, computational and applied results. arXiv 2021, arXiv:2107.04877. [Google Scholar]
  22. Sedlar, J.; Škrekovski, R. Bounds on metric dimensions of graphs with edge disjoint cycles. Appl. Math. Comput. 2021, 396, 125908. [Google Scholar] [CrossRef]
  23. Sedlar, J.; Škrekovski, R. Extremal mixed metric dimension with respect to the cyclomatic number. Appl. Math. Comput. 2021, 404, 126238. [Google Scholar] [CrossRef]
  24. Sedlar, J.; Škrekovski, R. Mixed metric dimension of graphs with edge disjoint cycles. Discrete Appl. Math. 2021, 300, 1–8. [Google Scholar] [CrossRef]
  25. Sedlar, J.; Škrekovski, R. Vertex and edge metric dimensions of cacti. Discrete Appl. Math. 2022, 320, 126–139. [Google Scholar] [CrossRef]
  26. Sedlar, J.; Škrekovski, R. Metric dimensions vs. cyclomatic number of graphs with minimum degree at least two. Appl. Math. Comput. 2022, 427, 127147. [Google Scholar] [CrossRef]
  27. Kelenc, A.; Kuziak, D.; Taranenko, A.; Yero, I.G. Mixed metric dimension of graphs. Appl. Math. Comput. 2017, 314, 429–438. [Google Scholar]
Figure 1. A set S = { s 1 , s 2 } in the proof of Lemma 2: (a) case when s 1 V ( P 1 ) and s 2 V ( P 2 ) with p = 6 , d 1 = 1 , d 2 = 4 , a = 5 , b = 7 , c = 1 , and d = 3 , in which u d and w c are not distinguished by S ; (b) case when s 1 V ( P 1 ) and s 2 V ( P 3 ) with p = 6 , d 1 = 3 , d 2 = 2 , a = 5 , b = 9 , c = 2 , and d = 8 , where u d and v c are not distinguished by S .
Figure 1. A set S = { s 1 , s 2 } in the proof of Lemma 2: (a) case when s 1 V ( P 1 ) and s 2 V ( P 2 ) with p = 6 , d 1 = 1 , d 2 = 4 , a = 5 , b = 7 , c = 1 , and d = 3 , in which u d and w c are not distinguished by S ; (b) case when s 1 V ( P 1 ) and s 2 V ( P 3 ) with p = 6 , d 1 = 3 , d 2 = 2 , a = 5 , b = 9 , c = 2 , and d = 8 , where u d and v c are not distinguished by S .
Mathematics 10 02411 g001
Figure 2. Vertex metric generators from Lemma 5.
Figure 2. Vertex metric generators from Lemma 5.
Mathematics 10 02411 g002
Figure 3. Edge metric generators from Lemma 6.
Figure 3. Edge metric generators from Lemma 6.
Mathematics 10 02411 g003
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Knor, M.; Sedlar, J.; Škrekovski, R. Remarks on the Vertex and the Edge Metric Dimension of 2-Connected Graphs. Mathematics 2022, 10, 2411. https://doi.org/10.3390/math10142411

AMA Style

Knor M, Sedlar J, Škrekovski R. Remarks on the Vertex and the Edge Metric Dimension of 2-Connected Graphs. Mathematics. 2022; 10(14):2411. https://doi.org/10.3390/math10142411

Chicago/Turabian Style

Knor, Martin, Jelena Sedlar, and Riste Škrekovski. 2022. "Remarks on the Vertex and the Edge Metric Dimension of 2-Connected Graphs" Mathematics 10, no. 14: 2411. https://doi.org/10.3390/math10142411

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop