Next Article in Journal
Coordinating Supply-Chain Management under Stochastic Fuzzy Environment and Lead-Time Reduction
Previous Article in Journal
A Mizoguchi–Takahashi Type Fixed Point Theorem in Complete Extended b-Metric Spaces
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Characterization of n-Vertex Graphs of Metric Dimension n − 3 by Metric Matrix

1
School of Mathematics, China University of Mining and Technology, Xuzhou 221116, China
2
College of Information and Control Engineering, Weifang University, Weifang 261061, China
*
Authors to whom correspondence should be addressed.
Mathematics 2019, 7(5), 479; https://doi.org/10.3390/math7050479
Submission received: 15 April 2019 / Revised: 15 May 2019 / Accepted: 17 May 2019 / Published: 27 May 2019

Abstract

:
Let G = ( V ( G ) , E ( G ) ) be a connected graph. An ordered set W V ( G ) is a resolving set for G if every vertex of G is uniquely determined by its vector of distances to the vertices in W. The metric dimension of G is the minimum cardinality of a resolving set. In this paper, we characterize the graphs of metric dimension n 3 by constructing a special distance matrix, called metric matrix. The metric matrix makes it so a class of graph and its twin graph are bijective and the class of graph is obtained from its twin graph, so it provides a basis for the extension of graphs with respect to metric dimension. Further, the metric matrix gives a new idea of the characterization of extremal graphs based on metric dimension.
MSC:
05C12; 05C35; 05C75

1. Introduction

Let G = ( V ( G ) , V ( E ) ) be a simple connected graph in this paper. The distance between two vertices u , v V ( G ) , denoted by d ( u , v ) , is the length of a shortest path between u and v in G. The diameter of G is denoted by d ( G ) and d ( G ) = m a x { d ( u , v ) | u , v V ( G ) } . Let W = { w 1 , w 2 , , w m } V ( G ) be an ordered set of G, the representation of v V ( G ) with respect to W is the vector r ( v | W ) = ( d ( v , w 1 ) , d ( v , w 2 ) , , d ( v , w m ) ) . We say that W is a resolving set of G if r ( v | W ) r ( u | W ) for every pair of distinct vertices u , v V ( G ) . A resolving set of minimum cardinality is called a metric basis of G. The metric dimension of a graph G, denoted by dim ( G ) , is the cardinality of a metric basis. For S , W 0 V ( G ) , we say that the set W 0 resolves S if r ( v | W 0 ) r ( u | W 0 ) for every pair of distinct vertices u , v S . Moreover, for distinct vertices u , v , w V ( G ) , if d ( w , u ) d ( w , v ) , then we say that w resolves u and v.
The concepts of resolving set of a graph was first introduced by Slater [1] in 1975 and independently by Harary and Melter [2] in 1976. The metric dimension of a graph has been widely studied and a large number of related concepts have been extended (see [3,4,5,6,7,8,9,10,11]). As a parameter of a graph, it has been applied to lots of practical problems, such as robot navigation [12], connected joins in graphs and combinatorial optimization [13], and pharmaceutical chemistry [14].
There have been lots of results about the metric dimension of graphs. Some researchers focus on characterizations of metric dimension of graph families. For instance, the metric dimension of trees, cycles and wheels was considered in [14,15], respectively. Moreover, the metric dimension of some constructions of graphs was given. For example, the metric dimension of cartesian products of graphs and corona product of graphs was obtained in [16,17], respectively, the effect of vertex or edge deletion on the metric dimension of graphs was considered in [18] and the metric dimensions of symmetric graphs obtained by rooted product were given in [19].
In addition, some graphs with a fixed value of metric dimension have been characterized. Let G be a graph on n-vertex. In [14], the following conclusions were given: ( 1 ) G has metric dimension 1 if and only if G = P n , where P n denotes a path on n vertices; ( 2 ) G has metric dimension n 1 if and only if G = K n , where K n denotes a complete graph on n vertices; and ( 3 ) all graphs G of metric dimension n 2 were characterized (see Lemma 8). In [20,21], all the graphs of metric dimension n 3 and n d are characterized, respectively, where d is the diameter of G. Some other results on metric dimension of a graph are considered in [22,23,24,25].
It is interesting to extend a low-order graph to a high-order graph based on the given rulers. In this paper, we give a novel and effective method on the extension of graphs with respect to metric dimension and characterize the graphs with metric dimension n 3 via the method. Hernando et al. [21] gave an idea of using the twin graph (Definition 1) to characterize the graphs with dimension n r , that is, to determine all the twin graphs of these graphs and extend them to corresponding graphs. We define the metric matrix of a graph (Definition 2) to determine and extend the twin graphs, which is different from that used by Jannesari and Omoomi [20] and Hernando et al. [21]. Since the metric matrix makes that a class of graph and its twin graph are bijective, the method makes the proof concise and readable. In addition, it has certain applicability to some other problems of metric dimension. For instance, it can be used to consider the graphs with dimension n 4 and even n r for r 5 . More importantly, it can be used as an effective basis for the extension of graphs with respect to metric dimension.
The remainder of this paper is organized as follows. In Section 2, we give some preliminaries, including definitions, symbols and results used in this paper. In Section 3, we characterize all extremal graphs of dim ( G ) = n 3 and diameter 2 by constructing a special distance matrix and discussing the structure of graphs.

2. Preliminaries

