arXiv:2609.09851math.COSep 2026

Manuscript Offprint

arXiv:2609.09851

On the Vertices That Belong to All Minimum Identifying Codes

Ville Junnila, Tero Laihonen, Havu Miikonen

Abstract

Identifying codes in graphs have been widely studied since their introduction by Karpovsky, Chakrabarty and Levitin in 1998. In this paper, we consider the vertices that are in every minimum identifying code in a graph. There are two types of such vertices: always-forced vertices that belong to all identifying codes (minimum or not) and min-forced vertices that belong to all minimum identifying codes. A vertex is called proper-min-forced if it is min-forced but not always-forced. We show an upper bound 2n/32n/3 for the number of such proper-min-forced vertices in a closed-twin-free graph of order nn. Moreover, for integers nn divisible by three, we construct an infinite family of graphs in which there are 2n/3−12n/3 - 1 such vertices. In addition, we determine the maximum number of edges in a graph of even order such that the graph contains proper-min-forced vertices. We also show that the decision problem of determining whether a given vertex in a graph is proper-min-forced is co-NP-hard.

Keywords: Minimum identifying code, forced vertex, dense graph, computational complexity AMS Subj. Class. (2020): 05C69, 05C42, 68Q15

1 Introduction

Let G=(V(G),E(G))G = (V(G), E(G)) be a simple, finite and undirected graph. We often denote the order of a graph ∣V(G)∣|V(G)| by nn. A graph is nontrivial if n≥2n \geq 2. A subgraph HH of GG is spanning if V(H)=V(G)V(H) = V(G). An edge between vertices u,v∈V(G)u, v \in V(G) is denoted by {u,v}=uv\{u, v\} = uv. We denote by N(v)N(v) the open neighbourhood of a vertex vv which is defined as N(v)={u∈V∣vu∈E(G)}N(v) = \{u \in V \mid vu \in E(G)\}. The closed neighbourhood of a vertex v∈Vv \in V is N[v]=N(v)∪{v}N[v] = N(v) \cup \{v\}. If we wish to emphasize the underlying graph, we denote NG(v)N_G(v) and NG[v]N_G[v]. Distinct vertices uu and vv are called closed twins if N[u]=N[v]N[u] = N[v], and open twins if N(u)=N(v)N(u) = N(v). A graph is called closed-twin-free if there are no closed twins in it.

A vertex u∈V(G)u \in V(G) is called universal if NG[u]=V(G)N_G[u] = V(G). We define the degree of a vertex vv as dG(v)=∣N(v)∣d_G(v) = |N(v)|, and the maximum degree Δ(G)=max⁡{dG(v)∣v∈V(G)}\Delta(G) = \max\{d_G(v) \mid v \in V(G)\}. The degree sequence (d1,d2,…,dn)(d_1, d_2, \ldots, d_n) is an (ascending) list of degrees of all the vertices. A nonempty subset S⊆V(G)S \subseteq V(G) is called a code and its elements are called codewords. We use the following shorthand notation for replacing a vertex uu of SS by another vertex vv (which usually does not belong to SS): S[u←v]=(S∖{u})∪{v}S[u \leftarrow v] = (S \setminus \{u\}) \cup \{v\}. The symmetric difference of sets AA and BB is denoted by A△B=(A∖B)∪(B∖A)A \triangle B = (A \setminus B) \cup (B \setminus A). Since (A△B)△B=A(A \triangle B) \triangle B = A, it follows that

A△B=C△B⇒A=C.(1)A \triangle B = C \triangle B \Rightarrow A = C. \tag{1}

We denote the complete graph of order nn by KnK_n and the path of order nn by PnP_n. The complement of a graph GG is denoted by G‾\overline{G}. For a code S⊆V(G)S \subseteq V(G) and a vertex v∈V(G)v \in V(G), we defined the II-set IG(S;v)I_G(S; v) of vv as the set of codewords in the closed neighbourhood of vv, that is,

