Manuscript Offprint
arXiv:2610.27935Improved Approximation and Hardness Results for the Monitoring Edge-Geodetic Set Problem
Abstract
We study the Monitoring Edge-Geodetic Set problem (MEG-SET), which asks for a minimum-cardinality set M of vertices of an undirected graph G of n vertices such that every edge of G belongs to all shortest paths between some pair of vertices in M.
We present new approximation and hardness results for MEG-SET. On the positive side, we design a deterministic polynomial-time -approximation algorithm, improving upon the previously best-known approximation ratio. On the negative side, for every constant , we prove that the problem admits no polynomial-time -approximation algorithm, unless NP DTIME . This substantially improves upon the previously known logarithmic inapproximability bound. We also prove that MEG-SET is NP-hard on planar 2-degenerate graphs, whereas NP-hardness was previously known for 1-apex 2-degenerate graphs.
We conclude by observing a connection between monitoring edge-geodetic sets and subsetwise distance preservers, i.e., subgraphs that preserve distances between all pairs of vertices in . Specifically, we show that any upper bound on the size of the latter yields a lower bound on the size of the former.
2012 ACM Subject Classification Theory of computation → Design and analysis of algorithms
Keywords and phrases Monitoring edge-geodetic set, approximation algorithms, inapproximability results
1 Introduction
We study the problem of computing a minimum-cardinality monitoring edge-geodetic set of an input graph with vertices, where is a monitoring edge-geodetic set if every edge of belongs to all shortest paths between some pair of vertices in . We refer to this optimization problem as MEG-SET.
This problem was introduced in [11] in the context of network monitoring: the graph G represents a communication network and one wishes to equip a subset of hosts (represented by vertices) with probes that communicate with one-another and measure their pairwise distances. These probes must be suitably placed to detect link failures, i.e., the removal of any edge e of G must cause the distance between some pair of probes to increase. In other words, e is required to lie on all the shortest paths between at least one pair probes, and the objective is to minimize the number of necessary probes.
MEG-SET has received considerable attention, especially in the case of restricted graph classes, as we discuss in the sequel, while for general graphs it is known to be APX-hard and that, unless NP ZTIME( ), all polynomial-time approximation algorithms must have an approximation ratio in . On the positive side, a simple approximation
Improved Approximation and Hardness Results for MEG-SET
algorithm that reduces the problem to a set-cover can be used to obtain a -approximate solution in polynomial time. For the special case of planar graphs, the problem is -approximable although it is still open whether MEG-SET can be solved in polynomial-time in such graphs.
Our results. In this paper we show that MEG-SET is -approximable in polynomial time, improving over the only known approximation algorithm for general graphs, which has an approximation ratio of .
On the negative side, we prove that, unless NP DTIME(), MEG-SET does not admit any polynomial-time -approximation algorithm, for any constant . To the best of our knowledge, this is the first result ruling out the existence of polynomial-time approximation algorithms with polylogarithmic approximation factors (under the above assumption).
We also show that exact polynomial-time algorithms are unlikely to exist even in the special case of 2-degenerate planar graphs, since the problem remains NP-hard. This answers a question posed in [2], and improves over the previously known NP-hardness result for 2-degenerate 1-apex graphs [3].
Finally, we link the size of MEG-SET solutions to the number of edges needed to build a subsetwise distance preserver of G. This connection yields a novel lower bound on the size of monitoring edge-geodetic sets as a function of the number of vertices and edges of G.
Related work. The minimum monitoring edge-geodetic set problem was introduced in [11], where the authors studied the size of such sets in general graphs and in special graph classes including trees, cycles, unicyclic graphs, complete graphs, grids, and hypercubes. Subsequent work established bounds on the size of monitoring edge-geodetic sets for graph products. In particular, [13] considered Cartesian and strong products, while [21] studied joins and direct products. Bounds that are function of the graph's girth and chromatic number have been given in [9]. Further results concern convex polytopes and ladder, butterfly, circulant, and Benes networks [19], as well as radix triangular mesh networks and Sierpiński graphs [15].
The complexity status of the problem was studied by [13] which proved that MEG-SET is NP-hard on general graphs. Such hardness result holds even in for the special case of 2-degenerate 1-apex graphs [3], while the problem is APX-hard on 3-degenerate graphs [3, 10] and not approximable within any constant better than 2 if the unique games conjecture holds [3]. On general graphs, all polynomial-time approximation algorithms for MEG-SET must have an approximation ratio in , unless [2, 3]. Moreover, if the exponential time hypothesis [14] holds, MEG-SET cannot be solved in time on sparse 2-degenerate graphs, nor in time on sparse 2-degenerate 1-apex graphs [3].
On the positive side, polynomial-time algorithms are known for interval graphs, distance-hereditary graphs, -sparse graphs, bipartite permutation graphs, strongly chordal graphs [12], and chordal graphs [16]. The problem also admits FPT algorithms for general graphs parameterized by clique-width plus diameter, and for chordal graphs parameterized by treewidth [10].
As far as approximation algorithms are concerned, a reduction to SET COVER gives polynomial-time solutions of size , where is the optimum, and hence an -approximation [7, 1, 10]. Approximation algorithms are also known for graph classes that admit efficiently computable balanced vertex separators [2]. As a consequence,
A very recent preprint claims to have proven the unique games conjecture [17].
In [2], the latter condition was stated incorrectly. The full version [3] gives the correct statement.
MEG-SET is -approximable on -minor-free graphs with , on bounded-genus graphs, and on -apex graphs for . Moreover, it is -approximable on graphs with bounded treewidth.
Paper organization We start by giving some preliminary definition in Section 2. Section 3 presents our approximation algorithm for general graphs, while our inapproximability result is given in Section 4. Section 5 proves the NP-hardness of MEG-SET on planar graphs. Section 6 concludes the paper and shows how lower bounds on the size of monitoring edge-geodetic can be obtained from upper bounds on subsetwise preservers.
For two distinct vertices , let be the set of edges monitored by the pair . Thus, an edge is monitored by if and only if . When the underlying graph is clear, we simply write . For a set and an edge , we define the monitoring set of with respect to as the set of pairs of vertices in that monitor , that is, .
Monitoring edge-geodetic sets. A set is a monitoring edge-geodetic set if, for every , there is at least one pair of vertices in that monitors , that is for all . Given an unweighted graph , the MEG-SET problem asks to find a monitoring edge-geodetic set with the minimum number of vertices.
Without loss of generality, we assume that all instances of MEG-SET are connected graphs with at least one edge.
3 A polynomial-time -Approximation Algorithm for MEG-SET
In this section we give a -approximation algorithm for MEG-SET.
We start by presenting a randomized algorithm based on rounding the solution of a relaxed ILP that returns a set such that: (i) is a monitoring edge-geodetic set with positive constant probability, and (ii) has expected size , where is a minimum-cardinality monitoring edge-geodetic set. We then derandomize this algorithm using the method of conditional expectation, obtaining a deterministic algorithm returning a solution of size .
The ILP formulation resembles the one used to provide a similar randomized approximation algorithm for the MIN-REP problem in [6]. However, our analysis exploits structural properties specific to MEG-SET, which are crucial for derandomizing the algorithm without loss of quality. Derandomizing the algorithm of [6] without asymptotic loss of quality remains an open problem, and the best deterministic algorithm is given in [20].
Disconnected instances can be decomposed into one sub-instance per connected component. A graph with no edges trivially has the empty set as its only optimal solution.
Improved Approximation and Hardness Results for MEG-SET
Our deterministic algorithm is then combined with the known approximation of MEG-SET [7, 1, 10], to obtain the claimed result.
Algorithm description. We can think of a solution to MEG-SET as a set of vertices, together with a witness for each edge , namely some vertex pair in . Notice that, while there might be multiple pairs in that monitor , we require exactly one to be selected as 's witness. Consider the following ILP associated with an instance of MEG-SET:
minimize
subject to
The above formulation contains a decision variable for each vertex , which encodes whether is selected in the returned solution. Moreover, for each edge and all pairs , the decision variable encodes whether is 's witness. The first constraint ensures that exactly one witness is selected for each edge, while the second constraint ensures that if is a witness of some edge , then both and must be selected in the solution, i.e., the variables and are both set to 1.
Our algorithm computes an optimal solution to the relaxation of the ILP obtained by allowing all variables to take values in . Here, is the vector of vertex-selection variables, while is the vector of witness-selection variables.
Let . For a generic vector with , we denote with a set obtained by independently selecting each with probability . The algorithm returns .
Algorithm analysis. We now argue that, with probability at least , is a monitoring edge-geodetic set of having size .
Given a generic assignment to the variables and an edge , we define an edge-weighted auxiliary graph having as its vertex set, and containing an edge of weight for each pair . We also let be the spanning subgraph of that contains only edges of positive weight. We start by observing that all (and hence all ) are bipartite.
▶ Lemma 1. All auxiliary graphs are bipartite.
Proof. Fix an edge , and define and . Consider an edge of . Since monitors , there exists a shortest path from to in that traverses . If traverses from to , then and , showing that and . Symmetrically, if traverses from to , then and .
Then, every edge of has one endvertex in and the other in , hence the claim.
We now show that there exists an optimal solution such that all are forests, and that can be found efficiently from .
▶ Lemma 2. Given an optimal solution to the relaxation of the ILP, one can compute in polynomial time an optimal solution to the relaxation of the ILP guaranteeing that all , for , are forests.
Proof. Instead of directly proving the claim, we show the following: if contains a cycle, then there exists a procedure that efficiently finds another vector such that: (i) can only differ from on the values of the variables associated with ; (ii) is a feasible solution of the relaxed ILP; and (iii) has fewer edges than . Observe that (ii) implies the optimality of as the objective function only depends on . The claim follows by repeatedly applying the above procedure (no more than times).
Suppose then that contains a cycle . By Lemma 1, has some even length . Let be an edge of minimum weight in , let be the weight of , and let be the edges of , in some cyclic order starting from . The vector is obtained by subtracting from (resp. adding to) all the variables such that for an odd (resp. even) index . Then (i) holds by construction.
Observe that all affected variables remain non-negative. Moreover, since is even, the number of variables increased by equals the number of variables decreased by ; hence, their sum in coincides with their sum in . Therefore, the first constraint of the linear program remains satisfied (and shows that no variable in exceeds 1). Regarding the second constraint, observe that if a vertex is not part of , then the left-hand sum is unaffected. If is part of , then exactly two variables of the left-hand sum are affected: since the two edges of incident to have indices of opposite parity, one variable decreases by , while the other increases by . Hence, the total sum does not change and the second constraint is also satisfied. This proves (ii).
Finally, (iii) holds since is an edge of but not of , and only non-zero variables can have a different value in .
▶ Lemma 3. Let , and let be an optimal solution to the relaxation of the ILP such that is a forest. There exists a collection of vertex-disjoint stars contained in , each with at least one edge, such that .
Proof. By the first constraint of (the relaxation of) the ILP, the sum of all edge-weights of is 1.
Root each tree of in an arbitrary vertex. Partition the edges of into two sets and according to whether the parent endvertex lies at an even or an odd level in the containing tree. Then, the sum of the weights of the edges in at least one set must be at least . We select as the collection of stars induced by , where each star is centered in its vertex of lowest depth.
Fix some such that is an optimal solution to the relaxation of the ILP and, for each edge , let be a collection of vertex-disjoint star subgraphs of , each with at least one edge, such that . Denote by and by the center and the leaves of , respectively. For a vector where , define:
Given a set , we say that is covered by a star w.r.t. if there exists at least one edge in having both endpoints in . Notice that if an edge is covered by some star in w.r.t. , then is monitored by .
Improved Approximation and Hardness Results for MEG-SET
▶ Lemma 4. Fix an edge and a vector . The probability that is not covered by any star in w.r.t. is at most .
Proof. We say that an edge of is selected if both and are in . Observe that is covered iff at least one edge of some star is selected.
No edge of is selected exactly when one of the following two disjoint events happens: (i) , or (ii) and . Then, (i) happens with probability , and (ii) happens with probability , where we used the fact that vertices are added independently to .
Since the stars are vertex-disjoint, the events “ contains a selected edge” are independent. Hence, the probability that no star contains a selected edge is:
▶ Lemma 5. For every , .
Proof. Fix and use the previously defined collection , with centers and leaf sets . For each , let , and observe that and that .
To ease the notation, define so that .
Since is feasible, the second constraint gives and for every . We show that .
Suppose first that . If some leaf also has , then . Otherwise, for every , and . Then:
Suppose now that . Then and . If some leaf has , then: . Otherwise, for all and, from the subadditivity of the square root on nonnegative arguments, .
Using and the inequality for , we have:
which implies:
Hence, regardless of the case. Multiplying these upper bounds across all stars in and using yields:
The definition of coverage, Lemma 5, and the union bound yield the following:
▶ Corollary 6. With probability at least , is a monitoring edge-geodetic set of G.
Finally, we upper bound the expected size of the returned set :
▶ Lemma 7. .
Proof. The Cauchy-Schwarz inequality shows that, for non-negative , we have . Together with , this implies:
Corollary 6 and Lemma 7, together with Markov's inequality and the union bound already provide a randomized approximation-algorithm for MEG-SET. In detail, the probability that exceeds is at most , hence the algorithm has a probability of at least of returning a monitoring edge-geodetic set of size at most .
Moreover, since solutions can be checked in polynomial time, and we can test whether holds, we can repeatedly sample until we encounter a feasible solution that is not too large. This yields a Las Vegas algorithm that performs at most 4 trials in expectation.
Derandomization. We now derandomize the above algorithm. Our deterministic version of the algorithm solves the relaxed ILP to obtain an optimal solution and converts it to an optimal solution such that all are forests, as shown by Lemma 2. This allows to find a collection of stars of satisfying the conditions of Lemma 3, for each .
Then, instead of choosing by independently selecting each vertex with probability , it examines one vertex at a time and deterministically decides whether such a vertex will be included in the solution using the method of conditional expectations. Here excluding (resp. including) a vertex from (resp. into) the solution can be seen as forcing the corresponding variable to 0 (resp. 1) which forces to become 0 (resp. 1).
In the rest of this section we provide the details of this iterative selection step.
Fix an ordering and write . For a vector , let be the indicator function that equals 1 if no star in covers w.r.t. . Define and . Let be a vector of independent Bernoulli random variables where, has parameter . Using the definition of , Lemma 5, Lemma 7, and the linearity of expectation:
Consider some and some choice of with the constraint that whenever . Denote by the vector obtained from by replacing with for . Let denote the event , with being the certain event. Then, the following conditional expectation can be evaluated in polynomial time:
Improved Approximation and Hardness Results for MEG-SET
Our deterministic algorithm works iteratively for . When is considered, it permanently fixes variable to a value in such that . In detail, if , we simply choose . Otherwise, the law of total expectation gives:
Hence, at least one of the two conditional expectations on the right-hand side is at most . We evaluate both and choose the value of that yields the smaller conditional expectation, breaking ties arbitrarily.
Once all variables are fixed, we obtain a vector satisfying . Since every term of is nonnegative and each belongs to , this implies for every and , as shown by Lemma 7. Thus, the set has size at most and each edge is covered by some star w.r.t. , i.e., is a monitoring edge-geodetic set of . We have therefore shown the following:
▶ Lemma 8. There exists a deterministic polynomial-time algorithm for MEG-SET that returns a solution of size at most , where is an optimal solution.
The final approximation algorithm. By returning the smallest solution between the one provided by -approximation algorithm of Lemma 8, and the one resulting from the known -approximation algorithm based on set-cover [7, 1, 10], we obtain the main result of this section:
▶ Theorem 9. There exists a deterministic polynomial-time -approximation algorithm for MEG-SET.
Proof. Fix some integer and, for , let . The approximation ratio achieved by the above algorithm is at most , for some absolute constant . Since one term of the minimum is continuous and increasing in , while the other term is continuous and decreasing in , the choice of that maximizes is , as it satisfies . Therefore, .
4 Inapproximability of MEG-SET
In this section, we give a reduction from SYMMETRIC LABEL COVER showing that, for every constant , MEG-SET admits no polynomial-time -approximation algorithm, unless NP DTIME( ).
An instance of SYMMETRIC LABEL COVER consists of a complete bipartite graph with , two finite label sets and , and a nonempty relation for every . A feasible solution assigns a set to every and a set to every . For every in , there must exist and such that . The goal is to minimize . For , it is known that [5]:
▶ Theorem 10 ([5]). For every constant , SYMMETRIC LABEL COVER admits no polynomial-time -approximation algorithm, unless NP DTIME( ).