Let n ( G ) and G [ S ] denote the order and the subgraph induced by a subset S V ( G ) of a graph G, respectively. We say that S is an independent set of G if every pair of vertices in S are nonadjacent in G, and S is a clique of G if every pair of vertices in S are adjacent in G. The neighborhood of u V ( G ) is denoted by N ( u ) and N ( u ) = { v | u v E ( G ) } . Let N [ u ] = N ( u ) { u } . We use deg ( u ) , δ ( G ) to denote the degree of v and the minimum degree of G, respectively, where deg ( u ) = | N ( u ) | . A pair of vertices u , v V ( G ) are twins in G if N ( u ) = N ( v ) ( u v E ( G ) ) or N [ u ] = N [ v ] ( u v E ( G ) ) . We say that a subset V i of vertices is a twin set of G if its vertices are pairwise twins in G, and a maximal twin set is a twin class. Clearly, if V i is a twin set of a graph G, then it is an independent set or a clique of G. The circumference of a graph G, denoted by c ( G ) , is the length of a longest circle of G.
Definition 1.
The twin graph of a graph G, denoted by G T , is the subgraph induced by { v 1 , v 2 , , v k } , that is, G T = G [ { v 1 , v 2 , , v k } ] , where v i V i for 1 i k and V 1 , V 2 , , V k are the all distinct twin classes of G.
Definition 2.
For a graph G, let V ( G T ) = { v 1 , v 2 , , v k } and let V i be the twin class of G with v i V i for 1 i k , the metric matrix of G is denoted by D = [ d i j ] k × k and
d i j = d ( v i , v j ) , i j , d ( v i , v i ) , i = j a n d | V i | 2 , 0 , i = j a n d | V i | = 1 ,
where v i V i and v i v i .
Let d i denote d i i in the following sections. Since V i is an independent set or a clique of G, we have d i = 0 o r 1 o r 2 . The metric matrix determines different classes of graphs with the same twin graph.
The graph G 1 + G 2 is obtained from G 1 and G 2 by adding the edges from every vertex of G 1 to every vertex of G 2 , which is represented as in Figure 1 in this paper. The union G 1 G 2 of G 1 and G 2 is the graph whose vertex set and edge set are V ( G 1 ) V ( G 2 ) and E ( G 1 ) E ( G 2 ) , respectively. The graph G v is obtained from G by deleting the vertex v. The graph G e is obtained from G by deleting the edge e. Let K s ¯ be the complement of K s and let K 1 , m denote a star with m + 1 vertices.
Unless explicitly noted during the rest of this paper, let V i be the twin classes of G with v i V i , and if | V i | 2 , then assume that v i V i and v i v i .
Lemma 1 
([20]). For a graph G, we have n ( G T ) dim ( G T ) n ( G ) dim ( G ) .
Lemma 2.
For a graph G, if v i and v j are twins in G T , then at least one of V i and V j have cardinality at least 2. Moreover, if | V i | = s 2 , then G [ V i ] = K s ¯ when d ( v i , v j ) = 1 and G [ V i ] = K s when d ( v i , v j ) = 2 .
Proof. 
Since v i and v j are twins in G T , we have d ( u , v i ) = d ( u , v j ) for every u V ( G ) \ ( V i V j ) . Moreover, by the definition of G T , we obtain that v i and v j are not twins in G, so there is x { v i , v j } and x V i or x V j such that d ( x , v i ) d ( x , v j ) . Thus, at least one of V i and V j have cardinality at least 2. Assume that x V i , that is, | V i | = s 2 . If d ( v i , v j ) = 1 , then d ( x , v j ) = 1 , so d ( x , v i ) = 2 , that is, G [ V i ] = K s ¯ . Otherwise, d ( v i , v j ) = 2 , then d ( x , v i ) = 1 , that is, G [ V i ] = K s . □
Corollary 1.
For a graph G, if S = { v i 1 , v i 2 , , v i t } is a twin set in G T , then we have that if G [ S ] = K t , then all but one of the sets V i 1 , V i 2 ,…, V i t have cardinality at least 2 and induce an empty graph, and if G [ S ] = K t ¯ , then all but one of the sets V i 1 , V i 2 ,…, V i t have cardinality at least 2 and induce an complete graph.
Lemma 3 
([21]). Let W be a metric basis of G and let S V be a nonempty subset. If S is a twin set of G, then at most one of the vertices in S is not in W and the set ( W \ S ) { s } resolves the set V ( G ) \ S for each s S .
Let G T and D be the twin graph and the metric matrix of G, respectively. Let S 1 = { v i | v i V ( G T ) and d i > 0 } , S 2 = { v i V ( G T ) | d i = 0 } , and U be an arbitrary subset of S 2 . The matrix D U is obtained from D by deleting the corresponding rows of all vertices in U and the corresponding columns of all vertices in S 2 \ U . We can get that r ( v | S 1 U ) = D U ( v ) for each v V ( G T ) \ U , where D U ( v ) is the row vectors corresponding to v in D U . Moreover, each subset of S 2 corresponds to a matrix D U . Let D = { D U : U S 2 } be the set constituting of all matrix D U . We have the following result.
Lemma 4.
For a graph G, dim ( G ) = n ( G ) r if and only if for each U S 2 the matrix D U has at most r different row vectors, and there exists a subset U 0 S 2 such that D U 0 has exactly r different row vectors.
Proof. 
Suppose that W and V i are a metric basis and a twin class of G, respectively. By Lemma 3, at most one of the vertices in V i is not in W. Let W 0 be a set obtained from W by replacing v i with v for each vertex v W , where v V i . Then W 0 is a metric basis of G, and we get that V ( G ) \ W 0 V ( G T ) and S 1 W 0 . Moreover, we have that ( W 0 S 2 ) S 1 resolves V ( G ) \ W 0 by Lemma 3.
Necessity. Since dim ( G ) = n ( G ) r , there are exactly r vertices in V ( G T ) not in W 0 . Thus the set S 1 U resolves at most r vertices in V ( G T ) \ U for each subset U, which implies that each D U D has at most r different row vectors. Let U 0 = W 0 S 2 , then S 1 U 0 resolves exactly r vertices in V ( G T ) \ U 0 . Thus, D U 0 has exactly r different row vectors.
Sufficiency. Since each D U D has at most r different row vectors, S 1 U resolves at most r vertices in V ( G T ) \ U for each subset U S 2 , then S 1 ( W 0 S 2 ) resolves at most r vertices in V ( G T ) \ ( W 0 S 2 ) . Thus, dim ( G ) n r . In addition, since there exists D U 0 D with exactly r different row vectors, S 1 ( W 0 S 2 ) resolves at least r vertices in V ( G T ) \ ( W 0 S 2 ) , so dim ( G ) n r . Thus, dim ( G ) = n r . □
Corollary 2.
For a graph G, we have n ( G ) dim ( G ) n ( G T ) .
Let D i 1 i 2 i k be the matrix consisting of the i 1 , i 2 ,⋯, i k columns of the metric matrix D of G. Let p i 1 i 2 i k be the number of different row vectors without zero element in D i 1 i 2 i k .
Corollary 3.
If p i 1 i 2 i k = r , then dim ( G ) n ( G ) r .
Lemma 5.
Let G be a graph of dim ( G ) = n ( G ) r . If the set T is a twin class of G T with | T | = t 2 , then r = t if n ( G T ) = t , and r t + 1 if n ( G T ) > t .
Proof. 
Suppose that T = { v 1 , v 2 , , v t } . Then G [ T ] K t or K t ¯ . By Corollary 1, assume that | V i | 2 for 1 i t 1 , then we have that d ( v i , v i ) = 2 , d ( v j , v i ) = 1 when G [ T ] K t , and d ( v i , v i ) = 1 , d ( v j , v i ) = 2 when G [ T ] K t ¯ for 1 i < j t . Let W 0 = { v 1 , v 2 , , v t 1 } , then W 0 resolves the set { v 1 , v 2 , , v t } . Thus, we have r t . Since r = n ( G ) dim ( G ) n ( G T ) by Corollary 2, if n ( G T ) = t , then r = t . If n ( G T ) > t , then there exists v t + 1 V ( G T ) \ T . Since v t + 1 T , there is x V ( G T ) such that d ( v t + 1 , x ) d ( v i , x ) for all i { 1 , 2 , , t } . If x T , then W 0 resolves the set { v 1 , v 2 , , v t + 1 } . Otherwise, W 0 { x } resolves the set { v 1 , v 2 , , v t + 1 } . Therefore, r t + 1 . □
Corollary 4.
For a graph G, if G T = K 1 , m or G T = K m , then dim ( G ) = n ( G ) n ( G T ) .
Lemma 6 
([14]). Let G be a graph of order n ( G ) > 2 and diameter d, then dim ( G ) n ( G ) d .
Lemma 7 
([14]). Let G be graph of order n ( G ) > 2 . Then dim ( G ) = n ( G ) 1 if and only if G = K n .
Lemma 8 
([14]). Let G be graph of order n ( G ) 4 . Then dim ( G ) = n ( G ) 2 if and only if G = K s , t ( s , t 1 ) , G = K s + K t ¯ ( s 1 , t 2 ) , or G = K s + ( K 1 K t ) ( s , t 1 ) .
Lemma 9.
Let G be a graph with dim ( G ) = n ( G ) 3 and a metric basis W. Then there exists a set W 0 W and | W 0 | 2 such that it resolves V ( G ) \ W .
Proof. 
Suppose that V ( G ) \ W = { v 1 , v 2 , v 3 } . Then there is a vertex w 1 W such that d ( w 1 , v 1 ) d ( w 1 , v 2 ) . If d ( w 1 , v i ) d ( w 1 , v 3 ) for i { 1 , 2 } , then w 1 resolves { v 1 , v 2 , v 3 } . Let W 0 = { w 1 } , then we are done. Otherwise, assume that d ( w 1 , v 1 ) = d ( w 1 , v 3 ) , then there is w 2 W such that d ( w 2 , v 1 ) d ( w 2 , v 3 ) . Thus, { w 1 , w 2 } resolves { v 1 , v 2 , v 3 } . Let W 0 = { w 1 , w 2 } , then we are done. □