IG(S;v)=S∩NG[v].I_G(S; v) = S \cap N_G[v].

We may omit the graph or the code in the notation if they are clear from the context, that is, IG(S;v)=IG(v)=I(S;v)=I(v)I_{G}(S;v)=I_{G}(v)=I(S;v)=I(v).

The following concept of identifying codes was introduced in [25] in 1998. The topic has been studied widely in the literature, see the numerous articles in the list of [22]. For some recent developments on the subject, consult, for example, [7], [8], [23] and [29].

Definition 1. A code S⊆V(G)S \subseteq V(G) is an identifying code, or an ID code, in a graph GG if for all distinct vertices u,v∈V(G)u, v \in V(G) their II-sets are nonempty and I(u)≠I(v)I(u) \neq I(v).

The original application for identifying codes was fault diagnosis in multiprocessor systems [25]. Later, these codes were extended to applications for environmental monitoring [2], and joint monitoring and routing in wireless sensor networks [26]. Let us look more closely at the idea behind using identifying codes to locate objects in a sensor network. Sensor networks are systems consisting of sensors and links between them and, therefore, can be easily modeled as a graph GG. Say we have a set of sensors S⊆V(G)S \subseteq V(G). A sensor is placed at some node of a network, that is, at a vertex c∈Sc \in S, and it monitors its surroundings, that is, the closed neighbourhood NG[c]N_G[c], reporting on the possible existence of the sought object. Based on these reports, the central unit tries to deduce the location of the object. This can be done if and only if SS is an identifying code since each I(v)I(v) is nonempty and pairwise distinct for all v∈V(G)v \in V(G). A natural goal is to minimize the number of sensors in a network, and, therefore, we are interested in finding identifying codes with minimum cardinality. More information on location in sensor networks can be found, for instance, in [12,26].

Clearly, if S⊆V(G)S \subseteq V(G) is an identifying code, then a superset S′⊆V(G)S' \subseteq V(G) of SS, that is, S⊆S′,S \subseteq S', is also an identifying code. In particular, this holds for S′=V(G)S' = V(G), and in that case, I(v)=N[v]I(v) = N[v] for all v∈V(G)v \in V(G). Therefore, in order to have an ID code in a graph, it must be closed-twin-free. Closed-twin-freeness is also sufficient: the set V(G)V(G) is an ID code, if GG is closed-twin-free. The cardinality of the minimum identifying codes in a closed-twin-free graph GG is denoted by γID(G)\gamma^{ID}(G) and is called the identifying number of GG.

By [16], it is known that if a finite GG is closed-twin-free and G≠Kn‾G \neq \overline{K_n}, there always exists a vertex vv such that V(G)∖{v}V(G) \setminus \{v\} is an ID code, and thus, γID(G)≤n−1\gamma^{ID}(G) \leq n-1.

However, there can be vertices that cannot be omitted from any identifying code in a finite graph, as defined next.

Definition 2. Let GG be a closed-twin-free graph. A vertex v∈V(G)v \in V(G) is always-forced if it is in every identifying code in GG. In other words, vv belongs to the intersection ⋂SS\bigcap_S S, where SS goes through all identifying codes in GG.

It is easy to see that a vertex vv is always-forced if and only if V∖{v}V \setminus \{v\} is not an identifying code in GG. Consequently, it is algorithmically easy to check if a vertex is always-forced. Clearly, isolated vertices in a graph are always-forced. If NG[u]△NG[w]={v}N_G[u] \triangle N_G[w] = \{v\}, then the vertex vv must be in every identifying code due to the pair u,wu, w. In the literature (see e.g., [13,14]), such vertices vv are called forced or u,wu, w-forced. Obviously, an isolated vertex is not forced by any pair (although it is always-forced). The definition of always-forced coincides with this concept of forced (by a pair) in closed-twin-free graphs with no isolated vertices. This is seen by the next easy lemma.

