1 Introduction

Graphs considered in this paper are connected, finite, and simple. If G is a graph and \(u, v\in V(G)\), then \(d_G(u,v)\) denotes the shortest-path distance between u and v. If \(S=\{v_1,\ldots ,v_k\}\) is an ordered subset of V(G), then the metric S-representation of a vertex \(u\in V(G)\) is the vector \(r_G(u|S) = (d_G(v_1,u), \ldots , d_G(v_k,u))\). The set S distinguishes vertices u and v if \(r_G(u|S)\ne r_G(v|S)\) and S is a metric generator for G if each pair of vertices of G is distinguished by S. A metric generator of smallest cardinality is called a metric basis for G, its order being the metric dimension \(\mathrm{dim}(G)\) of G.

The sources for the metric dimension are papers [14, 32]. Afterwards the concept was studied in depth, classical references include [5, 7, 8], papers dealing with applications of the metric dimension in modeling of real world problems include [17, 21], while for some of the recent developments we refer to [36, 41]. Several variations of the concept were also studied such as local resolving sets [28], strong resolving sets [27], strong resolving partitions [25, 39], k-metric generators [9], k-antiresolving sets [34], and mixed metric generators [18].

Distinguishing edges instead of vertices seems an utmost natural variation, hence it comes as a surprise that the edge metric dimension was introduced only recently in [19] as follows. Let G be a graph. If \(u\in V(G)\) and \(xy\in E(G)\), then the distance \(d_G(u,xy)\) between u and xy is \(\min \{d_G(u,x),d_G(u,y)\}\). If \(S=\{v_1,\ldots ,v_k\}\) is an ordered subset of V(G), then the edge metric S-representation of an edge \(e\in E(G)\) is the vector

$$\begin{aligned} r_G(e|S) = (d_G(v_1,e), \ldots , d_G(v_k,e))\,. \end{aligned}$$

S is an edge metric generator for G if the edges of G have pairwise different edge metric S-representations. A smallest edge metric generator is an edge metric basis for G, its cardinality is the edge metric dimension \(\mathrm{edim}(G)\) of G.

When someone thinks of a smart city, an intelligent transportation system (ITS) may quickly come to mind. Self-driving cars will probably soon play a crucial role in an ITS. Clearly, a self-driving car needs to determine its position on the city’s streets uniquely, hence each street needs a code which uniquely determines its location. If we represent the city with a graph G, where the edges of G correspond to streets, then an edge metric generator of G provides unique codes for the streets.

The seminal paper [19] on the edge metric dimension brings a wealth of results, including a proof that the problem of finding the edge metric dimension of a graph is NP-hard and some approximation results for the invariant. It is also shown that \(\mathrm{dim}(G)\) and \(\mathrm{edim}(G)\) are in general incomparable. (To support this fact see further [23], where an infinite number of graphs satisfying \(\mathrm{dim}(G)> \mathrm{edim}(G)\) are presented.) In a subsequent paper [44] several problems from [19] are answered, in particular, a classification of the graphs G of order n for which \(\mathrm{edim}(G) = n-1\) holds is given. These graphs were also investigated in [43] where a polynomial algorithm is developed for their recognition. Papers [1, 11, 37, 40] determine the edge metric dimension for some families of graphs. In [29] the edge metric dimension of the join of graphs, the lexicographic product of graphs, and the corona product of graphs is reported. Finally, the very recent paper [12] brings a wealth of appealing results on the edge metric dimension; among other results it is proved that the d-dimensional grids have edge metric dimension at most d.

In the next section we study the edge metric dimension of hierarchical products \(G(U)\sqcap H\) of graphs. We prove a general sharp upper bound on \(\mathrm{edim}(G(U)\sqcap H)\) and an exact result for the case when \(|U| = 1\). Earlier known results on the corona product of graphs can be deduced from these results. In Sect. 3 we propose an integer linear programming model for computing the edge metric dimension. In the final section several examples are provided that demonstrate how the methods proposed in the previous two sections can be applied to obtain the edge metric dimension of some interesting graphs, notably from mathematical chemistry.