3. Extremal Graphs G of dim ( G ) = n ( G ) 3

By Lemma 6, if dim ( G ) = n ( G ) 3 , then d ( G ) 3 . Moreover, if d ( G ) = 1 , then dim ( G ) = n ( G ) 1 . Thus, dim ( G ) = n ( G ) 3 only if d ( G ) = 2 o r 3 . Since all the graphs of dim ( G ) = n ( G ) d ( G ) were characterized in [21], we only need to consider the graphs of d ( G ) = 2 .
In the following, unless noted otherwise, let D, W be the metric matrix and a resolving set of G, respectively. Let e i j = v i v j and B m = K m o r K m ¯ .
Lemma 10.
Let G be a graph of d ( G ) = 2 and n ( G T ) = 3 . Then dim ( G ) = n ( G ) 3 if and only if G = ( K s B r ) + K t ( s , r 2 , t 1 ) or G = ( K s B r ) + K t ¯ ( s , t 2 , r 1 ) or G = ( K s ¯ + K t ¯ ) + B r ( s , t 2 , r 1 ) .
Proof. 
Suppose that V ( G T ) = { v 1 , v 2 , v 3 } , there are two cases to be considered as follows.
Case 1. G T P 3 = v 1 v 2 v 3 . Since v 1 and v 3 are twins in G T and e 13 E ( G T ) , by Lemma 2, we may assume that d 1 = 1 , then
D = 1 1 2 1 d 2 1 2 1 d 3 .
Since there are at most three different row vectors in D, by Lemma 4, dim ( G ) = n ( G ) 3 if and only if there are exactly three different row vectors in some D U , which implies that ( 1 ) d 2 = 0 o r 1 , d 3 = 1 o r 2 , or ( 2 ) d 2 = 2 , d 3 = 0 o r 1 o r 2 . Therefore, G = ( K s B r ) + K t ( s , r 2 , t 1 ) or ( K s B r ) + K t ¯ ( s , t 2 , r 1 ) .
Case 2. G T C 3 . Since any two vertices in { v 1 , v 2 , v 3 } are twins in G T , by Corollary 1, we may assume that d 1 = d 2 = 2 , then
D = 2 1 1 1 2 1 1 1 d 3 .
Since there are at most three different row vectors in D and p 12 = 3 , by Lemma 4, dim ( G ) = n ( G ) 3 if and only if d 3 = 0 o r 1 o r 2 , which implies that G = ( K s ¯ + K t ¯ ) + B r ( s , t 2 , r 1 ) . □
Lemma 11.
Let G be a graph of d ( G ) = 2 and n ( G T ) = 4 . Then dim ( G ) = n ( G ) 3 if and only if G is one of the graphs in Figure 2, where a small circle denotes K 1 (similarly in the following figures).
Proof. 
Let V ( G T ) = { v 1 , v 2 , v 3 , v 4 } . There are the following cases to be considered depending on the circumference of G T .
Case 1. G T is acyclic. In such a case, G T K 1 , 3 . There is no graph G with dim ( G ) = n ( G ) 3 by Corollary 4.
Case 2. c ( G T ) = 3 . Let C 3 = v 1 v 2 v 3 v 1 , we may assume that G T C 3 e 14 . Since v 2 and v 3 are twins in G T and e 23 E ( G T ) , by Lemma 2, we may assume that d 2 = 2 , then
D = d 1 1 1 1 1 2 1 2 1 1 d 3 2 1 2 2 d 4 .
By Corollary 3, we obtain that d 3 2 and d 4 1 ; if not, p 23 = 4 or p 24 = 4 , which contradicts dim ( G ) = n ( G ) 3 . If d 3 = 1 , then d 1 2 and d 4 = 0 ; otherwise, p 123 = 4 or p 234 = 4 . By Lemma 4, dim ( G ) = n ( G ) 3 when d 3 = 1 , d 1 = 0 o r 1 , d 4 = 0 ; or d 3 = 0 , d 1 = 0 o r 1 o r 2 , d 4 = 0 o r 2 . Thus dim ( G ) = n ( G ) 3 if and only if ( 1 ) d 1 = 0 o r 1 , d 2 = 2 , d 3 = 1 , d 4 = 0 , or ( 2 ) d 1 = 0 o r 1 o r 2 , d 2 = 2 , d 3 = 0 , d 4 = 0 o r 2 , which implies that G is the graph g.1 or g.2 in Figure 2.
Case 3. c ( G T ) = 4 . Let C 4 = v 1 v 2 v 3 v 4 v 1 is a longest circle of G T .
Case 3.1. G T C 4 . Since the pairs of vertices v 1 , v 3 and v 2 , v 4 are twins in G T , respectively, we may suppose that d 1 = d 2 = 1 by Lemma 2, then
D = 1 1 2 1 1 1 1 2 2 1 d 3 1 1 2 1 d 4 .
By Corollary 3, we have that d 3 = d 4 = 0 ; if not, P 123 = 4 or P 124 = 4. Since dim ( G ) = n ( G ) 3 when d 3 = d 4 = 0 by Lemma 4, dim ( G ) = n ( G ) 3 if and only if d 1 = d 2 = 1 and d 3 = d 4 = 0 , which implies that G is the graph g.3 in Figure 2.
Case 3.2. G T C 4 e 13 . Since the pairs of vertices v 1 , v 3 and v 2 , v 4 are twins in G T , respectively, we may assume that d 1 = 2 , d 2 = 1 by Lemma 2, then
D = 2 1 1 1 1 1 1 2 1 1 d 3 1 1 2 1 d 4 .
By Corollary 3, d 3 2 and d 4 = 0 ; if not, P 123 = 4 or P 124 = 4 . Since dim ( G ) = n ( G ) 3 when d 3 = 0 o r 1 , d 4 = 0 by Lemma 4, dim ( G ) = n ( G ) 3 if and only of d 1 = 2 , d 2 = 1 , d 3 = 0 o r 1 and d 4 = 0 , which implies that G is the graph g.4 in Figure 2.
Case 3.3. G T K 4 . There is no graph G with dim ( G ) = n ( G ) 3 by Corollary 4. □
Lemma 12.
Let G be a graph of d ( G ) = 2 and n ( G T ) = 5 . Then dim ( G ) = n ( G ) 3 if and only if G is C 5 or one of graphs in Figure 3.
Proof. 
Let V ( G T ) = { v 1 , v 2 , v 3 , v 4 , v 5 } . There are the following cases to be considered depending on the circumference of G T .
Case 1. G T is acyclic. In such a case, G T K 1 , 4 . There is no graph G with dim ( G ) = n ( G ) 3 by Corollary 4.
Case 2. c ( G T ) = 3 . Let C 3 = v 1 v 2 v 3 v 1 be a longest circle of G T , then G T is isomorphic to the graph (a) or (b) in Figure 4. Since the pairs of vertices v 2 , v 3 and v 4 , v 5 are twins in G T , respectively, we may assume that | V 2 |   2 and | V 4 |   2 , then, for graph (a), { v 2 , v 4 } resolves V ( G T ) , and for graph (b), { v 2 , v 4 } resolves { v 1 , v 3 , v 4 , v 5 } , a contradiction.
Case 3. c ( G T ) = 4 . Let C 4 = v 1 v 2 v 3 v 4 v 1 be a longest circle of G T . Then v 5 is nonadjacent to two adjacent vertices of C 4 ; otherwise, c ( G T ) = 5 .
Case 3.1. The vertex v 5 is exactly adjacent to one vertex of C 4 . Then G T is isomorphic to the graph (a) or (b) in Figure 5.
For Figure 5a, since v 2 and v 4 are twins in G T , we may assume that d 2 = 1 , then
D = d 1 1 1 1 1 1 1 1 2 2 1 1 d 3 1 2 1 2 1 d 4 2 1 2 2 2 d 5 .
By Corollary 3, we have that d 1 2 , d 3 2 and d 4 = d 5 = 0 . Otherwise, if d 1 = 2 , then p 123 4 ; if d 3 = 2 , then p 23 = 4 ; and if d 4 0 or d 5 0 , then p 245 4 , which is a contradiction. Since dim ( G ) = n ( G ) 3 when d 1 = 0 o r 1 , d 3 = 0 o r 1 and d 4 = d 5 = 0 by Lemma 4, dim ( G ) = n ( G ) 3 if and only if G is the graph g.1 in Figure 3.
For Figure 5b, since { v 2 , v 3 , v 4 } is a twin set of G T , by Lemma 5, dim ( G ) < n ( G ) 3 . Thus, there is no G with dim ( G ) = n ( G ) 3 .
Case 3.2. The vertex v 5 is exactly adjacent to two vertices of C 4 . Then c ( G ) = 4 if and only if G T is isomorphic to the graph (a) or (b) in Figure 6. Since { v 1 , v 3 , v 5 } is a twin set of G T , dim ( G ) < n ( G ) 3 by Lemma 5.
Case 4. c ( G T ) = 5 . Let C 5 = v 1 v 2 v 3 v 4 v 5 v 1 be a longest circle in G T . Since 5 | E ( G T ) | 10 , we consider the five subcases as follows.
Case 4.1. | E ( G T ) | = 5 . We obtain that G T C 5 , then
D = d 1 1 2 2 1 1 d 2 1 2 2 2 1 d 3 1 2 2 2 1 d 4 1 1 2 2 1 d 5 .
By Corollary 3, d 1 = 0 . Otherwise, if d 1 = 1 , then p 12 4 ; and if d 1 = 2 , then p 13 4 . By the symmetry of G T , d i = 0 ( 2 i 5 ) . Since dim ( C 5 ) = 2 , dim ( G ) = n ( G ) 3 if and only if G C 5 .
Case 4.2. | E ( G T ) | = 6 . We obtain that c ( G T ) = 5 if and only if G T is isomorphic to Figure 7, then
D = d 1 1 2 2 1 1 d 2 1 2 1 2 1 d 3 1 2 2 2 1 d 4 1 1 1 2 1 d 5 .
By Corollary 3, we have that d i 2 ( 1 i 5 ) and d 3 , d 4 1 . Otherwise, if d 1 = 2 or d 3 = 2 , then p 13 4 ; if d 2 = 2 , then p 12 4 ; if d 3 = 1 , then p 23 4 . By the symmetry of G T , we get that d 4 1 o r 2 and d 5 2 . Since dim ( G ) = n ( G ) 3 when d i = 0 o r 1 ( i = 1 , 2 , 5 ) and d 3 = d 4 = 0 by Lemma 4, dim ( G ) = n ( G ) 3 if and only if G is the graph g.2 in Figure 3.
Case 4.3. | E ( G T ) | = 7 . We obtain that c ( G T ) = 5 if and only if G T is isomorphic to the graph (a) or (b) in Figure 8.
For Figure 8a, since the pairs of vertices v 1 , v 2 and v 3 , v 5 are twins in G T , respectively, we may assume that d 1 = 2 and d 3 = 1 , then { v 1 , v 2 , v 3 } resolves { v 1 , v 3 , v 4 , v 5 } , which is a contradiction.
For Figure 8b, since
D = d 1 1 1 1 1 1 d 2 1 2 2 1 1 d 3 1 2 1 2 1 d 4 1 1 2 2 1 d 5 ,
by Corollary 3, d i 2 ( 2 i 5 ) . Otherwise, if d 2 = 2 or d 3 = 2 , then p 25 4 or p 23 4 . By the symmetry of G T , we get that d 4 , d 5 2 .
If d 1 = 0 o r 1 , then d 2 = 0 or 1. Assume d 2 = 1 , then d 4 = d 5 = 0 , if not, p 245 = 4 . In this case, d 3 = 0 o r 1 by Lemma 4. Now we assume that d 2 = 0 . By the symmetry of G T , we may assume that d 5 = 0 ; if not, it is the same as d 2 = 1 . By Lemma 4, we have that d 3 = d 4 = 0 o r 1 .
If d 1 = 2 , then d i = 0 for 2 i 5 . Otherwise, if d 2 = 1 , then p 124 = 4 ; if d 3 = 1 , then p 123 = 4 ; if d 4 = 1 , then p 134 = 4 ; and if d 5 = 1 , then p 145 = 4 .
Thus, we have that dim ( G ) = n ( G ) 3 when ( 1 ) d 2 = 1 , d i = 0 o r 1 ( i = 1 , 3 ) , d 4 = d 5 = 0 , ( 2 ) d i = 0 o r 1 ( i = 1 , 3 , 4 ) , d 2 = d 5 = 0 , or ( 3 ) d 1 = 2 , d i = 0 ( 2 i 5 ) , which implies that dim ( G ) = n ( G ) 3 if and only if G is one of the graphs g.3, g.4 and g.5 in Figure 3.
Case 4.4. | E ( G T ) | = 8 . We obtain that c ( G T ) = 5 if and only if G T is isomorphic to the graph (a) or (b) in Figure 9.
For Figure 9a, since the pairs of vertices v 1 , v 2 and v 3 , v 5 are twins in G T , respectively, we may assume that d 1 = d 3 = 1 , then { v 1 , v 3 , v 4 } resolves { v 1 , v 2 , v 3 , v 5 } , which contradicts dim ( G ) = n ( G ) 3 .
For Figure 9b, the pairs of vertices v 1 , v 2 and v 3 , v 5 are twins in G T , respectively, we may assume that d 1 = d 3 = 2 , then
D = 1 1 1 2 1 1 d 2 1 1 1 1 1 1 1 2 2 1 1 d 4 1 1 1 2 1 d 5 .
By Corollary 3, we obtain that d 4 = d 5 = 0 and d 2 2 . Otherwise, if d 4 0 , then p 134 = 4 , by the symmetry of G T , d 5 = 0 ; and if d 2 = 2 , then p 125 = 4 . By Lemma 4, we get that dim ( G ) = n ( G ) 3 when d 1 = d 3 = 1 , d 2 = 0 o r 1 , d 4 = d 5 = 0 , which implies that G is the graph g.6 in Figure 3.
Case 4.5. | E ( G T ) | 9 . We obtain that G T is isomorphic to K 5 e or K 5 . By Lemma 5 and Corollary 4, there is no graph G with dim ( G ) = n ( G ) 3 . □
Lemma 13.
Let G be a graph with d ( G ) = 2 and dim ( G ) = n ( G ) 3 . If G T = G , then n ( G ) 5 .
Proof. 
Since G T = G , there are no twins in G. Let V ( G ) = { v 1 , v 2 , , v n } . We consider the both cases n ( G ) > 6 and n ( G ) = 6 .
Case 1. n ( G ) > 6 . By Lemma 9, we may assume that W 0 = { v 1 , v 2 } resolves { v 3 , v 4 , v 5 } . Since dim ( G ) = n ( G ) 3 , r ( v 6 | W 0 ) , r ( v 7 | W 0 ) { r ( v 3 | W 0 ) , r ( v 4 | W 0 ) , r ( v 5 | W 0 ) } .
Case 1.1. r ( v 6 | W 0 ) r ( v 7 | W 0 ) . We may assume that r ( v 6 | W 0 ) = r ( v 3 | W 0 ) and r ( v 7 | W 0 ) = r ( v 4 | W 0 ) . Since there are no twins in G, there exists x V ( G ) such that d ( v 6 , x ) d ( v 3 , x ) . Then x = v 5 ; if not, { v 1 , v 2 , x } resolves { v 3 , v 4 , v 5 , v 6 } or { v 3 , v 5 , v 6 , v 7 } . Similarly, d ( v 4 , v 5 ) d ( v 7 , v 5 ) . Thus { v 1 , v 2 , v 5 } resolves { v 3 , v 4 , v 6 , v 7 } , which contradicts dim ( G ) = n ( G ) 3 .
Case 1.2. r ( v 6 | W 0 ) = r ( v 7 | W 0 ) . We may assume that r ( v 6 | W 0 ) = r ( v 7 | W 0 ) = r ( v 3 | W 0 ) . Since there are no twins in G, there exists x V ( G ) such that x resolves two vertices in { v 3 , v 6 , v 7 } . Assume that d ( v 6 , x ) d ( v 3 , x ) , then x { v 4 , v 5 } ; if not, { v 1 , v 2 , x } resolves { v 3 , v 4 , v 5 , v 6 } , which is a contradiction. Thus { v 4 , v 5 } resolves both { v 3 , v 6 , v 7 } and { v 1 , v 2 } , it becomes case 1.1.
Case 2. n ( G ) = 6 . We first prove that δ ( G ) 2 . Assume for a contradiction that deg ( v 1 ) = 1 . We may assume that e 12 E ( G ) . Since d ( G ) = 2 , N ( v 2 ) = { v 1 , v 3 , v 4 , v 5 , v 6 } . Since v 1 and v 3 are not twins, we may assume that e 34 E ( G ) . Similarly, assume that e 35 E ( G ) , e 45 E ( G ) , e 36 E ( G ) and e 56 E ( G ) . In such a case, e 46 E ( G ) , otherwise v 5 and v 6 are twins. Thus, { v 3 , v 6 } is a resolving set of G, then dim ( G ) = n ( G ) 4 , which is a contradiction.
Now we construct G. Let P 3 = v 1 v 2 v 3 be a shortest path of length 2 of G. Since v 1 and v 3 are not twins, we may assume that e 14 E ( G ) and e 34 E ( G ) . There are two subcases to be considered as follows.
Case 2.1. e 24 E ( G ) . Since v 3 and v 4 are not twins, we may assume that e 35 E ( G ) and e 45 E ( G ) . There are four subcases to be considered by the adjacency relationship between v 5 and v 1 , v 2 as fallows.
Case 2.1.1. e 15 E ( G ) , e 25 E ( G ) . We obtain that the metric matrix of G v 6 is
D = 0 1 2 2 1 1 0 1 1 2 2 1 0 1 2 2 1 1 0 1 1 2 2 1 0 .
The distance from v 6 to v i and v j ( 1 i < j 5 ) is denoted by ( v i , v j | d ( v i , v 6 ) , d ( v j , v 6 ) ) . For dim ( G ) = n ( G ) 3 = 3 , by Corollary 3, any one of ( v 1 , v 3 | 2 , 2 ) , ( v 1 , v 5 | 1 , 1 ) , ( v 2 , v 3 | 2 , 1 ) , ( v 2 , v 4 | 2 , 2 ) , ( v 3 , v 4 | 1 , 2 ) and ( v 3 , v 5 | 2 , 2 ) does not hold. Hence there is at least one of v 1 and v 3 adjacent to v 6 . If e 16 E ( G ) , then e 56 E ( G ) , e 36 E ( G ) and e 26 , e 46 E ( G ) , which implies that v 2 and v 6 are twins. If e 36 E ( G ) , then e 16 E ( G ) , e 26 , e 46 E ( G ) . If e 56 E ( G ) then v 4 and v 6 are twins; and if e 56 E ( G ) , then v 3 and v 6 are twins. Therefore, there is no graph G with dim ( G ) = n ( G ) 3 .
Case 2.1.2. e 15 E ( G ) , e 25 E ( G ) . Since v 3 and v 5 are not twins, d ( v 3 , v 6 ) d ( v 5 , v 6 ) . We may assume that e 36 E ( G ) , e 56 E ( G ) . Since δ ( G ) 2 , deg ( v 1 ) 2 , and we get that e 16 E ( G ) . Then { v 1 , v 3 } is a resolving set of G. Thus dim ( G ) = 4 , which is a contradiction.
Case 2.1.3. e 15 , e 25 E ( G ) . The metric matrix of G v 6 is
D = 0 1 2 2 1 1 0 1 1 1 2 1 0 1 2 2 1 1 0 1 1 1 2 1 0 .
By Corollary 3, we obtain that any one of ( v 1 , v 3 | 2 , 2 ) , ( v 1 , v 5 | 1 , 2 ) , ( v 3 , v 4 | 1 , 2 ) and ( v 4 , v 5 | 2 , 2 ) does not holds. Hence there is at least one of v 1 and v 3 adjacent to v 6 . Assume that e 16 E ( G ) , which implies that e 56 E ( G ) . For e 36 , if e 36 E ( G ) , then e 46 E ( G ) , which implies that v 2 and v 6 are twins, therefore e 36 E ( G ) . For e 26 and e 46 , if e 26 E ( G ) , e 46 E ( G ) , then v 1 and v 6 are twins; if e 26 , e 46 E ( G ) , then v 5 and v 6 are twins; if e 26 E ( G ) , e 46 E ( G ) , then { v 1 , v 6 } is a resolving set of G, and if e 26 , e 46 E ( G ) , then d ( v 3 , v 6 ) = 3 . Thus, there is no graph G with dim ( G ) = n ( G ) 3 .
Case 2.1.4. e 15 , e 25 E ( G ) . Since d ( v 1 , v 5 ) 2 , e 16 , e 56 E ( G ) . Then { v 1 , v 5 } is a resolving set of G, which contradicts dim ( G ) = 3 .
Case 2.2. e 24 E ( G ) . Since d ( v 1 , v 4 ) 2 , we may assume that e 15 , e 45 E ( G ) . There are three subcases to be considered as follows.
Case 2.2.1. e 25 E ( G ) , e 35 E ( G ) or e 25 E ( G ) , e 35 E ( G ) . Then the graph G v 6 is isomorphic to that of case 2.1.1.
Case 2.2.2. e 25 , e 35 E ( G ) . Then the graph G v 6 is isomorphic to that of case 2.1.3.
Case 2.2.3. e 25 , e 35 E ( G ) . Since there are no twins in G and δ ( G ) 2 , v 6 must be adjacent to two adjacent vertices. Assume that e 16 , e 26 E ( G ) , then { v 1 , v 2 } is a resolving set of G, which contradicts dim ( G ) = 3 .
Thus, there is no graph G with dim ( G ) = n ( G ) 3 and we are done. □
Lemma 14.
Let G be a graph with d ( G ) = 2 and dim ( G ) = n ( G ) 3 , then n ( G T ) 5 .
Proof. 
Suppose instead that G is a graph with d ( G ) = 2 , dim ( G ) = n ( G ) 3 and n ( G T ) 6 . Now we prove that dim ( G T ) = n ( G T ) 3 . Since dim ( G ) = n ( G ) 3 , dim ( G T ) n ( G T ) 3 by Lemma 1. If dim ( G T ) = n ( G T ) 1 , then by Lemma 7, we have G T = K n ( G T ) . By Corollary 4, we get that dim ( G ) = n ( G ) n ( G T ) , which is a contradiction. If dim ( G T ) = n ( G T ) 2 , then G T = K s , t ( s , t 1 ) or K s + K t ¯ ( s 1 , t 2 ) or K s + ( K 1 K t ) ( s , t 1 ) by Lemma 8. Since n ( G T ) 6 , s + t 5 , which contradicts dim ( G ) = n ( G ) 3 by Lemma 5. Thus, dim ( G T ) = n ( G T ) 3 .
For n ( G T ) 6 , by Lemma 13, there exist twins in G T . Assume that v 1 , v 2 are twins in G T and | V 1 | 2 , then v 1 resolves v 1 and v 2 by Lemma 2. Moreover, by Lemma 5, the size of every twin set of G T is no more than 2. Thus, for each v V ( G T ) and v { v 1 , v 2 } , v 1 , v 2 and v are not twins. Let W ( G T ) be a metric basis of G T and V ( G T ) \ W ( G T ) = { u 1 , u 2 , u 3 } . By Lemma 8, there exists W 0 = { w 1 , w 2 } W ( G T ) such that W 0 resolves { u 1 , u 2 , u 3 } . Since v 1 and v 2 are twins in G T , there is at most one of v 1 and v 2 in { u 1 , u 2 , u 3 } . Similarly, there is at most one of v 1 and v 2 in W 0 .
Then we prove that one of v 1 and v 2 is in { u 1 , u 2 , u 3 } and the other is in W 0 . Assume that v 1 , v 2 { u 1 , u 2 , u 3 } , then v 1 , v 2 W ( G T ) . If v 1 , v 2 W 0 , then r ( v 1 | W 0 ) = r ( v 2 | W 0 ) { r ( u 1 | W 0 ) , r ( u 2 | W 0 ) , r ( u 3 | W 0 ) } . We may assume that r ( v 1 | W 0 ) = r ( v 2 | W 0 ) = r ( u 1 | W 0 ) , then { w 1 , w 2 , v 1 } resolves { u 2 , u 3 , v 1 , v 2 } , which is a contradiction. Otherwise, we may assume that v 1 = w 1 , then { v 1 , w 2 } resolves { u 1 , u 2 , u 3 } and { v 1 , v 2 } . Without loss of generality suppose that r ( v i | { v 1 , w 2 } ) = r ( u i | { v 1 , w 2 } ) for i { 1 , 2 } . Since the pairs u 1 , v 1 and u 2 , v 2 are not twins in G T , then { v 1 , w 2 , u 3 } resolves { u 1 , u 2 , v 1 , v 2 } , the argument is similar to that of the case 1.1 of Lemma 13, which is a contradiction. Thus, there is one of v 1 and v 2 in { u 1 , u 2 , u 3 } . We may assume that v 1 { u 1 , u 2 , u 3 } , then v 2 W 0 ; otherwise, { v 1 , w 1 , w 2 } resolves { u 1 , u 2 , u 3 , v 2 } , which is a contradiction.
Thus, we have that at most two pairs of vertices are twins in G T and dim ( G T v 1 ) = n ( G T v 1 ) 2 . Moreover, for x 1 , x 2 { v 1 , v 2 } , if x 1 and x 2 are twins in G T v 1 , it easy to see that they are twins in G T . Thus, there is at most one pair of vertices that are twins in G T v 1 . By Lemma 8, G T v 1 = K s , t ( s , t 1 ) or K s + K t ¯ ( s 1 , t 2 ) or K s + ( K 1 K t ) ( s , t 1 ) . Since n ( G T ) 6 , n ( G T v 1 ) 5 . Thus, s + t 4 , there are at most two pairs of vertices are twins in G T v 1 , which is a contradiction. Therefore, the assumption n ( G T ) 6 does not hold and we are done. □
Theorem 1.
For a graph G, dim ( G ) = n ( G ) 3 and d ( G ) = 2 if and only if G is ( K s B r ) + K t ( s , r 2 , t 1 ) , ( K s B r ) + K t ¯ ( s , t 2 , r 1 ) , G = ( K s ¯ + K t ¯ ) + B r ( s , t 2 , r 1 ) , C 5 or one of the graphs in Figure 2 and Figure 3.
Proof. 
It holds by Lemmas 10, 11, 12 and 14. □
Remark 1.
This method can help us to address the extension problem of a given graph with respect to metric dimension. It is theoretically realized the characterization of extremal graphs with dim ( G ) = n ( G ) r for any r > 0 . In addition, we also find that the problem will become more and more difficult with the increase of r based on the proof of the case r = 3 .