Lemma 3. Let GG be a connected, nontrivial and closed-twin-free graph. A vertex v∈V(G)v \in V(G) is always-forced if and only if there exists a pair of vertices u,w∈V(G)u, w \in V(G) such that NG[u]△NG[w]={v}N_G[u] \triangle N_G[w] = \{v\}.

Proof. (⇒) Assume first that vv is always-forced. Hence, S=V(G)∖{v}S = V(G) \setminus \{v\} is not an ID code. Then necessarily I(S;x)=∅I(S; x) = \emptyset or I(S;u)=I(S;w)I(S; u) = I(S; w) for some x,u,w∈V(G)x, u, w \in V(G), where u≠wu \neq w. However, since GG is connected and nontrivial, we have I(S;x)≠∅I(S; x) \neq \emptyset for all x∈V(G)x \in V(G). Hence, we must have I(S;u)=I(S;w)I(S; u) = I(S; w) and this implies that NG[u]△NG[w]={v}N_G[u] \triangle N_G[w] = \{v\} as GG is closed-twin-free.

(⇐) This direction is trivial.

Recall that γID(G)≤n−1\gamma^{ID}(G) \leq n-1 and hence, the number of always-forced vertices is also upper bounded by n−1n-1. Consider a graph GG formed from a complete graph K2k+1K_{2k+1} by removing edges of a maximal matching. Denoting the universal vertex of GG, that is, the vertex adjacent to all other vertices of GG, by uu, we may easily observe by studying the symmetric differences of the closed neighbourhoods of uu and vv (≠u\neq u) that all the vertices belonging to V(G)∖{u}V(G) \setminus \{u\} are always-forced; the result also follows by Lemma 14(ii), which is later presented in Section 3. Thus, GG attains the previous upper bound n−1n-1 on the number of always-forced vertices.

As discussed above, we are mostly interested in the smallest possible identifying codes, the minimum ID codes, and the vertices in such a code. With that in mind we give the following definition.

Definition 4. Let GG be a closed-twin-free graph. A vertex v∈V(G)v \in V(G) is minimum-forced or min-forced if it is in every minimum identifying code in GG. In other words, vv belongs to the intersection ⋂SS\bigcap_S S, where SS goes through all minimum identifying codes in GG.

Questions related to these vertices are rather natural and important when we try to build minimum identifying codes; indeed, such vertices must always be chosen in a minimum ID code. Similar questions have also been studied concerning other special subsets of graphs; for example, (total) dominating sets [5, 10, 27], locating-dominating sets [3, 24], independent (or stable) sets [4, 20], matchings [9] and resolving sets [1, 6, 18, 19]. Furthermore, the graphs for which each vertex belongs to some optimal (smallest or largest depending on the problem) special subset are called excellent and have been studied, for example, in the case of dominating sets [15, 28] and independent sets [11].

Clearly, always-forced vertices are in every ID code, so trivially, they are also in every minimum ID code. As explained earlier, determining whether a vertex is always-forced is easy. Hence, the main focus of the paper is on the vertices that are min-forced but not always-forced. In the following definition, we call such vertices proper-minimum-forced or proper-min-forced.

Definition 5. Let GG be a closed-twin-free graph. A proper-minimum-forced vertex is a min-forced vertex v∈V(G)v \in V(G) that is not always-forced.

Recall that the maximum number of always-forced vertices in a graph of order nn is n−1n-1 and that the upper bound can also be attained. In Section 2, we show that the situation is very different for proper-min-forced vertices. Indeed, we show in Theorem 13 that there can only be at most 2n/32n/3 proper-min-forced vertices. In Section 3, we give an upper bound on the maximum number of edges in a graph of even order such that the graph contains proper-min-forced vertices. In addition, we show that the bound is tight. The question of a vertex being always-forced is easy to check algorithmically, but the situation is more complicated for the proper-min-forced vertices. Indeed, it is shown in Section 4 that deciding whether a vertex is proper-min-forced is co-NP-hard.