(b)
Figure 1 Part of the construction of from an instance . (a) The instance has and , with possible labels for vertices in and for vertices in . The three displayed edges are , , and , each annotated with its allowed label pairs. The edge is omitted for clarity. (b) The corresponding part of . Solid black lines represent the edges , , and . Blue lines represent paths of length five joining vertices representing labels to the corresponding vertices and . Dashed black lines represent paths of length five joining vertices representing label pairs .
Starting from I, we first construct a graph H and then combine several copies of H to obtain an instance G of MEG-SET.
The graph is built as follows. For each , we create vertices and and the edge . Let contain the edges for all . The edge will be monitored if at least one pair of labels assigned to and is in .
For every and every , we introduce a vertex representing the assignment of label to . Similarly, for every and every , we introduce a vertex representing the assignment of label to .
For each , we add a path of length 5 for every and a path of length 5 for every . For every pair that does not belong to , we also add a path of length 5. This provides a shorter connection between vertices representing labels assigned to and that are not in , preventing such pairs from monitoring . Figure 1 show three constraints of an instance and the corresponding part of .
We now construct . Let , set , and write for the set of integers from one to . Add vertex-disjoint copies of to , arranged in rows and columns. For every , we denote the corresponding copy of by . For each vertex of , its copy in is denoted by . Likewise, the copy of a path is denoted by . Let denote the copy of in , and let contain these edges for all and , i.e. .
Let consist of the vertices and for every , the vertices for every and , and the vertices for every and . Thus, contains the endpoints of the paths added to , but excludes their internal vertices.
To complete our construction of , we consider every and every , and we add a vertex and add a path of length 3 for every . Similarly, for every and every , we add a vertex and add a path of length 3 for every . These vertices connect the copies of along each row and each column.
For each , let contain all vertices and , as and range over . Let be the union of these sets over all . For every , we append a leaf to , and let be the set of these leaves.
Let contain all pairs of distinct vertices of for which some edge of is
Improved Approximation and Hardness Results for MEG-SET