To conclude the introduction we extend (edge) metric generators to vertex and edge subsets as follows. If \(X\subseteq V(G)\), then \(S\subseteq V(G)\) is a metric generator for X if the vertices from X have pairwise different metric S-representations. A smallest metric generator for X is a metric basis for X, its cardinality being the metric dimension \(\mathrm{dim}_G(X)\) for X. In this notation, \(\mathrm{dim}_G(V(G)) = \mathrm{dim}(G)\). Similarly, if \(F\subseteq E(G)\), then \(S\subseteq V(G)\) is an edge metric generator for F if the edges from F have pairwise different edge metric S-representations. A smallest edge metric generator for F is an edge metric basis for F, its cardinality is the edge metric dimension \(\mathrm{edim}_G(F)\) for F. So \(\mathrm{edim}_G(E(G)) = \mathrm{edim}(G)\).

2 Hierarchical products

In this section we consider the edge metric dimension of the hierarchical product of graphs and mention in passing that the metric dimension, the fractional metric dimension, and the local metric dimension of these products (in particular of rooted products) were studied in [10, 15, 22, 24, 33, 35].

If G and H are graphs and \(U\subseteq V(G)\), then the hierarchical product \(G(U)\sqcap H\) of G and H (with respect to U) has the vertex set \(V(G)\times V(H)\) and the edge set

$$\begin{aligned} \{(g,h)(g',h'):\ gg'\in E(G), h=h'\} \cup \{(g,h)(g',h'):\ g=g'\in U, hh'\in E(H)\}. \end{aligned}$$

Note that \(G(U)\sqcap H\) contains n(G) subgraphs isomorphic to G, they are called G-layers. Similarly, \(G(U)\sqcap H\) contains |U| subgraphs isomorphic to H, these are H-layers. The operation \(\sqcap \) (for two and also more factors) was in the seminal paper [6] named the generalized hierarchical product, here we follow the reasonable suggestion from [2] to simplify the naming to the hierarchical product. We note that the hierarchical product of graphs is a generalization of the rooted product of graphs [13] in which case \(|U|=1\) holds; see also [4, 26] for some recent investigations of the rooted product.

If \(U\subseteq V(G)\) and \(u,v\in V(G)\), then we say that a uv-walk W is a uv-walk through U if W is an uv-walk in G that contains some vertex of U, where the latter vertex could be one of u and v. With \(d_{G(U)}(u,v)\) we denote the length of a shortest uv-walk through U. With this notation we can state the following fundamental observation from [6].

Proposition 2.1

If G is a graph with \(U\subseteq V(G)\) and H is a graph, then