4. Conclusions

In this paper, by constructing the metric matrix of G, we make a necessary and sufficient condition of dim ( G ) = n ( G ) r and characterize the graphs of dim ( G ) = n ( G ) 3 via this condition. Moreover, we give a new idea for the extension of graphs based on metric dimension.

Author Contributions

J.W. designed the problem and wrote the paper. L.M. and Y.L. validate the results.

Funding

This research was funded by National Natural Science Foundation of China grant number 11771443 and Shandong Province Natural Science Foundation grant number ZR2017QF011.

Acknowledgments

The authors would like to thank the referees for careful reading of the manuscript and for valuable comments and thoughtful suggestions.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Slater, P.J. Leaves of trees. Congr. Numer. 1975, 14, 549–559. [Google Scholar]
  2. Harary, F.; Melter, R.A. On the metric dimension of a graph. Ars Combin. 1976, 2, 191–195. [Google Scholar]
  3. Liu, J.B.; Kashif, A.; Rashid, T.; Javaid, M. Fractional metric dimension of generalized jahangir graph. Mathematics 2019, 7, 100. [Google Scholar] [CrossRef]
  4. Barrágan-Ramírez, G.A.; Rodríguez-Velázquez, J.A. The local metric dimension of strong product graphs. Graphs Combin. 2016, 32, 1263–1278. [Google Scholar] [CrossRef]
  5. DasGupta, B.; Mobasheri, N. On optimal approximability results for computing the strong metric dimension. Discrete Appl. Math. 2017, 221, 18–24. [Google Scholar] [CrossRef] [Green Version]
  6. Estrada-Moreno, A.; Yero, I.G.; Rodríguez-Velázquez, J.A. The k-metric dimension of the lexicographic product of graphs. Discrete Math. 2016, 339, 1924–1934. [Google Scholar] [CrossRef]
  7. Liu, J.B.; Zahid, Z.; Nasir, R.; Nazeer, W. Edge version of metric dimension and doubly resolving sets of the necklace graph. Mathematics 2018, 6, 243. [Google Scholar] [CrossRef]
  8. Kelenc, A.; Kuziak, D.; Taranenko, A.; Yero, I.G. Mixed metric dimension of graphs. Appl. Math. Comput. 2017, 314, 429–438. [Google Scholar] [Green Version]
  9. Ma, X.; Feng, M.; Wang, K. The strong metric dimension of the power graph of a finite group. Discrete Appl. Math. 2018, 239, 159–164. [Google Scholar] [CrossRef] [Green Version]
  10. Ramírez-Cruz, Y.; Estrada-Moreno, A.; Rodríguez-Velázquez, J.A. The simultaneous metric dimension of families composed by lexicographic product graphs. Graphs Combin. 2016, 32, 2093–2120. [Google Scholar] [CrossRef]
  11. Raza, H.; Hayat, S.; Imran, M.; Pan, X. Fault-tolerant resolvability and extremal structures of graphs. Mathematics 2019, 7, 78. [Google Scholar] [CrossRef]
  12. Khuller, S.; Raghavachari, B.; Rosenfeld, A. Landmarks in graphs. Discrete Appl. Math. 1996, 70, 217–229. [Google Scholar] [CrossRef] [Green Version]
  13. Sebő, A.; Tannier, E. On metric generators of graphs. Math. Oper. Res. 2004, 29, 383–393. [Google Scholar] [CrossRef]
  14. Chartrand, G.; Eroh, L.; Johnson, M.A.; Oellermannn, O.R. Resolvability in graphs and the metric dimension of a graph. Discrete Appl. Math. 2000, 105, 99–113. [Google Scholar] [CrossRef] [Green Version]
  15. Shanmukha, B.; Sooryanarayana, B.; Harinath, K.S. Metric dimension of wheels. Far East J. Appl. Math. 2002, 8, 217–229. [Google Scholar]
  16. Cáceres, J.; Hernando, C.; Mora, M.; Pelayo, I.M.; Puertas, M.L.; Seara, C.; Wood, D.R. On the metric dimension of cartesian products of graphs. SIAM J. Discrete Math. 2007, 21, 423–441. [Google Scholar] [CrossRef]
  17. Yero, I.G.; Kuziak, D.; Rodríguez-Velázquez, J.A. On the metric dimension of corona product graphs. Comput. Math. Appl. 2011, 61, 2793–2798. [Google Scholar] [CrossRef] [Green Version]
  18. Eroh, L.; Feit, P.; Kang, C.X.; Yi, E. The effect of vertex or edge deletion on the metric dimension of graphs. J. Combin. 2015, 6, 433–444. [Google Scholar] [CrossRef]
  19. Imran, S.; Siddiqui, M.K.; Imran, M.; Hussain, M. On metric dimensions of symmetric graphs obtained by rooted product. Mathematics 2018, 6, 191. [Google Scholar] [CrossRef]
  20. Jannesari, M.; Omoomi, B. Characterization of n-vertex graphs with metric dimension n-3. Math. Bohem. 2014, 139, 1–23. [Google Scholar]
  21. Hernando, C.; Mora, M.; Pelayo, I.M.; Seara, C.; Wood, D.R. Extremal graph theory for metric dimension and diameter. Electron. J. Combin. 2010, 17, 30. [Google Scholar] [CrossRef]
  22. Chartrand, G.; Poisson, C.; Zhang, P. Resolvability and the upper dimension of graphs. Comput. Math. Appl. 2000, 39, 19–28. [Google Scholar] [CrossRef] [Green Version]
  23. Garijo, D.; González, A.; Márquez, A. On the metric dimension, the upper dimension and the resolving number of graphs. Discrete Appl. Math. 2013, 161, 1440–1447. [Google Scholar] [CrossRef]
  24. Imran, M.; Bokhary, S.A.H.; Ahmad, A.; Semaničová-Feňovčiková, A. On classes of regular graphs with constant metric dimension. Acta Math. Sci. 2013, 33, 187–206. [Google Scholar] [CrossRef]
  25. Laihonen, T. The metric dimension for resolving several objects. Inf. Process. Lett. 2016, 116, 694–700. [Google Scholar] [CrossRef]