Figure 2 Qualitative depiction of the graph . The shaded squares represent the copies , , , and , showing only the copies of three vertices . For each , the black lines joining to and to represent paths of length three. The small grey vertices are the leaves , each joined to its corresponding vertex by a single edge. Assuming , the red and brown curves indicate portions of the paths of length six between and ; the blue curves indicate portions of those between and . Only the ends of these coloured paths are shown. The remaining copies, the edges inside each copy, the internal vertices of the paths, and the other paths between vertices of are omitted for clarity.
moitored by . For every , every , and every , we add a path of length 6. These paths serve to prevent pairs of leaves in from monitoring the edges in . This completes the construction of . Figure 2 shows the connections between the copies of , the vertices of , and their leaves.
The next two lemmas establish the correctness of the reduction. Lemma 11 shows that the leaves in F monitor every edge outside , while Lemma 12 shows that any monitoring edge-geodetic set can be enlarged by a constant factor to include a compatible pair of labels for every edge in . Together, they allow us to transfer approximation guarantees from MEG-SET to SYMMETRIC LABEL COVER (up to constant factors).
▶ Lemma 11. Every edge in is monitored by a pair of vertices in .
Proof. Every path between distinct vertices of has length at least 6. Consequently, a path between two vertices of that traverses another vertex of has length at least 12.
Fix and . The concatenation of and forms a path of length 6 between and , while our construction adds no path between these two vertices of . Moreover, is the only copy of joined to both by the added paths of length 3. Any alternative path that does not contain vertices in , must include at least two paths of length 3 and at least one edge inside a copy of , and therefore has length at least 7. Therefore, the leaves and monitor every edge of the path obtained by concatenating , with , , and .
Next, fix , , and . The path has length 6. Any alternative avoiding other vertices of concatenates two paths of length three and at least one edge inside a copy of , and therefore has length at least 7. An alternative shortest path that contains a vertex in has length at least 12. Thus, is the unique shortest path, and and monitor all its edges. Together with the preceding case, this shows that every edge of G outside the copies of H is monitored by some pair of vertices in F.
It remains to consider the edges inside the copies of . Every such edge outside belongs to some copy of a of length 5. The path is the unique shortest path between its endvertices , since any alternative path containing vertices in has length at least 6, observing that it contains 2 paths of length at least 3 to exit and return into . Moreover, every alternative path that contains only vertices in contains at least a path of length 5 together with an edge. As this path contains no edge of , we have .
For every , the path from to that contains has length 11. Any alternative path including a vertex of has length at least 12. Next, observe that no path was added directly between these two vertices of , since . Finally, if alternative shortest path not including other vertices of existed, it would need to use the same two paths of length 3 and a path of length 5 inside , however their concatenation is not a shortest path.
Thus, and monitor every edge of . This applies to all introduced paths in , including those connecting incompatible pairs, and completes the proof.
▶ Lemma 12. Given a monitoring edge-geodetic set of , one can compute in polynomial time a set such that: (i) is a monitoring edge-geodetic set of ; (ii) ; and (iii) for every and every , there exists such that .
Proof. We first construct . Start with and add both endpoints of every introduced path containing an internal vertex of . Call this set . For every , fix one pair and for every , if or belongs to , add and . Let be the resulting set. Since is a subset of , it remains a monitoring edge-geodetic set of . This proves (i).
We next show (ii). A vertex of internal to an introduced path requires at most two additions to obtain the endpoints of that path. Such a path has at most one endpoint of the form or , so it can require at most two further additions. Thus, each vertex of adds at most 4 vertices to , proving (ii).
We now prove (iii). Fix and . If or belongs to , the required pair was added explicitly. Assume otherwise.
Choose two vertices of monitoring , and let be a shortest path between them. The endpoints of every subpath of containing also monitor this edge: otherwise, an equally short replacement avoiding it would contradict the choice of the original pair.
Let P be the subpath between the first and last vertices of Q that belong to or are copies of vertices of . Every endpoint of P inside a copy of H belongs to S. Indeed, if it is an endpoint of Q, it already belongs to M. Otherwise, the corresponding endpoint of Q is internal to an introduced path, and P starts or ends at an endpoint of that path. Both endpoints of that introduced path were added to S.
Consider the maximal subpath of containing and lying in , and denote its endpoints by and . Their corresponding pair belongs to , since a shortest path in not including would give an equally short replacement avoiding .
If continues outside this copy on both sides, the portion between the nearest vertices of on either side has length at least seven: it uses two paths of length three and . The added path of length six between these vertices contradicts shortestness.
Improved Approximation and Hardness Results for MEG-SET
Suppose that exactly one endpoint of lies in , and denote it by . This vertex belongs to and is neither nor . Starting from , the path traverses and leaves the copy through , then reaches a vertex . This requires at least six edges inside the copy and three further edges to reach . However, concatenating and gives a path of length 9 avoiding . This path is no longer than the corresponding subpath of , contradicting the fact that and monitor .
Consequently, lies entirely in , and both its endpoints belong to . Since their corresponding pair belongs to , there is a path of length 12 between them through avoiding . Their monitoring this edge therefore forces to have length at most 11.
Neither endpoint is or , so contains a full path of length 5 on each side of . These paths and the edge already account for 11 edges. Thus, its endpoints are and for some and . If , the introduced path of length 5 between them would be shorter. Hence , and both required vertices belong to .
We now use Lemmas 11 and 12 to show that a polynomial-time -approximation algorithm for MEG-SET would yield a polynomial-time -approximation algorithm for SYMMETRIC LABEL COVER, thereby proving the following theorem.
▶ Theorem 13. For every constant , MEG-SET admits no polynomial-time -approximation algorithm, unless NP DTIME( ).
Proof. Suppose that a polynomial-time -approximation algorithm for MEG-SET exists. Given a SYMMETRIC LABEL COVER instance I, construct G. Let be the cost of an optimal solution to I, and let be an optimal monitoring edge-geodetic set of G. Let contain F and, in every copy , the vertices corresponding to the labels selected by an optimal solution of I. By Lemma 11, edges outside are monitored by .
For every and every , the set contains vertices and with . Their path containing has length eleven. Any other path inside the copy uses at least three paths of length five, while any path leaving the copy has length at least twelve. Hence, this pair monitors . Thus, is a monitoring edge-geodetic set of , and .
Run the assumed algorithm on , obtaining a set with , where . By Lemma 12, we can compute in polynomial time a set such that (i) is a monitoring edge-geodetic set of ; (ii) ; and (iii) for every and every , there exists such that .
Choose a copy minimizing the number of vertices of of the forms and . Define to contain precisely those labels for which , and define analogously using . Property (iii) guarantees that is a solution for .
The cost of this solution equals the number of selected vertices of these two forms in . Since the copies are vertex-disjoint, the total number of such vertices belonging to across all copies is at most . The chosen copy contains no more than their average number, so .
Every monitoring edge-geodetic set contains all leaves of the graph [11], so . By construction, . Moreover, every feasible solution to the nonempty instance selects at least one label for a vertex in and one for a vertex in , and therefore . Using , , , and we obtain:

(a)

(b)
Figure 3 (a) The gadget used to replace a generic vertex of . The portions of the outher cycle containing vertices corresponding to port are marked in blue, green, and red. (b) The replacement for an edge conecting port of with port of . To reduce clutter, an edge labelled represents a path of length between its endvertices. The path used in the proof of Lemma 14 is highlighted in red. The vertices in the set used in the proof of Lemma 15 are shown in bold. The bold edges provide shortest paths from to the vertices in .
It remains to verify the size and running time of the reduction. The graph has vertices and edges, while . Hence and . The copies of and the added paths contribute vertices and edges in total, including the vertices in and their leaves, since all path lengths are constant. The set can be computed by testing whether deleting an edge of increases the distance between a pair of vertices of .
Thus both building the MEG-SET instance, and recovering from a solution require polynomial time. Since , the approximation ratio obtained for SYMMETRIC LABEL COVER is at most . For sufficiently large , this contradicts Theorem 10, applied with , unless .
5 NP-hardness of MEG-SET on Planar Graphs
In [2], it was shown that MEG-SET is NP-hard on 1-apex graphs, and the complexity of MEG-SET on planar graphs was explicitly left as an open problem. In this section, we show that the problem remains NP-hard even in this case.
We give a reduction from the vertex cover problem restricted to cubic planar graphs (VC3P for short), which is known to be NP-hard [8]. Let be an instance of VC3P with and a consider a straight-line planar embedding of (such an embedding can be found in polynomial time [18]). For each vertex , we designate three ports, labeled 0, 1, 2 in clockwise order around , to which its incident edges are attached. Each edge connects a port of with a port of , and each port is connected to exactly one edge.
Our instance of MEG-SET is obtained by local replacements of the vertices and of the edges of . More precisely, we replace each vertex of with the gadget shown in Figure 3 (a). This gadget is a planar graph containing an outer cycle of 18 vertices. The vertices encountered at every third position are named , and , in clockwise order. A center vertex is connected to each (resp. ) by a path of length 4 (resp. 2). To lighten the notation, we write in place of so that coincides with and coincides with . Each of for is connected to a leaf via the edge . Vertices , and correspond to the -th port of . We denote by the set of vertices of 's gadget. Each edge of is replaced by three paths in , as shown in Figure 3 (b). In particular, if is connected to port of and port of , then contains:
Improved Approximation and Hardness Results for MEG-SET