$$\begin{aligned} d_{G(U)\sqcap H}((g,h),(g',h'))={\left\{ \begin{array}{ll} d_{G(U)}(g,g')+d_H(h,h'); &{} h\ne h',\\ d_G(g,g'); &{} h=h'. \end{array}\right. } \end{aligned}$$

To state our results, we need some more preparation. If v is a vertex of a graph G and \(k\in {{\mathbb {N}}}_0\), then let \(E_G(v,k)\) be the set of edges of G that are at distance k from v, that is,

$$\begin{aligned} E_G(v,k) = \{e\in E(G):\ d_G(v,e) = k\}\,. \end{aligned}$$

If \(F\subseteq E(G)\) and \(|F|\ge 2\), then we say that \(X\subseteq V(G)\) is an equidistant discriminator for F, if X is an edge metric generator for F. In the case when \(|F|\le 1\), we define \(\emptyset \) to be the only equidistant discriminator for F. We analogously define equidistant discriminators for vertex subsets of G. With this terminology we set

$$\begin{aligned}&\mathrm{edim}(G(U)) \\&\quad = \min \{ \mid \! \bigcup _{\begin{array}{c} u\in U \\ k\ge 0 \end{array}} S_G(u,k)\! \mid \ :\ S_G(u,k)\ \mathrm{equidistant\ discriminator\ for}\ E_G(v,k) \}\,. \end{aligned}$$

That is, \(\mathrm{edim}(G(U))\) is the cardinality of a smallest set of vertices which distinguish all pairs of edges that are equidistant from some vertex from U. In addition, we set

$$\begin{aligned} \mathrm{edim}^+(G(U)) = \min \left\{ \mid \left( \bigcup _{u\in U, k\ge 0} S_G(u,k)\right) \cup S_G(U) \mid \right\} \,, \end{aligned}$$

where the minimum is taken over all equidistant discriminators \(S_G(u,k)\) for \(E_G(u,k)\) and over all equidistant discriminators \(S_G(U)\) for U. After this preparation we can state the following bound.

Theorem 2.2

If G and H are graphs and \(U\subseteq V(G)\) with \(|U|>1\), then

$$\begin{aligned} \mathrm{edim}(G(U)\sqcap H)\le n(H) (\mathrm{edim}^+(G(U))+1)\,. \end{aligned}$$

Proof

Note that the assumption \(|U|>1\) implies that also \(n(G) > 1\). To simplify the notation, set \(X = G(U)\sqcap H\) for the rest of the proof. Let \(S_G(u,k)\), \(u\in U\), \(k\ge 0\), be equidistant discriminators for \(E_G(u,k)\), and \(S_G(U)\) be an equidistant discriminator for U which together realize \(\mathrm{edim}^+(G(U))\). Set \(S^T(G) = \bigcup _{u\in U, k\ge 0} S_G(u,k)\) and let \(S=(S^T(G)\cup S_G(U))\times V(H)\). Select further a vertex \(w\in U\) and set \(S'=\{(w,y):\ y\in V(H)\}\). We claim that \(S\cup S'\) is an edge metric generator for X. For this sake let e and f be arbitrary, different edges of X, and consider the following cases.

Case 1: e and f are both in H-layers.

Suppose first that e and f are in the same H-layer, say \(e = (g,h)(g,h')\) and \(f = (g,h'')(g,h''')\). If \(\{h,h'\}\cap \{h'',h'''\} = \emptyset \), that is, if e and f are not adjacent, then consider an arbitrary vertex \(v\in S^T(G)\) and note that the vertex \((v,h)\in S\) distinguishes e and f. In the second subcase suppose that e and f are adjacent, say \(h = h''\). Now the vertex \((v,h')\in S\) distinguishes e and f.

Suppose second that e and f are in different H-layers, say \(e = (g,h)(g,h')\) and \(f = (g',h'')(g',h''')\), where \(g\ne g'\). Select a vertex \(v\in S_G(U)\) which distinguishes g and \(g'\), that is, \(d_G(v,g)\ne d_G(v,g')\). In the first subcase suppose that \(\{h,h'\}\cap \{h'',h'''\} \ne \emptyset \), say \(h=h''\). In this case the vertex \((v,h)\in S\) distinguishes e and f. Suppose next that \(\{h,h'\}\cap \{h'',h'''\} = \emptyset \). Then \(d_X((v,h),e)=d_X((v,h), (g,h))\) and we may without loss of generality assume that \(d_X((v,h),f)=d_X((v,h), (g',h''))\). If \(d_X((v,h),e) \ne d_X((v,h),f)\), then (vh) distinguishes e and f. Suppose next that \(d_X((v,h),e) = d_X((v,h),f)\). Then \(d_{G(U)}(v,g)=d_{G(U)}(v,g')+d_H(h,h'')\). Thus \(d_{G(U)}(v,g)+d_H(h,h'')>d_{G(U)}(v,g)=d_{G(U)}(v,g')+d_H(h,h'')>d_G(v,g')+d_H(h'',h'')\) and so \(d_X((v,h''),e) > d_X((v,h''),f)\). Therefore, the vertex \((v,h'')\in S\) distinguishes e and f.

Case 2: e and f are are both in G-layers.

Let \(e=(g,h)(g',h)\) and \(f=(g'',h')(g''',h')\). First, we check the case \(h=h'\). In this case, if there exists a vertex \(v\in U\) such that \(d(v,gg')=d(v,g''g''')\), then there exists a vertex \(u\in S^T(G)\) for which \(d_G(u,gg')\ne d_G(u,g''g''')\) holds. Consequently, for the vertex \((u,h)\in S\) we have \(d_X((u,h),e) \ne d_X((u,h),f)\). Otherwise, the vertex \((w,h)\in S'\) distinguishes e and f.

Now we investigate the case \(h\ne h'\). In this case, if \(d_X((u,h),e)= d_X((u,h),f)\) for each \((u,h)\in S\), then, again by a similar argument as applied in Case 1, there exists \((u,h')\) in S that \(d_X((u,h'),e)\ne d_X((u,h'),f)\).

Case 3: e is in a G-layer and f is in a H-layer.

Let \(e=(g,h)(g',h)\) and \(f=(g'',h')(g'',h'')\). The case \(h\notin \{h',h''\}\) can be proved by a similar technique as used in Case 1 and so we will only check the case \(h=h'\). If \(d_X((u,h),e)= d_X((u,h),f)\) for each \((u,h)\in S\), then \(\min \{d_G(g,u),d_G(g',u)\}=d_G(u,g'')\) for each \(u\in S^T(G)\cup S_G(U)\). Therefore, \(d_X((u,h''),f)=d_X((u,h''), (g'',h''))=d_G(u,g'')<d_X((u,h''),e)\). So we have detected the vertex \((u,h'')\in S\) such that \(d_X((u,h''),e) \ne d_X((u,h''),f)\).

We conclude that every pair of edges from X is distinguished by a vertex of \(S\cup S'\), and consequently \(\mathrm{edim}(X) \le n(H) (\mathrm{edim}^+(G(U))+1)\). \(\square \)

Consider the cases in which \(|U|=1\) or \(U\cap (S^T(G)\cup S_G(U))\ne \emptyset \), where \(S^T(G)\) and \(S_G(U)\) are defined as in the proof of Theorem 2.2. If there exists \(z\in U\cap (S^T(G)\cup S_G(U))\), then replacing the vertex set \(S'\) in the proof of Theorem 2.2 with the set\(\{(z,y):\ y\in V(H)\}\) we can prove along with the lines of the proof that S is an edge metric generator for \(G(U)\sqcap H\). In the case when \(|U|=1\), Cases 1 and 3 from the proof are valid for \(G(U)\sqcap H\), and we do not need the vertices of \(S'\) in Case 2. Summarizing this discussion we have the following fact. If \(|U|=1\) or \(U\cap (S^T(G)\cup S_G(U))\ne \emptyset \), then

$$\begin{aligned} \mathrm{edim}(G(U)\sqcap H) \le n(H)\,\mathrm{edim}^+(G(U))\,. \end{aligned}$$
(1)

Consider \(P_{11}(U)\sqcap P_2\), where \(V(P_{11}) = \{v_1,\ldots , v_{11})\) and \(U=\{v_{2k-1}:\ k\in [6]\}\), see Fig. 1.

Fig. 1
figure 1

\(P_{11}(U)\sqcap P_2\), where \(U=\{v_1,v_3,v_5,v_7,v_9,v_{11}\}\)

Then we can select \(S_{P_{11}}(U) = \{v_1\}\) and \(S^T(P_{11})=\{v_1\}\), and so \(\mathrm{edim}^+(P_{11}(U))=1\). From (1) we then infer that \(S=(S_{P_{11}}(U)\cup S^T(G))\times V_H=\{v_1\}\times V_H\) (black vertices in the figure) is an edge metric generator for \(P_{11}(U) \sqcap P_2\), hence \(\mathrm{edim}(P_{11}(U) \sqcap P_2) \le 2\). From [19, Remark 1] we know that \(\mathrm{edim}(G)=1\) if and only if G is a path, therefore we conclude that \(\mathrm{edim}(P_{11}(U) \sqcap P_2)= 2\). This demonstrates that (1) is sharp.

We now focus on hierarchical products \(G(U)\sqcap H\), where \(|U| = 1\). If \(U = \{u\}\), then we simplify the notation \(G(\{u\})\) to G(u). If G is a path and u its end vertex, then we say that G(u) is a rooted path.

Theorem 2.3

If \(X = G(u)\sqcap H\), where G(u) is not a rooted path, and \(n(H)\ge 2\), then

$$\begin{aligned} \mathrm{edim}(X) = n(H) \cdot \mathrm{edim}(G(u))\,. \end{aligned}$$

Proof

From (1) we know that \(\mathrm{edim}(X) \le n(H) \cdot \mathrm{edim}^+(G(u))\). Since \(|U|=1\), the equidistant discriminator for U is the empty set, that is, \(S_G(U) = \emptyset \), and consequently \( \mathrm{edim}(X)\le n(H)\cdot \mathrm{edim}(G(u))\).

Let \(S^T(G) = \bigcup _{u\in U, k\ge 0} S_G(u,k)\), where \(S_G(u,k)\) are equidistant discriminators for \(E_G(u,k)\) that realize \(\mathrm{edim}(G(U))\). Then we know that \(S=S^T(G)\times V(H)\) is an edge metric generator for X. We wish to show that \(|S| = \mathrm{edim}(X)\) and assume by way of contradiction that there is an edge metric generator \(S'\) for X such that \(|S'|<|S|\). By the pigeonhole principle there exists a G-layer of X, denote it with \(G_h\) (here h is the vertex of H to which the G-layer corresponds), such that \(|S'\cap V(G_h)| < |S\cap V(G_h)|\). Let \(S'_h = S' \cap V(G_h)\) and note that \(S'_h\) is not an equidistant discriminator for \(E(G_h)\) and \(|S'_h|<|S^T(G)|\). Hence there exist \(k\ge 0\) and edges \(e, f \in E(G_h)\cap \{(g,h)(g',h):\ gg'\in E_G(u,k)\}\) such that \(d_X(x,e) = d_X(x,f)\) holds for each vertex \(x \in S'_h\). Since \(d_X((u,h),e)=d_{X}((u,h),f)\), it follows that the equality \(d_X(v,e) = d_X(v,f)\) holds also for each \(v\in S'\setminus V(G_h)\). But this means that \(S'\) is not an edge metric generator for X, a contradiction. \(\square \)

Note that the rooted paths G(u) are the only graphs for which \(S^T(G) = \emptyset \) and consequently \(\mathrm{edim}(G(u)) = 0\). This is the reason that the rooted paths are excluded in Theorem 2.3.

To conclude the section we consider the corona product of graphs. Recall that the corona product \(G\odot H\) of graphs G and H is obtained from the disjoint union of G and n(G) copies of H, by joining by an edge every vertex from the \(i^\mathrm{th}\) copy of H with the \(i^\mathrm{th}\) vertex of G. (See [16, 38] for studies on the metric dimension of this product.) The key observation is that

$$\begin{aligned} G\odot H = (H+v)(v) \sqcap G\,, \end{aligned}$$

where \(H+v\) denotes the join of H and the one vertex graph with the vertex v. More precisely, \(H+v = H+K_1\), where \(V(K_1) = \{v\}\). Then Theorem 2.3 implies that

$$\begin{aligned} \mathrm{edim}(G\odot H) = \mathrm{edim}((H+v)(v) \sqcap G) = n(G)\cdot \mathrm{edim}((H+v)(v))\,. \end{aligned}$$

From here it is not difficult to deduce [44, Theorem 4.1] which determines the edge metric dimension for the join of \(K_1\) and an arbitrary graph, and [29, Theorem 6] that determines the edge metric dimension of corona products of nontrivial graphs. We can reformulate and combine these two results as follows. Let \({\mathcal {F}}\) be the family of graphs consisting of all graphs G such that that \(d_G(v,e)\le 1\) holds for each \(e\in E(G)\) and each \(v\in V(G)\).

Theorem 2.4

If G is a connected graph, and H is a graph with more than one vertex, then

$$\begin{aligned} \mathrm{edim}(G\odot H)= {\left\{ \begin{array}{ll} n(H); &{} n(G) = 1\ \text {and}\ H\in {\mathcal {F}}, \\ n(G)(n(H)-1); &{} \text {otherwise}. \end{array}\right. } \end{aligned}$$

3 Integer linear programming model

An integer linear programming model, ILPM for short, for finding the metric dimension and a metric basis for a graph has been presented in [8]. Following this approach we introduce an ILPM for finding the edge metric basis for a given graph as follows.Footnote 1

Let G be a graph with \(V(G) = \{v_1,\ldots ,v_n\}\) and \(E(G) = \{e_1,\ldots ,e_m\}\). Let \(D_G=[d_{ij}]\) be an \(m\times n\) matrix, where \(d_{ij}=d_G(e_i,v_j)\) for \(i\in [m]\) and \(j\in [n]\). For \(x_i \in \{0,1\}\), \(i\in [n]\), define the function F by

$$\begin{aligned}F(x_1,\ldots , x_n)=x_1+\cdots +x_n\,, \end{aligned}$$

and minimize F subject to the constraints

$$\begin{aligned}|d_{i1}-d_{j1}|x_1+|d_{i2}-d_{j2}|x_2 + \cdots + |d_{in}-d_{jn}|x_n>0,\ 1 \le i < j \le m\,.\end{aligned}$$

Then note that if \(x'_1, \ldots , x'_n\) is a set of values for which F attains its minimum, then \(W = \{v_i:\ x'_i =1\}\) is an edge metric basis for G.

For example, consider \(K_3\) with the vertex set \(\{v_1,v_2,v_3\}\) and edges \(e_1=v_1v_2\), \(e_2=v_2v_3\), and \(e_3=v_1v_3\). Then \(D_{K_3}=\begin{pmatrix} 0 &{} 0&{} 1\\ 1 &{} 0 &{} 0\\ 0 &{} 1 &{} 0 \end{pmatrix}\). Thus, minimize \(F(x_1,x_2,x_3)=x_1+x_2+x_3\) subject to the constraints \(x_1+x_3 > 0\), \(x_2 + x_3 > 0\), \(x_1+x_2 > 0\), \(x_1, x_2, x_3 \in \{0, 1\}\). Then F attains its minimum for \(x_1=0\), \(x_2=1\), and \(x_3=1\), hence \(W=\{v_2,v_3\}\) is an edge metric basis for \(K_3\).

4 Applications

In this section we demonstrate how the results from the previous sections can be applied to compute the edge metric dimension of interesting graphs.

Let \(G_1,\ldots ,G_k\) be rooted graphs with respective root vertices \(r_1,\ldots ,r_k\). The bridge-cycle graph \(BC(G_1,\ldots ,G_k; r_1,\ldots ,r_k)\) is the graph obtained from the disjoint union of \(G_1,\ldots ,G_k\) by joining the vertices \(r_i\) and \(r_{i+1}\) for all \(i\in [k-1]\) and adding the edge \(r_1r_k\), see Fig. 2.

Fig. 2
figure 2

The bridge-cycle graph \(BC(G_1,\ldots ,G_k; r_1,\ldots ,r_k)\)

If \(G_1=\cdots =G_k=G\) and \(r=r_1\), where G(r) is not a rooted path, then we infer that \(BC(G_1,\ldots ,G_k; r_1,\ldots ,r_k)\cong G(r)\sqcap C_k\). Theorem 2.3 then implies that

$$\begin{aligned} \mathrm{edim}(BC(G_1,\ldots ,G_k; r_1,\ldots ,r_k))=\mathrm{edim}(G(r)\sqcap C_k)=k\cdot \mathrm{edim}(G(r))\,. \end{aligned}$$

The examples from the rest of this section come from chemical graph theory. Consider first the (molecular) graph of truncated cube, it is denoted by \(\Gamma \) and drawn in Fig. 3.

Fig. 3
figure 3

\(W(U)\sqcap P_2=\Gamma \) where \(U=\{g_1,g_4,g_7,g_{10}\}\)

As the figure shows, \(\Gamma \) is isomorphic to the hierarchical product \(W(U)\sqcap P_2\) (see the figure for W), where \(U=\{g_1,g_4,g_7,g_{10}\}\). Then, by the proof of Theorem 2.2, \(S=\{g_1,g_6\}\times V(H) = \{(g_1,h_1),(g_1,h_2),(g_6,h_1),(g_6,h_2)\}\) because \(S^T(W) = S_W(U) = \{g_1,g_6\}\). Thus \(\mathrm{edim}^+(W(U))=2\), and so by (1), \(\mathrm{edim}(\Gamma )=\mathrm{edim}(W(U)\sqcap P_2)\le 4\). On the other hand, the exact value of \(\mathrm{edim}(\Gamma )\) computed by the ILPM from Sect. 3 is equal to 3. The black vertices from Fig. 3 form an edge metric bases of \(\Gamma \) found by the ILPM.

Continuing with examples from chemical graph theory, recall that a fullerene is a plane, 3-connected, cubic graph with only pentagonal and hexagonal faces. The literature on fullerenes is huge, see for instance [30] for more informations about their electronic and structural properties and the recent survey [3]. More generally, the term fullerene is also used for such graphs where other lengths of faces are present, cf. [31, 42]. For instance, the graph \((BN)_{16}\) from Fig. 4 is an example of a (4, 6)-fullerene.

Fig. 4
figure 4

(a) \(K_{1,3}(U)\sqcap P_2\) where \(\{u_1,u_2\}\) (b) \(W(U)\sqcap P_2\) where \(\{u_1,\ldots ,u_4\}\) (c) \(W'(U)\sqcap P_2\) where \(\{u_1,\ldots ,u_8\}\)

By Fig. 4 and Theorem 2.2, we have \(\mathrm{edim}(K_{1,3}(U)\sqcap P_2)\le 4\), \(\mathrm{edim}(W(U)\sqcap P_2)\le 4\), and \(\mathrm{edim}((BN)_{16})=\mathrm{edim}(W'(U)\sqcap P_2)\le 4\). On the other hand, using the ILPM from the previous section we get \(\mathrm{edim}(K_{1,3}(U)\sqcap P_2)= 2\), \(\mathrm{edim}(W(U)\sqcap P_2)= 2\), and \(\mathrm{edim}((BN)_{16})= 3\). The black vertices form the edge metric bases found by the ILPM.