Figure 1. G 1 + G 2 .
Figure 1. G 1 + G 2 .
Mathematics 07 00479 g001
Figure 2. All graphs of d ( G ) = 2 , n ( G T ) = 4 and dim ( G ) = n ( G ) 3 .
Figure 2. All graphs of d ( G ) = 2 , n ( G T ) = 4 and dim ( G ) = n ( G ) 3 .
Mathematics 07 00479 g002
Figure 3. All graphs of d ( G ) = 2 , n ( G T ) = 5 and dim ( G ) = n ( G ) 3 .
Figure 3. All graphs of d ( G ) = 2 , n ( G T ) = 5 and dim ( G ) = n ( G ) 3 .
Mathematics 07 00479 g003
Figure 4. Graphs of d ( G ) = 2 , n ( G ) = 5 and c ( G ) = 3 . For a, v 4 and v 5 are nonadjacent; for b, v 4 and v 5 are adjacent.
Figure 4. Graphs of d ( G ) = 2 , n ( G ) = 5 and c ( G ) = 3 . For a, v 4 and v 5 are nonadjacent; for b, v 4 and v 5 are adjacent.
Mathematics 07 00479 g004
Figure 5. Vertex v 5 is exactly adjacent to one vertex of C 4 . For a, v 2 and v 4 are nonadjacent; for b, v 2 and v 4 are adjacent.
Figure 5. Vertex v 5 is exactly adjacent to one vertex of C 4 . For a, v 2 and v 4 are nonadjacent; for b, v 2 and v 4 are adjacent.
Mathematics 07 00479 g005
Figure 6. Vertex v 5 is exactly adjacent to two vertices of C 4 . For a, v 2 and v 4 are nonadjacent; for b, v 2 and v 4 are adjacent.
Figure 6. Vertex v 5 is exactly adjacent to two vertices of C 4 . For a, v 2 and v 4 are nonadjacent; for b, v 2 and v 4 are adjacent.
Mathematics 07 00479 g006
Figure 7. Graph G of d ( G ) = 2 , n ( G ) = c ( G ) = 5 and | E ( G ) | = 6 .
Figure 7. Graph G of d ( G ) = 2 , n ( G ) = c ( G ) = 5 and | E ( G ) | = 6 .
Mathematics 07 00479 g007
Figure 8. Graphs of d ( G ) = 2 , n ( G ) = c ( G ) = 5 and | E ( G ) | = 7 . For a, there are two edges without common vertices in C 5 ; for b, there are two edges with a common vertex in C 5 .
Figure 8. Graphs of d ( G ) = 2 , n ( G ) = c ( G ) = 5 and | E ( G ) | = 7 . For a, there are two edges without common vertices in C 5 ; for b, there are two edges with a common vertex in C 5 .
Mathematics 07 00479 g008
Figure 9. Graphs of d ( G ) = 2 , n ( G ) = c ( G ) = 5 and | E ( G ) | = 8 . For a, v 3 and v 5 are adjacent; for b, v 2 and v 4 are adjacent.
Figure 9. Graphs of d ( G ) = 2 , n ( G ) = c ( G ) = 5 and | E ( G ) | = 8 . For a, v 3 and v 5 are adjacent; for b, v 2 and v 4 are adjacent.
Mathematics 07 00479 g009

Share and Cite

MDPI and ACS Style

Wang, J.; Miao, L.; Liu, Y. Characterization of n-Vertex Graphs of Metric Dimension n − 3 by Metric Matrix. Mathematics 2019, 7, 479. https://doi.org/10.3390/math7050479

AMA Style

Wang J, Miao L, Liu Y. Characterization of n-Vertex Graphs of Metric Dimension n − 3 by Metric Matrix. Mathematics. 2019; 7(5):479. https://doi.org/10.3390/math7050479

Chicago/Turabian Style

Wang, Juan, Lianying Miao, and Yunlong Liu. 2019. "Characterization of n-Vertex Graphs of Metric Dimension n − 3 by Metric Matrix" Mathematics 7, no. 5: 479. https://doi.org/10.3390/math7050479

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