Figure 4 Left: the graph G of an instance of vertex cover. Right: the graph H obtained by applying our reduction to G. Vertex gadgets have a gray background.
(i) a path from to of length 10, (ii) a path from to of length 10, and (iii) a path from to of length 10. We refer to the path in (i) as a t-path and to the paths in (ii) and (iii) as b-paths. We denote by the set of internal vertices of the b- and t-paths connecting u and v, and by L the set of all vertices of degree 1 in H. Figure 4 shows the graph H obtained by applying the above construction to a small graph G.
▶ Lemma 14. If is a vertex cover of then is a monitoring edge-geodetic set of .
Proof. For a vertex , the unique shortest path in from to follows a portion of the outer cycle of 's gadget that contains and has length 6. Hence, all edges in the unique shortest path from to are monitored by . Thus, all edges incident to vertices in and all edges of the outer cycles in the vertex gadgets are monitored by .
All edges of that belong to some -path with endverices and for some choice of and , are monitored by the pair .
For a generic edge connecting port of vertex to port of vertex , define as the path obtained by concatenating: (i) the shortest path from to of length 4 in 's gadget, (ii) the shortest path from to of length 2 in 's gadget, (iii) the -path from to of length 10, (iv) the shortest path from to of length 2 in 's gadget, and (v) the shortest path from to of length 4 in 's gadget. See Figure 3 (b).
Observe that all edges that we have not already shown to be monitored belong to some path . Hence, it suffices to show that all edges on are monitored. Assume w.l.o.g. that , which implies . The edges in subpath (i) of are monitored by , while the remaining edges of are monitored by . To see the latter, notice that the concatenation of the subpath of from to with the edge has length 19. Since any simple path containing at least one vertex not in has length at least 20, we can consider the subgraph of induced by . In such a subgraph, all paths from to have a length of at least (see Figure 3 (b)).
▶ Lemma 15. Let be a monitoring edge-geodetic set of . Then, for every , the set intersects at least one of , , and .
Proof. For , let . Let and be such that connects port of vertex to port of vertex in . Let be the first edge on the shortest path connecting to in 's gadget. Let .
Suppose, for a contradiction, that does not intersect any of , , and . Since , we have .
Let be a pair of vertices that monitors in , let be any shortest path from to , and assume w.l.o.g. that encounters before . Let be the first vertex of traversed by the subpath of from to (such a vertex must exist: and , while and is disconnected from in ). The pair monitors , and the subpath of from to is a shortest path in that contains only vertices in the subgraph . Then, all shortest paths from to in must traverse . This is contradictory since, for every , there is a shortest path in from to such that avoids (see Figure 3 (b)).
▶ Theorem 16. MEG-SET is NP-hard even when instances are restricted to planar graphs with degeneracy 2 and maximum degree 6.
Proof. By construction, . We show that admits a vertex cover of size at most if and only if has a monitoring edge-gedetic set of size at most .
By Lemma 14, if there exists a vertex cover of of size at most , then is a monitoring edge-geodetic set of of size at most .
Suppose now that there exists a monitoring edge-geodetic set of of size at most . Observe that since a leaf vertex must necessarily belong to for its sole incident edge to be monitored.
We build a set in two steps: (i) for each vertex such that intersects , we add to ; (ii) for each edge such that intersects , we choose one vertex and add to (if is already in , we do nothing). By Lemma 15, for every edge , contains at least one of and . Indeed, if , then by step (i); if , then by step (i); and if , then some belongs to by step (ii). Hence, is a vertex cover for . Moreover, the sets for and the sets for partition . Each set in this partition that intersects contributes at most one vertex to , while the other sets contribute 0. Therefore, .
The claim follows by observing that the graph H has maximum degree 6, and that deleting all vertices of degree at most 2 results in a graph with no edges.
6 Lower Bounds via Subsetwise Distance Preservers
In this section, we relate monitoring edge-geodetic sets to subsetwise distance preservers and use this connection to derive lower bounds that depend on the density of the input graph.
Let be a graph and let . A spanning subgraph of is a pairwise distance preserver of w.r.t. the pairs if for every . If for some , then is called a subsetwise distance preserver of w.r.t. .
▶ Lemma 17. Let M be a monitoring edge-geodetic set of . The only subsetwise distance preserver of G w.r.t. M is G itself.
Improved Approximation and Hardness Results for MEG-SET
Proof. Let be a subsetwise distance preserver of w.r.t. . By definition we have and , so it suffices to show that . Focus on a generic edge . Since is a monitoring edge-geodetic set, there exists a pair that monitors in . Then, every shortest path from to in contains . Since preserves the distance between and , we must have .
▶ Corollary 18. Let be a function such that, for any graph with vertices and any , there exists a subsetwise distance preserver of w.r.t. with at most edges. Then, every very monitoring edge-geodetic set of a graph with vertices and edges has size at least .
Proof. Let be a graph with vertices and edges, and let be any monitoring edge-geodetic set of . By the assumption on , there exists a subsetwise distance preserver of w.r.t. with at most edges. By Lemma 17, this preserver must be itself, so . Therefore, by the definition of .
Bodwin and Vassilevska Williams [4] proved that graphs with vertices admit pairwise distance preservers w.r.t. with edges, and hence subsetwise distance preserves w.r.t. with edges. Combining their result with Corollary 18 gives the following lower bound:
▶ Theorem 19. All monitoring edge-geodetic sets of an n-vertex, m-edge graph contain vertices. In particular, if , then .
Proof. From [4], we know that all graphs with vertices admit subsetwise preservers w.r.t. of size at most , for some constant .
Hence, Corollary 18 shows a lower bound on the size of a monitoring edge-geodetic set for graphs with vertices and edges of at least the minimum integer that satisfies . Then, , or (possibly both). Hence or , which implies the claim.
Generative AI Disclosure. Generative AI tools were used to assist with language editing and improving the clarity of the manuscript. All scientific content, mathematical results, and proofs were developed, reviewed, and verified by the authors, who take full responsibility for the final manuscript.
References
1 Davide Bilò, Giordano Colli, Luca Forlizzi, and Stefano Leucci. On the inapproximability of finding minimum monitoring edge-geodetic sets (short paper). In Ugo de'Liguoro, Matteo Palazzo, and Luca Roversi, editors, Proceedings of the 25th Italian Conference on Theoretical Computer Science, Torino, Italy, September 11-13, 2024, volume 3811 of CEUR Workshop Proceedings, pages 219–224. CEUR-WS.org, 2024. URL: https://ceur-ws.org/Vol-3811/paper110.pdf.
2 Davide Bilò, Giordano Colli, Luca Forlizzi, and Stefano Leucci. On the (In)Approximability of the Monitoring Edge Geodetic Set Problem. In Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung Tsai, editors, 36th International Symposium on Algorithms and Computation (ISAAC 2025), volume 359 of Leibniz International Proceedings in Informatics (LIPIcs), pages 14:1–14:19, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ISAAC.2025.14, doi:10.4230/LIPIcs.ISAAC.2025.14.
3 Davide Bilò, Giordano Colli, Luca Forlizzi, and Stefano Leucci. On the (in)approximability of the monitoring edge geodetic set problem. CoRR, abs/2507.00708, 2025. URL: https://doi.org/10.48550/arXiv.2507.00708, arXiv:2507.00708, doi:10.48550/ARXIV.2507.00708.
4 Greg Bodwin and Virginia Vassilevska Williams. Better distance preservers and additive spanners. In Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, pages 855–872. SIAM, 2016. doi:10.1137/1.9781611974331.ch61.
5 Robert D. Carr, Srinivas Doddi, Goran Konjevod, and Madhav Marathe. On the red-blue set cover problem. In Proceedings of the Eleventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '00, page 345–353, USA, 2000. Society for Industrial and Applied Mathematics.
6 Moses Charikar, MohammadTaghi Hajiaghayi, and Howard Karloff. Improved approximation algorithms for label cover problems. In Amos Fiat and Peter Sanders, editors, Algorithms - ESA 2009, pages 23–34, Berlin, Heidelberg, 2009. Springer Berlin Heidelberg.
7 Giordano Colli. Monitoring graph edges via shortest paths: computational complexity and approximation algorithms. Bachelor's thesis, December 2023. Publicly accessible version: https://arxiv.org/abs/2506.12021. URL: https://hdl.handle.net/20.500.12319/14489.
8 Yefim Dinitz, Matthew J. Katz, and Roi Krakovski. Guarding rectangular partitions. International Journal of Computational Geometry and Applications, 19(6):579–594, 2009. doi:10.1142/S0218195909003131.
9 Florent Foucaud, Clara Marcille, Zin Mar Myint, R. B. Sandeep, Sagnik Sen, and S. Taruni. Bounds and extremal graphs for monitoring edge-geodetic sets in graphs. Discrete Applied Mathematics, 366:106–119, 2025. doi:10.1016/j.dam.2024.12.032.
10 Florent Foucaud, Clara Marcille, R. B. Sandeep, Sagnik Sen, and S. Taruni. Algorithms and complexity for monitoring edge-geodetic sets in graphs. Inf. Comput., 312:105460, 2026. URL: https://doi.org/10.1016/j.ic.2026.105460, doi:10.1016/J.IC.2026.105460.
11 Florent Foucaud, Krishna Narayanan, and Lekshmi Ramasubramony Sulochana. Monitoring edge-geodetic sets in graphs. In Amitabha Bagchi and Rahul Muthu, editors, Algorithms and Discrete Applied Mathematics, pages 245–256, Cham, 2023. Springer International Publishing.
12 Florent Foucaud, Arti Pandey, and Kaustav Paul. Characterizing optimal monitoring edge-geodetic sets for some structured graph classes. Discret. Appl. Math., 389:92–105, 2026. URL: https://doi.org/10.1016/j.dam.2026.03.048, doi:10.1016/J.DAM.2026.03.048.
13 John Haslegrave. Monitoring edge-geodetic sets: Hardness and graph products. Discret. Appl. Math., 340:79–84, 2023. doi:10.1016/j.dam.2023.06.033.
14 Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? J. Comput. Syst. Sci., 63(4):512–530, 2001. URL: https://doi.org/10.1006/jcss.2001.1774, doi:10.1006/JCSS.2001.1774.
15 Rongrong Ma, Zhen Ji, Yifan Yao, and Yalong Lei. Monitoring-edge-geodetic numbers of radix triangular mesh and sierpiński graphs. Int. J. Parallel Emergent Distributed Syst., 39(3):353–361, 2024. doi:10.1080/17445760.2023.2294369.
16 Clara Marcille and Nacim Oijid. An algorithm for monitoring edge-geodetic sets in chordal graphs. In Florent Foucaud and Aline Parreau, editors, Combinatorial Algorithms - 37th International Workshop, IWOCA 2026, Clermont-Ferrand, France, June 8-11, 2026, Proceedings, volume 16587 of Lecture Notes in Computer Science, pages 442–455. Springer, 2026. doi:10.1007/978-3-032-27732-9_31.
17 OpenAI. The Unique Games Theorem. OpenAI Math Release preprint, 2026. URL: https://github.com/openai/math/blob/main/preprints/The-Unique-Games-Theorem-September-23-2026/paper.pdf.
18 Walter Schnyder. Embedding planar graphs on the grid. In Proceedings of the first annual ACM-SIAM symposium on Discrete algorithms, pages 138–148, 1990.
19 Ao Tan, Wen Li, Xiumin Wang, and Xin Li. Monitoring edge-geodetic numbers of convex polytopes and four networks. Int. J. Parallel Emergent Distributed Syst., 38(4):301–312, 2023. doi:10.1080/17445760.2023.2220143.
Improved Approximation and Hardness Results for MEG-SET
20 Sumedh Tirodkar and Sundar Vishwanathan. On the approximability of the minimum rainbow subgraph problem and other related problems. Algorithmica, 79(3):909–924, 2017. URL: https://doi.org/10.1007/s00453-017-0278-4, doi:10.1007/S00453-017-0278-4.
21 Xin Xu, Chenxu Yang, Gemaji Bao, Ayun Zhang, and Xuan Shao. Monitoring-edge-geodetic sets in product networks. Int. J. Parallel Emergent Distributed Syst., 39(2):264–277, 2024. doi:10.1080/17445760.2024.2301929.