arXiv:2608.24336math.COAug 2026

Manuscript Offprint

arXiv:2608.24336

On the Maximum Number of Vertices that Belong to Every Metric Basis

Anni Hakanen, Ville Junnila, Tero Laihonen, Havu Miikonen, Ismael G. Yero

Abstract

Metric bases of graphs have been widely studied since their introduction in the 1970's by Slater and, independently, by Harary and Melter. In this paper, we concentrate on the existence of vertices in a graph G that belong to all metric bases of G. We call these basis forced vertices, and denote the number of them by bf(G)\text{bf}(G). We show that bf(G)≤2/3(n−k−1)\text{bf}(G) \leq 2/3(n-k-1) for any connected nontrivial graph G of order n having k vertices in each metric basis. In addition, we show that this bound can be attained. Furthermore, the previous result implies the bound bf(G)≤2/5(n−1)\text{bf}(G) \leq 2/5(n-1) formulated in terms of the order n of the graph for any nontrivial connected graph G. This result answers a question posed by Bagheri et al. in 2016. Moreover, we provide a complete realization of the parameters n, dim⁡(G)\dim(G) and bf(G)≥1\text{bf}(G) \geq 1 within the previous bounds. We consider some extremal cases related to basis forced vertices in a graph, in particular, we give a full characterization of the graphs with bf(G)=2\text{bf}(G) = 2 and dim⁡(G)=n−4\dim(G) = n - 4.

Keywords: Metric dimension; metric basis; basis forced vertices, realization, extremal graphs

AMS Subj. Class. (2020): 05C12

1 Introduction

A resolving set R⊆V(G)R \subseteq V(G) in a graph G=(V(G),E(G))G = (V(G), E(G)) represents a structure with the capability of uniquely recognizing all the vertices in V(G)V(G) throughout a vector of distances to the vertices of RR. The vertices of resolving sets are usually called “landmarks” and the optimization of the quantity of vertices in any resolving set has led to the notion of a metric basis, which is a resolving set of the smallest possible cardinality in GG. These notions were first and separately introduced in [18] by Slater, and in [11] by Harary and Melter, but they remained almost without any attention until the work [3], which created a breaking point in the interest on them. Nowadays, the metric dimension of graphs is a very well-known topic and there is a huge amount of information about it. Some recent and interesting works on this parameter are for instance [4,5,13,15–17,21,22]. Moreover, for more information on this area, we suggest the very interesting survey [20].

∗^{*}The paper has been presented in part in CALDAM 2025 [7].

†^{\dagger}Turku Collegium for Science, Medicine and Technology (TCSMT), University of Turku, Finland

‡^{\ddagger}Department of Mathematics and Statistics, University of Turku, Finland

§^{§}Department of Mathematics, Universidad de Cádiz (Algeciras Campus), Spain

Several applications of resolving sets have been proposed in literature. The connections of these structures to robot navigation already appeared in [11], and have been further developed in several other works. A recent and novel location property was presented in [19], where (certain kind of) resolving sets were used while identifying biological sequence data. In order to avoid presenting a large list of such works, any interested reader might simply check the recent survey [20], which contains a fairly complete compendium of applications, and combinatorial or computational properties of resolving sets and metric bases.

An interesting fact, regarding the metric bases of a given graph G, relates to the possible existence of vertices of G such that they are required to be landmarks in every metric basis, in order to locate or resolve the vertices of G. This fact means that a vertex satisfying this property plays a crucial role as a landmark, and thus, identifying such vertices is worthwhile. However, one cannot efficiently decide that a given vertex of a graph possesses such a property since, as proved in [9], it is a co-NP-hard problem to check whether a given vertex of a graph belongs to every metric basis of a graph. The vertices of a graph satisfying the previously mentioned property were called basis forced vertices in [9].

This suggests that finding tight bounds on the number of basis forced vertices in a given graph deserves attention. Hence, the aim of this work is to make significant contributions to this direction. Notice that in [1] Bagheri et al. studied graphs with unique metric bases, that is, graphs with a metric basis where all the vertices are basis forced. They provided bounds and posed a question on the maximum cardinality of a unique metric basis in any graph. In this paper, as a byproduct of Corollary 8, we are able to fully answer that open question. Some previous bounds for the number of basis forced vertices were already given in [9], and some other ones for specific families of graphs recently appeared in [10], but the former ones (and more general), were indeed not the best possible. We significantly improve them in this work.

Formally, given a connected graph G=(V(G),E(G))G = (V(G), E(G)), it is said that a vertex x∈V(G)x \in V(G) resolves two vertices u,v∈V(G)u, v \in V(G) (or that u,vu, v are resolved by xx), if dG(v,x)≠dG(u,x)d_G(v, x) \neq d_G(u, x), where dG(y,z)d_G(y, z) represents the distance between yy and zz, which is the number of edges in a shortest y−zy - z path in GG. A set R⊆V(G)R \subseteq V(G) is a resolving set for GG if all the vertices of GG are pairwise resolved by a vertex of RR. A resolving set having the smallest possible cardinality in GG is called a metric basis. The cardinality of a metric basis is the metric dimension of GG, and denoted by dim⁡(G)\dim(G).

Now, a basis forced vertex of a graph GG is understood as a vertex v∈V(G)v \in V(G) such that it belongs to every metric basis of GG. The term “basis forced vertex” was first used in [9], although it has some antecedents in the articles [1,2], where the graphs that have a unique metric basis were studied. From now on, we represent the number of basis forced vertices of GG by bf(G)\text{bf}(G). Notice that we can have bf(G)=0\text{bf}(G) = 0 for many graphs. For example, a nontrivial path PP has bf(P)=0\text{bf}(P) = 0. We also need the following concept from [9]. A vertex v∈V(G)v \in V(G) is a void vertex if it is in no metric basis of GG. It is easy to see that there are n−2n - 2 void vertices in a path of order nn; indeed, all the vertices not in the beginning or in the end of the path are such.