Manuscript Offprint
arXiv:2611.05878Improved Bounds on Distance Preservers
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Given an undirected unweighted graph on vertices and a set of pairs of its vertices, a distance preserver is a sparse subgraph of that exactly preserves the shortest-path distances between all pairs in . In this paper, we prove a new upper bound of for distance preservers when . Our result improves the previous bound of by Bodwin and Vassilevska Williams and by Coppersmith and Elkin, particularly in the regime , and narrows the gap toward the conjectured bound.
Using the techniques developed for distance preservers, we are also able to obtain pairwise additive +2 spanners with edges, pairwise additive +4 spanners with edges, and new bounds for sourcewise spanners, improving upon previous results in certain parameter regimes.
*National University of Singapore, Singapore. Email: yanyu.chen@u.nus.edu.
†National University of Singapore, Singapore. Email: yu.chen@nus.edu.sg.
‡University of Minnesota Twin Cities, MN, USA. Email: ztan@umn.edu.
§National University of Singapore, Singapore. Email: myangat@u.nus.edu.
Contents
1 Introduction 2
2 Technical Overview 5
3 Preliminaries 8
4 Warm-up: the Edge-Disjoint Case 9
4.1 Completing the Proof ..... 10
4.2 Growth of Local Neighborhoods ..... 11
4.3 Proof of the Covering Lemma ..... 12
5 Technical Lemmas 13
5.1 Basic Tools ..... 14
5.2 Loyal Edges with Bounded Conflict ..... 16
5.3 Greedy Clustering and Partial Set Cover ..... 18
5.4 Proof of Lemma 10 ..... 18
5.5 Proof of Lemma 11 ..... 19
6 Proof of Theorem 1 20
6.1 Edge Removal Under Demand Deletion ..... 21
6.2 Induction and Fixed Parameters ..... 22
6.3 Demand Removal Procedure ..... 23
6.4 Closing the Induction ..... 25
7 Pairwise Additive +2 Spanners 25
7.1 Hitting Sets and Additive +2 Error ..... 26
7.2 Hitting Sets for Long Demands ..... 27
7.3 Demand Removal and the Final Spanner ..... 28
8 More Results on Additive Spanner Bounds 30
8.1 Two common reductions ..... 30
8.2 Pairwise and source-sensitive bounds ..... 32
8.3 Complete sourcewise bounds ..... 34
A Remaining Proofs 38
The goal is to determine its worst-case existential bound as a function of and , namely the minimum worst-case number of edges that always suffices for a distance preserver.
As a central object in graph sparsification/compression introduced by Coppersmith and Elkin [CE06], distance preservers have been studied extensively. By definition, for a graph and a set of demand pairs, a distance preserver for is essentially the union of, for each pair in , a shortest path in connecting them. The focus is how to choose these shortest paths, which we call a tie-breaking scheme. Coppersmith and Elkin [CE06] showed that a basic property a tiebreaking scheme can have is consistency, meaning that the intersection of any two chosen shortest paths is either empty or a subpath of both. With this property, they derived the size bound . When , their bound is and is clearly optimal. The remaining interesting regime is when .
A major advance was obtained by Bodwin and Vassilevska Williams [BW21]. They showed that consistency alone is not sufficient to obtain the optimal bound: there are consistent tie-breaking schemes whose unions achieve the Coppersmith-Elkin bound, but a different choice of shortest paths can be polynomially better. With further investigation on how the chosen shortest paths may branch with each other, they improved the upper bound to , which remained the best upper bound to date. Furthermore, they conjectured that it could be . In other words, in the regime , the bound is conjectured to be , instead of only .
In this work, we make progress towards proving their conjecture. Our result can be summarized as the following theorem.
Theorem 1. Let be any -node undirected unweighted graph and let be any set of demand pairs with . Then admits a distance preserver of edges.
Compared with previous results in [CE06] and [BW21], our bound achieves an improvement in the regime . See Figure 1 for comparison.

Figure 1: Comparison between our results and previous work.
Applications to additive spanners. Our techniques also yield new bounds for pairwise and source-wise additive spanners. A pairwise additive spanner for is a subgraph satisfying for every . For arbitrary demand pairs, we obtain a spanner with edges for all , and a spanner with edges when . We further obtain bounds that exploit a restricted source set: when and , a common sampling reduction from our exact-preserver bound gives , and spanners whose sizes depend jointly on , and . When all reachable pairs in are demanded, an additional clustering reduction gives stronger complete-sourcewise guarantees. Table 1 summarizes these bounds, together with a further sourcewise consequence of the classical exact-preserver bound.
Comparison with previous bounds. We compare with the exact-preserver bound of [CE06], Bodwin's logarithm-free , and bounds [Bod22], and classical all-pairs spanners [EP04, Che13, BKMP10]; the all-pairs bound is [Che13]. The sourcewise comparisons additionally use [KV15, Par14, Kav17]. We include the consequences of applying the same sampling reductions to the classical exact-preserver bounds of [CE06, BW21], as well as consequences of the subsetwise and rectangular bounds in [Bod22, Kav17]. In particular, for pairwise and for complete-sourcewise are classical-input consequences, not bounds stated explicitly in [CE06]. All comparisons include an additive term and take the minimum of the applicable constructions.
Related Work. Distance preservers have also been studied in many related forms. Bollobas, Coppersmith, and Elkin studied sparse -preservers and their connection to additive spanners [BCE05]. Bodwin studied the linear-size regime, directed and weighted variants, large- behavior, and lower bounds for subset preservers [Bod21]; related shortest-path structure, including unique shortest-path systems, was further investigated in [Bod19]. Pairwise spanners and approximate preservers, where one allows multiplicative or additive error on the pairs in , have been studied in [CGK13, KV15, Kav17, AB16, AB17, ABP17, Nei24]. Special graph families and graph-metric compression have motivated distance-preserving subgraphs and emulators for planar graphs, interval graphs, and terminal metrics [AGMW18, CGMW18, GR17, EFN17]. Fault-tolerant distance preservers, which must preserve distances after edge or vertex failures, have been developed in [PP13, Par15, BGPW17, GK17, BCPS20, BP23, Par20, PP25]. Distance preservers also appear in or near the toolkit of distance oracles, additive spanners, hopsets, shortcut sets, and metric compression [Pet09, BW15, EP16, KP22, KP25, HXX25]. Finally, optimization and algorithmic versions of finding minimum-size or minimum-weight preservers have begun to receive attention [AYM20, SSV26].
Organization. The remainder of the paper is organized as follows. In Section 2, we start by providing an overview of our techniques. In Section 3, we present some formal definitions and important tools from previous work. Then in Section 4, we focus on a special case where the paths chosen by the tie-breaking scheme are edge-disjoint and show an upper bound of . In Section 5, we establish the technical lemmas needed to handle shared edges in the general case. In Section 6, we combine these lemmas with an iterative demand-removal procedure to prove our main distance-preserver theorem. In Section 7, we adapt our framework to obtain the pairwise additive spanner bound. Finally, Section 8 presents further results on pairwise and sourcewise additive spanners.
| Error | Previous bounds | Our bound | Range | Improvement range | Result |
|---|---|---|---|---|---|
| Pairwise: arbitrary | |||||
| +2 | All | Theorem 27 | |||
| +4 | Theorem 36 | ||||
| Partially specified sourcewise: | |||||
| +2 | Theorem 37 | ||||
| +4 | Theorem 37 | ||||
| +6 | Theorem 37 | ||||
| Complete sourcewise: | |||||
| +4 | Theorem 40 | ||||
| +6 | All | Corollary 41 | |||
| +6 | Theorem 40 | ||||
Table 1: Additive spanner bounds, where , , and . Each entry denotes edges, with polylogarithmic factors suppressed in the previous bounds. Previous bounds are simplified on the range in the same row. For partial demands, write and , with and ; every inequality in a cell must hold. Improvement means strict polynomial improvement over the previous bounds for fixed exponents, and does not compare different new rows against one another.
2 Technical Overview
In this section, we provide a high-level overview of our techniques for proving Theorem 1.
The Bodwin-Williams framework
We start by reviewing the approach of proving the bound in [BW21]. The central notion in their analysis is branching events. Given a tie-breaking scheme , a branching event occurs when two selected paths enter the same vertex through two different incoming edges. Coppersmith and Elkin [CE06] showed that if has branching events, then its distance preserver contains edges. Therefore, the goal is to prove better bounds for .
Bodwin and Williams showed that beyond consistency, a basic property of tie-breaking schemes requiring that any pair of selected paths share a (possibly empty) common subpath, we can also utilize edge essentiality, where each edge is essential to some demand pair in the sense that its removal will strictly increase the distance between this pair (note that if an edge is not essential to any pair, we can remove such an edge, only decreasing the size of the preserver). We say that an edge supports a demand pair if it is essential to it. Bodwin and Williams showed that, if many demand pairs are supported by a cluster of vertices that are close (at distance at most ) to each other, then these demand pairs can be handled together economically, using edges.
This bound is then used iteratively. If the current preserver has average degree at least , then one can find a vertex of degree- neighbors, namely a constant-diameter cluster of vertices that supports demand pairs. Handling these pairs requires edges. Remove those demands and repeat the process until the remaining graph has average degree at most .
In the range , the main bottleneck is the term. As each round handles roughly demands, this accumulates to . Balancing this with the leftover edges in an average-degree- graph gives and hence the term in their bound.
Their framework is nice and clean, but also leaves some room for improvement: if we can manage to handle more than demands in one neighborhood, we will be able to improve the bound.
Warm-up: the edge-disjoint case
We now describe our approach in a special case with the following simplifying assumptions.
-
there is a unique shortest path for each demand pair, and these paths are edge-disjoint; and
-
the degrees of all vertices are roughly the same, around , the average degree.
Clearly, in this case each edge is essential to the only demand pair whose shortest path contains .
We follow the same framework of Bodwin-Williams: find many demand pairs supported by a group of close vertices and handle them together. The main difference is: instead of only looking at constant-diameter neighborhoods of vertices, we explore neighborhoods with larger diameter, and the goal is to handle more than demand pairs in a single round.
On the surface, it is unclear that increasing the diameter will help at all. Consider the BFS tree from any vertex: it seems possible that each level contains vertices (so the growth is linear) and between consecutive levels there is a bi-clique between them, and all these edges come from the shortest paths of merely demand pairs passing through this neighborhood.
However, we show that this cannot happen. Let be a radius parameter. Consider any vertex . Since (we have assumed that) it has degree and all its neighbors have degree , the set of demand pairs supported by its neighbors has size at least . Consider now the radius- ball of : the shortest path of each of these demand pairs contributes a length- subpath inside the ball. Since the paths are edge-disjoint, this gives local edges in the ball. On the other hand, since these demands are supported by the neighbors of , applying the BW bound to this neighborhood, we get that the number of local edges is at most . Comparing with the lower bound (and assuming ), we get that
Therefore, the neighborhood growth of any vertex cannot be linear, but at least quadratic.
As a consequence, the -neighborhood contains edges. Since each demand pair contributes edges in this neighborhood (between the first and last time a shortest path touches the ball, the path segment has length at most ), the -neighborhood supports at least demands, which is more than !
Applying the BW bound to handle all these demand pairs while balancing the other terms gives an advantage over the bound. Moreover, it seems that the larger we take, the greater advantage we will gain. However, there is one place in the discussion above that is not sufficiently rigorous: the shortest paths for the demands in may contribute fewer than edges, as some of them may be simply shorter than themselves. Luckily, these “short demands” can be handled separately and cheaply, with at most edges per demand. We will consequently incur an additional term in the distance preserver size bound. Re-balancing all of them, we can prove a bound of , “half-way” between the Bodwin-Williams bound and their conjectured bound.
We present the details for this warm-up case in Section 4. Remark: the second simplifying assumption (all vertices have degree around ) is only for the purpose of technical overview; in Section 4 we can get rid of this assumption with some standard techniques.
Handling edge sharing: the general case
The edge-disjoint assumption is quite powerful since it implies the quadratic growth of any neighborhood, which is also the first thing we lose when the assumption is removed: the set of demand pairs may share edges in their shortest paths, and so the local -neighborhood is no longer guaranteed to contain edges, and the remaining analysis falls apart with it.
Therefore, in order to revive the analysis in the edge-disjoint case, it is instructive to first segregate the “edge-disjoint portion” of the shortest paths. This brings us to the first central notion: loyal edges.
Step 1: Loyal edges, and the assumption that most edges are loyal
Recall that every edge is essential: removing the edge will strictly increase the distance between some demand pair. If an edge is essential to only one demand pair, then this edge is its “private property”, and therefore the “edge-disjoint portion”. In fact, we can be more aggressive here: we say that an edge is loyal if it is private and both and are incident to at least other private edges (in this case we say both and are rich), where is the average degree of the graph.
Although we cannot assume that all edges are loyal, it turns out that we only need to consider the case where most edges are loyal. This is because, intuitively
-
if a demand pair possesses few private edges, then it can be ignored (after the other demands are handled, we can return to handle them cheaply by adding only their private edges); therefore we can assume that most demand pairs possess many private edges, and so most edges are private; and
-
we then perform the following pruning: start with the subgraph induced by private edges (such a graph has average degree ), and repeatedly remove vertices with degree . Eventually, the total number of removed edges is below , a small fraction of the private edges, and so in the remaining graph, all vertices are rich and all edges are loyal.
For the purpose of technical overview, we will make yet another simplifying assumption: every vertex is incident to loyal edges and is therefore rich. With this simplification, the remaining analysis will be centered around loyal edges. For a vertex and a radius parameter , we define as the set of all demand pairs that possess a loyal edge within the -neighborhood of . From now on, our goal is to show that there exists some vertex with significantly greater than .
Let be a parameter to be determined later. The goal is to find a vertex such that . Assume towards contradiction that for every . The remainder of the proof consists of two steps: show that there is a large set of loyal edges, with every pair of them belonging to the same demand pair staying far from each other; and then show that there exists some small neighborhood that captures many edges in this set and therefore touches many distinct demand pairs.
Step 2: Finding a dispersed set of loyal edges
By similar arguments, we can first derive that every radius- neighborhood contains vertices. This is since (i) any demand contributes only loyal edges incident to a radius- ball, and so the total number of loyal edges in such a ball is ; and (ii) each vertex is incident to loyal edges.
This neighborhood size bound implies a bound on the number of local loyal edges. Consider a vertex . Let be the set of loyal neighbors of , and let be the set of demands that own a loyal edge incident to a vertex in . By the Bodwin-Williams bound, handling these demands costs
edges. Since , , and , summing over all vertices with Cauchy-Schwarz inequality, we get that .
Let be the set of all loyal edges. For a loyal edge , define
Note that if loyal edges of the same demand pair lie within distance from each other, then is forced to appear in the local preserver (that is, contributes 1 to all ) for all vertices adjacent to an endpoint of . Since all vertices are rich, each such supplies such vertices, and so
We now find a dispersed family of loyal edges. For each demand , form a conflict graph on the loyal edges owned by , joining two such edges if their distance in is at most . An independent set in
In Section 5, what we actually select is a set of loyal edges such that each selected edge is close to few other selected edges; for the purpose of this technical overview, we just assume that each selected edge is close to no other selected edges, hence the “independent set”.
this graph is a set of loyal edges owned by that are pairwise farther than . Applying the Caro–Wei bound to each demand separately and then using Cauchy–Schwarz, we obtain a set such that no two edges of with the same owner are within distance , and
using .
Step 3: Capturing many loyal edges in a neighborhood
In graph , choose centers greedily so that distinct centers are at least apart; assign all vertices in to , and assign every remaining vertex to a center within distance , so every center hosts a cluster with diameter . Since every vertex has loyal degree , . Since the radius- balls of all centers are disjoint, the number of clusters is at most .
Consider now the separated set of edges computed in Step 2. By the pigeonhole principle, there must be some cluster that contains many selected loyal edges
Since the edges in are within distance from each other, from the property of set , each edge belongs to a distinct demand pair. Therefore, the center sees distinct demand pairs in its -neighborhood. Balancing this with the assumption that holds for all by taking , we get that there exists a vertex with
Although this is worse than the bound in the edge-disjoint case, we still manage to achieve the goal of discovering demands in a small neighborhood, which is enough for an improvement over the Bodwin-Williams bound.
3 Preliminaries
Let be an undirected unweighted simple graph with . For each node , let be its set of neighbors, and let denote the shortest-path distance between and . For , we use to denote the diameter in .
For , define the radius- neighborhood ; in particular, . The radius- edge neighborhood is .
Let be a set of unordered vertex pairs, called a demand set, and write . We assume demands are reachable between two distinct vertices.
Minimal Distance Preservers. We say a distance preserver of is minimal if, for every , the subgraph by deleting is not a distance preserver of . The minimality satisfies the following properties.
Lemma 2 ([CE06]). Given an -vertex graph and a set of demand pairs, every minimal distance preserver of has edges.
Lemma 3 ([BW21]). Let be nonempty, with and , and let be the demand set of size . For every minimal distance preserver of ,
We can further generalize Lemma 3 by a slight modification of the proof in [BW21]. For completeness, we give the proof in Section A.
Lemma 4 (Adapted from [BW21]). Let be nonempty, with and bounded , and let be the demand set of size . For every minimal distance preserver of and every of size , the subgraph of induced by has edge size
Essential Edges. An edge is essential to in if every shortest path in contains . Define
We say that each demand in requires , and write when are clear. Minimality implies that every edge has . Otherwise, all demands would retain shortest paths after deleting that edge. A demand-label is any member of .
Node Cover of Demands. Let be a minimal distance preserver of . A node covers a demand if it is incident to an edge essential to , that is, . In particular, every shortest path for in contains . A set covers if, for every , some vertex of covers .
4 Warm-up: the Edge-Disjoint Case
In this section, we consider a minimal distance preserver in which the demands can be connected by edge-disjoint shortest paths. We follow the same approach as in the general case: find many demands covered by a small set of nearby vertices, bound the number of edges needed for these demands, and remove them. The edge-disjoint assumption makes both the local counting argument and the demand-removal procedure simpler.
Theorem 5. Let be an -vertex undirected unweighted graph and let be a set of demand pairs, where . Let be a minimal distance preserver of . Suppose that contains one shortest path for each demand in , with these paths mutually edge-disjoint. Then
Fix such paths and denote the path for a demand by . For , write for their union. In particular, already preserves every demand in , so minimality of implies . Throughout this section, retain all vertices, including isolated vertices. All distances and balls are measured in , including when we select vertices from a subgraph of .
Essential edges and demand deletion. Every edge of is essential to in . Indeed, minimality makes it essential to some demand, while every other demand has a chosen path avoiding that edge. Thus every shortest path for in must contain every edge of , so is unique. Its subpaths are also unique shortest paths: replacing one by a different shortest path would give a different shortest path for . Consequently, deleting a subset of demand paths leaves the other paths intact and unique. Their union is still a minimal distance preserver for the remaining demands. This lets us apply the same arguments throughout the demand-removal procedure.
Preserving a covered set of demands. Recall that a vertex covers a demand if it is incident to an edge essential to that demand. In our setting, a vertex covers a nontrivial demand exactly when it lies on . Thus covers if every path , meets . Trivial demands need no edges and can be omitted from any set we cover.
Suppose nonempty covers nonempty . For each , choose and split into and . Let be the resulting demand set, omitting trivial and repeated pairs, so . Since lies on a shortest path for ,
Preserving the two split pairs therefore preserves . Moreover, their shortest paths in are unique subpaths of , so their union is exactly . In particular, is a minimal distance preserver of .
Applying Lemma 4 with source set gives, for every ,
If is a singleton, the unique paths from its vertex form a tree, whose induced subgraph on has at most edges; hence the same bound holds when . Taking bounds all the edges of , while taking to be a ball bounds its local edges.
We will find the covering set using the following lemma.
Lemma 6. Suppose has average degree at least , every path has length at least , and . There are sets and such that covers and
The first bound ensures that each iteration removes many demands. The other two bounds make Equation (1) small: the number of covering vertices is at most , and these vertices are within distance of one another. We first use the lemma to prove the theorem, and then prove it by finding a dense subgraph, growing neighborhoods, and selecting covering vertices greedily.
4.1 Completing the Proof
Proof of Theorem 5. Fix parameters , whose values will be chosen at the end. First remove all demand paths of length less than r. There are at most p such paths, so this removes at most pr edges. Let be the union of the remaining paths, retaining all n vertices.
While has more than edges, its average degree exceeds d, and every remaining path has length at least r. We may therefore apply Lemma 6 to . It gives a demand set Q covered by S with
, and . Using Equation (1) in with , we get
Here the second bound follows by substituting and . Remove Q and its paths from . The remaining paths are still edge-disjoint and unique, so their union is again a minimal preserver and the procedure can continue.
Each iteration removes demands, and no demand is removed twice. There are therefore iterations, so the term above contributes edges in total. The terms proportional to sum to at most , because the removed demand sets are disjoint subsets of . At termination, at most edges remain. Including the short paths removed initially, we have accounted for every edge of :
To choose the parameters, first balance the two terms contributed by the iterations. The equality gives ; substituting this relation makes each term equal to . Balancing this with the final edges gives
These values satisfy because , and because . Each of the last three terms in Equation (2) is now . The short-path term is , proving the theorem.
4.2 Growth of Local Neighborhoods
The main use of edge-disjointness is the following growth bound. Many demands pass through the neighbors of a vertex in a dense subgraph. Each contributes a long subpath inside a larger ball, and edge-disjointness lets us add their lengths. Comparing this edge count with Equation (1) forces the ball to contain many vertices.
Lemma 7. Suppose every path has length at least , where . Let be a subgraph of minimum degree at least . Then every satisfies
Proof. If , the at least neighbors of in already give . Assume . Choose of size , and let be the demands whose paths meet .
We first count these demands. Every vertex of has degree at least in . On the other hand, any shortest path visits at most three neighbors of : the subpath between its first and last such vertices has length at most two, using the route through . At each of these vertices, the path uses at most two incident edges. Thus a demand accounts for at most six of the incidences counted in . Every core edge belongs to exactly one chosen path, so
Next fix and a vertex of on . Since the whole path has length at least , one of its two directions from this vertex has at least edges. The first edges in that direction lie in : every vertex on this subpath is at distance at most from . This gives local edges for each demand in . The paths are edge-disjoint, so these contributions add up to edges.
Write . Since covers , and , Equation (1) gives
At least one of the two terms in the upper bound must be . The first gives ; squaring the inequality for the second gives . Therefore
since and .
4.3 Proof of the Covering Lemma
Proof of Lemma 6. Find a dense subgraph. Starting from , repeatedly delete a vertex of current degree less than . Charge each deleted edge to the vertex whose deletion removes it. Each vertex is charged fewer than edges, so fewer than edges are deleted in total. Since initially has at least edges, the remaining subgraph satisfies
We use only to select vertices and edges. The demand paths and all distances continue to be measured in H.
Find a neighborhood containing many demands. Choose centers greedily from , adding a new center whenever it is at distance greater than 2r from every center already chosen. By Lemma 7, the radius-r ball around each center contains vertices. These balls are disjoint: a vertex in two of them would give a path of length at most 2r between their centers. There are consequently at most centers. When the selection ends, every vertex of is within distance 2r of a center, since otherwise it could be added as another center. Thus the radius-2r balls cover .
For , let be the demands covered by . A path uses at most two edges incident to , giving
The second inequality follows by summing the first degree bound: each edge of is counted at both endpoints. Summing over the radius-2r balls counts every vertex of at least once. As there are such balls, one of them accounts for an fraction of this total. Its sum is therefore at least . Choose its center and put and . Then
Here counts pairs with covering . A demand is counted at most times: its first and last vertices in have distance at most via , so the shortest subpath between them has at most vertices. This bounds all its visits to , even if the path leaves the ball between visits.
Choose a small covering set. The preceding count guarantees many distinct demands in the ball. We also need to cover many of them using few vertices. Start with . Whenever a vertex covers at least demands outside , add to and add to . Stop when no such vertex remains.
Every selected vertex adds at least new demands. Since these newly covered demands are counted only once,
using the second bound in Equation (3). At termination, each of the vertices covers fewer than demands outside . Thus fewer than of the original pairs involve uncovered demands, and at least involve demands in . Each demand is counted at most times, so
The first bound in Equation (3) now gives . By construction, covers , and gives .
The selection of separated centers and the greedy covering step are also used in the general case; Lemmas 18 and 19 give these arguments in the forms needed there. The additional work comes from allowing paths to share edges. In the neighborhood-growth proof, we used edge-disjointness to turn long subpaths into distinct edges. In the demand-removal procedure, we used it to delete a demand's path without affecting the other paths. The later sections replace these two uses by counting suitable essential edges and bounding the edges lost when covered demands are removed. The goal remains the same: cover many demands with few nearby vertices and use the distance-preserver bound for the split demands.
5 Technical Lemmas
Let be a minimal distance preserver of , with and . For an edge , define
Minimality implies . An edge is private if . Write and . The private length of is . For a private edge, we write to indicate . Assume that
Definition 8 (Demand Cover). Let be a minimal distance preserver of . A vertex covers a demand if it is incident to an edge essential to in . A set covers if every demand in is covered by a vertex of .
Definition 9 (Demand Hitting). Let be a minimal distance preserver of . A vertex hits a demand if there are an edge essential to in and an endpoint such that . We call a hitting tuple for . A set hits , or is a hitting set for , if every demand in has a hitting tuple whose first vertex belongs to .
The technical hitting lemma below constructs these witnesses using loyal edges. The definition also permits other essential edges, as needed in Section 7.
We introduce a parameter such that
and we prove the following lemmas.
Lemma 10. Let be a minimal distance preserver of with , , and . Suppose for every . For every real parameter , there are and such that covers and
Lemma 11. Let be a minimal distance preserver of with and . Suppose it has a loyal core as defined in Lemma 13 below, satisfying Equation (6), and for every . For every real parameter , there are and such that hits and
Overview. Lemmas 10 and 11 find a large set of demands witnessed by a small set of nearby vertices. The covering conclusion uses vertices incident to essential edges, while the hitting conclusion permits one additional adjacency. We first obtain many loyal edges whose labels have bounded local multiplicity. We then cluster vertices in decreasing order of ball volume and use Lemma 19 to select an efficient partial cover. Section 6 will establish the private-length and density hypotheses needed to apply Lemma 10 to a changing residual graph.
5.1 Basic Tools
Shortest Paths and Their Neighbors Fix an arbitrary shortest path in for each . Every edge with lies on every such path. We start from the following results.
Lemma 12. For every demand :
-
A vertex is incident to at most two edges essential to .
-
For every vertex , at most three vertices of belong to . Therefore, there are at most six pairs where the edge is essential to and is an endpoint of .
-
If is essential to and a subpath of contains , then every shortest path between the endpoints of contains .
Proof. For the first statement, every edge essential to lies on the fixed simple path , which has at most two incident edges at a vertex. For the second statement, the first and last neighbors of on the shortest path have distance at most two. Thus, at most three vertices of belong to . By the first statement, each such vertex is incident to at most two edges essential to , giving at most six pairs . For the third statement, let be the two endpoints of the path . Suppose there exists a shortest path between and avoiding . Then there exists a shortest path for avoiding . This leads to a contradiction that is essential to .
Dense Loyal Core. Suppose that satisfies . The following pruning procedure gives a dense loyal core.
Lemma 13 (Dense loyal core). If , there is a subgraph of with nonempty vertex set and edge set such that
Proof. Start with and repeatedly delete a vertex of current degree less than . Each edge is counted only when it is deleted, so fewer than edges are deleted in total. At least edges remain, and every remaining vertex has degree at least .
We call a dense loyal core of the graph . Vertices in are rich, and edges in are loyal. In addition, given , a node and demand , we define
Growth of Local Balls. We prove a lower bound on the size of for every rich vertex .
Lemma 14. Suppose and the loyal core has minimum degree at least . For every rich vertex and every real ,
In particular, under Equation (6), this is .
Proof. Fix a positive integer satisfying , and define
The set is nonempty since . For each , fix an arbitrary shortest-path tree rooted at in its component of . We claim
Indeed, take and let . The path has length at least . If both endpoints of belonged to , their distance would be at most via . Hence at least one endpoint of is outside this ball. Orient the traversal of along toward such an endpoint, start at the opposite endpoint of , and stop at the first vertex of . The resulting subpath contains . By Lemma 12, the tree path to also contains . Thus , and both endpoints of lie in , proving Equation (8).
Each is a forest. Therefore
Every loyal neighbor of a vertex of that is not itself in belongs to . Simplicity of the graph and the minimum degree assumption give
Combining the last two inequalities and dividing by gives .
Now put . For every , the inequality holds. These layers are disjoint and belong to . Since . Summing their sizes proves Equation (7).
5.2 Loyal Edges with Bounded Conflict
In this subsection, fix a radius satisfying Equation (5), and put for every rich vertex x. We prove the following lemmas.
Lemma 15 (Good Loyal Edges). Under Equation (5) and Equation (6), there is a set , with , such that for every and every endpoint ,
where for every rich vertex x and C is an absolute constant.
Lemma 16 (Localizing one demand label). Let be the good loyal edges supplied by Lemma 15, and fix an absolute constant . For , choose an endpoint of every . Suppose that
Then every demand satisfies
The implicit constant may depend on A.
To prove Lemmas 15 and 16, we prove the following result.
Lemma 17. Under Equation (5) and Equation (6),
Proof. Let . Since Equation (5) implies , we have . Partition into bundles, each of size between k and 2k - 1. This is possible since : form bundles of size k and merge any nonempty final remainder into the preceding bundle. Let denote the bundle containing the neighbor z of x. Every bundle has size .
For each incidence with , charge to every pair such that
The total charge is
Fix a rich vertex y, and put
For each and each in the bundle of containing , let . Add and to a demand set ; trivial pairs may be omitted. Repetitions are removed. Then
All vertices of are at distance at most two from one another in . Choose a minimal distance preserver for . Applying Lemma 4 with source set , , and vertex set gives
If an incidence charges , the two split pairs for belong to . Since is essential to , every shortest path for passes through , and
Preserving the two split pairs thus preserves . In particular by essentiality. Both endpoints of lie within distance of , and , so
Conversely, fix a pair that receives charge, and let . Every charging incidence has and . Lemma 12 bounds the number of these incidences by six. Moreover, since ,
Consequently
By Lemma 14, since and , we have . Combining this with Equations (15) and (16) and gives
Finally, and imply . This proves Equation (13).
Completing the good-edge and localization proofs
Proof of Lemma 15. Choose an absolute such that in Lemma 17. Discard an edge if either endpoint contributes more than to the sum defining . Each discarded edge accounts for a distinct term exceeding this threshold, so at most edges are discarded. The remaining edges satisfy Equation (11) with .
Proof of Lemma 16. For a fixed , the assertion is immediate if there are no relevant edges. Otherwise every relevant endpoint belongs to . The subpath from their first to their last occurrence has length at most , since a subpath of a shortest path is shortest. Partition its vertices into consecutive blocks of at most vertices. Each block has path diameter at most , and there are blocks because .
In every nonempty block of assigned endpoints choose one such endpoint , belonging to a good edge with label . If lies in that block, then . Lemma 15 therefore bounds the number of these edges by for each block. Summing over the constant number of blocks proves the claim.
5.3 Greedy Clustering and Partial Set Cover
Lemma 18 (Volume-decreasing clustering). Let and . Put for . There are centers and a partition such that
Proof. Process in nonincreasing order of , breaking ties arbitrarily. Make a new center if its distance from every existing center is greater than ; otherwise assign it to any existing center at distance at most . A center belongs to its own cluster. Each assigned center was processed earlier, giving . Distinct centers have distance greater than , so their radius- balls are disjoint. The two summation bounds follow.
Lemma 19 (Partial set cover). Let be an indexed family of finite sets, let , and put
If for every element , there are and such that
Proof. Starting with no covered elements, repeatedly choose a set adding at least new elements, until no such set exists. Each chosen set adds at least that many new elements, proving the second inequality. At termination every unchosen set contains fewer than uncovered elements, and every chosen set contains none. Hence
The latter sum is , proving the first inequality. Notice that the required multiplicity assumption is an upper bound, .
5.4 Proof of Lemma 10
Proof. Construct the loyal core by Lemma 13. Take the good loyal edges from Lemma 15. Apply Lemma 18 to with and . Denote the resulting vertex clusters by . Assign every good edge to one endpoint of maximum radius- ball volume , breaking ties arbitrarily. Put in if . Thus
By averaging, some center satisfies
Fix this center. Its assigned endpoints lie in , have diameter at most , and satisfy . Lemma 16 yields
For every define the set
Only edges of are used in these sets. Set and . Count the incidences with , , and . Each edge contributes at least one incidence, through its assigned endpoint, and at most two. Each vertex-label pair accounts for at most two incidences by Lemma 12. Therefore
Moreover the multiplicity of any among the is at most .
Apply Lemma 19 with . It returns and satisfying
Here we used Equations (19) to (21). Every membership witnesses that covers , so covers . Finally, gives .
5.5 Proof of Lemma 11
Proof. Assume and let be the same good-edge set as in Lemma 15.
Selecting hitting tuples. Set . For every rich vertex , pick an arbitrary set of exactly loyal neighbors. Set up
Every tuple witnesses that hits . Because both endpoints of each good edge are rich,
For a fixed pair , by Lemma 12, at most six tuples have first coordinate u and edge label q.
Clustering the hitting vertices. Define
Apply Lemma 18 to W with radius a = 2r. Write for its clusters, so that
Assign each tuple to the cluster of its first coordinate: . By Equation (22) and weighted averaging, some center satisfies
Fix this center c for the rest of the proof.
Bounding repetitions of a demand. Let be the set of distinct edges appearing in . For each choose one witnessing tuple . Since and ,
Consequently , and the assigned endpoints have diameter at most . Apply Lemma 16 to . Therefore, for every ,
Each distinct edge contributes at most selected tuples. It follows that
Partial set cover. For each , define . Put and . Each incidence is witnessed by at least one and at most six tuples, hence
By Equation (24), each demand occurs in at most of the sets . Applying Lemma 19 gives and with
using Equation (23) and Equation (25). By the definition of , the set hits . Finally, implies .
6 Proof of Theorem 1
In this section, we use Lemma 10 in an iterative demand-removal procedure to prove Theorem 1.
There are two types of deletion. A demand with few private edges can be removed at small edge cost. Once no such demand remains, private lengths are large, and their sum guarantees enough private edges to apply Lemma 10. Its covered batch has a small distance preserver, which bounds the edge loss when the batch is removed. We continue until at most half the demands remain, while retaining at least three quarters of the original edges. The induction hypothesis then gives a contradiction.
We prove the following stronger statement: there is an absolute constant such that, for every -vertex graph and every demand set with , every minimal distance preserver of satisfies
This implies Theorem 1 in its stated range . We retain all vertices in every subgraph, including isolated vertices. Trivial demands and demands between different connected components may be discarded without changing which subgraphs preserve the demands or which preservers are minimal. If fewer than nontrivial reachable demands remain, Lemma 2 gives edges, within the claimed bound for the original . Otherwise we prove the statement for the remaining demands, and the original bound follows by monotonicity in .
6.1 Edge Removal Under Demand Deletion
We first discuss how removing demands affects a minimal distance preserver.
Observation 20 (Removing one demand). Let be a minimal distance preserver of , let , and put . Every distance preserver of contains every edge for which . Consequently,
Here is the private length before q is removed.
Proof. Minimality gives for every . If , choose a demand . Every shortest path for in contains . Since preserves , it contains such a path and hence contains . Therefore, only edges in can be removed.
Lemma 21 (Removing a covered demand set). Let be a minimal distance preserver of , with at most vertices. Suppose that a nonempty set covers a nonempty demand set , and . There is a distance preserver of such that, for every distance preserver of ,
where A is an absolute constant.
Proof. For each , choose a covering vertex . By Definition 8, it is incident to an edge essential to , so it belongs to every shortest path for in . Hence
Form the split demand set
omitting repeated and trivial pairs. Thus . If , choose a BFS tree rooted at its unique vertex, then a minimal subgraph of that tree preserving . Otherwise choose a minimal distance preserver of and apply Lemma 4. In either case, call the resulting subgraph . It satisfies
The two preserved routes in Equation (29) show that is also a distance preserver of .
For any remaining-demand preserver , the subgraph preserves all demands in R exactly. Minimality of K therefore gives
Indeed, a missing edge would be essential to some demand in , contradicting preservation of that demand. Thus , proving Equation (28) after fixing sufficiently large.
6.2 Induction and Fixed Parameters
Let be an absolute constant such that, by Lemma 2, every minimal distance preserver of an -vertex graph with demand set has size
We prove Equation (26) by strong induction on the integer , uniformly over all -vertex graphs and demand sets of size in .
Base Case Consider the range . It satisfies that and . By Equation (31) with , every minimal distance preserver of has size
Inductive Step Consider the range . Assume the inductive statement for all smaller integer demand counts in . We need the following result for small residual sets.
Claim 22. Under the induction hypothesis, every minimal distance preserver J of with satisfies
Proof. Set . Suppose . Given , by induction, . Suppose . By Equation (31),
Since , we have . Choosing therefore gives the required bound
We prove the inductive step by contradiction. Suppose that a minimal distance preserver of violates Equation (26). Fix
The average degree of H is 2d. In addition, we define
All five parameters remain fixed throughout the procedure.
6.3 Demand Removal Procedure
The residual graph and its update. At every stage, we use to denote the demands still present. Let be the current minimal distance preserver of . If the demand set changes from to , pick an arbitrary minimal subgraph of the current that preserves all the demands in .
Note that such an update exists: repeatedly remove one edge from whose removal preserves the demands in , recomputing essentiality after each deletion, until no further deletion is possible. If is the graph just before the update and the graph after it, then for every ,
Here denotes the distance between the endpoints of . Thus is a minimal distance preserver of as well as of . Essentiality and private lengths are recomputed in each updated instance.
Demand-removal procedure. Set and as the initialization. Repeat the following two steps while .
-
Remove demands of small private length. While and there exists a demand with , remove from , update and recompute the private lengths. If , terminate the procedure.
-
Remove a covered batch. Now and for every . The private-edge sets of different demands are disjoint, so
Apply Lemma 10 to the current graph , with the fixed parameters defined in Equation (34) and verified in Lemma 24. We obtain nonempty sets and such that covers in , and
where are absolute constants from Lemma 10. Remove from and update to a minimal subgraph preserving all remaining distances.
Each pass removes at least one demand, and no demand is reintroduced, so the procedure terminates with . All hypotheses of Lemma 10 hold in the current instance: is a minimal distance preserver of , retains vertices, and has at most edges by containment in . Equation (35) gives the required private-edge mass, and every active demand has private length greater than . The radius condition is checked below; the diameter conclusion is measured in the current graph itself.
Lemma 23 (Total loss in Step 1). The total number of edges removed in Step 1 is at most .
Proof. Immediately before a single demand is removed in Step 1, its private length is at most . Observation 20, applied to that current graph and demand set, bounds the number of edges lost in the update by . There are at most such removals. The total is therefore at most .
Lemma 24. For sufficiently large , the parameters in Equation (34) satisfy . In each execution of Step 2, removing its demand set and then updating the graph deletes at most
edges for an absolute constant independent of C.
Proof. Since , Equation (33) implies . Therefore
If , then , so . Also , hence . Therefore
which verifies the radius condition of Lemma 10.
Let immediately before Step 2. By Lemma 21 and Eq. (36), the number of edges deleted from is at most
Lemma 25 (Total loss in Step 2). For sufficiently large C, the total number of edges removed in Step 2 is at most nd/20.
Proof. Let , for , be the sets selected in the executions of Step 2. These demand sets are pairwise disjoint subsets of , so
by Equation (36). Summing Equation (37), the total loss is at most
where is an absolute constant determined only by and . This bound also holds when . We estimate the two terms with the actual radius . First, since ,
The last inequality follows since . For the second term, by the definition of r,
(40)
Here the second expression uses , and the final inequality uses and . Combining Equations (38) to (40) bounds the total loss by
Choose C large enough that the coefficient is at most 1/20.
6.4 Closing the Induction
Fix C large enough that
This choice satisfies all preceding requirements. There is no circular dependence: depends only on the constants in the preliminary and technical lemmas, not on C.
Let be the demand set at termination. By Lemmas 23 and 25, at most edges have been deleted. Thus the residual graph satisfies
It is a minimal distance preserver of and . By Claim 22,
Combining Equations (41) and (42),
contradicting Equation (33). The induction proves Equation (26), and therefore proves Theorem 1.
7 Pairwise Additive +2 Spanners
We apply the framework for minimal distance preservers to additive approximation. We keep the notation of Sections 5 and 6: is the current demand set, is a minimal distance preserver of , is a selected batch, and is a set of vertices that covers or hits . We use for the final additive spanner and for the subgraph saved for a selected batch.
Definition 26 (Pairwise Additive +k Spanner). Given an integer , an n-vertex undirected unweighted graph , and a demand set , a subgraph is a pairwise additive +k spanner of if
Theorem 27. Let be any -vertex undirected unweighted graph and let be any set of demand pairs. Then admits a pairwise additive +2 spanner with edges.
Proof strategy and comparison with the exact bound. Both Theorems 1 and 27 use minimal distance preservers and the extraction lemmas of Section 5. In each case, the goal is to handle a batch of demands using vertices of diameter . The difference is the witness set. For Theorem 1, a covering vertex lies on a shortest path, and Lemma 10 gives . For the additive bound, a hitting vertex is adjacent to a shortest path, and Lemma 11 gives the smaller set . Routing through a hitting vertex costs at most two extra edges. After splitting each demand at its chosen vertex of , the respective bounds are
for a covering set,
for a hitting set.
Thus allowing additive error two saves a factor in the nonlinear batch cost.
There is also a difference in how these bounds are used. Section 6 bounds every minimal distance preserver by an edge-count contradiction. Its exact batch preserver bounds the number of edges lost after deleting , because minimality forces Equation (30). A +2 spanner for does not give that union identity. Instead, we construct explicitly: save each in , remove , and keep a minimal distance preserver for the remaining demands. The saved routes are compared with , so taking their union does not accumulate additive error.
This explains the different treatment of short demands. The proof of Theorem 1 deletes demands of small private length. Here we first purchase shortest paths for demands of small original distance, at cost . The remaining minimal distance preserver need not satisfy the private-edge hypotheses of Lemma 11. Corollary 29 records the short extension of its proof that uses assigned essential demands and long full distances. It yields hitting sets in exactly the sense of Definition 9, without requiring a second proof of the extraction argument.
The batch sizes remain , so summing the additive batch costs gives
Balancing these terms gives , compared with for Theorem 1. Including the final minimal distance preserver gives . We check the radius bounds, short-path cost, and endpoint ranges below.
7.1 Hitting Sets and Additive +2 Error
Let be a minimal distance preserver, let have finite diameter , and let be auxiliary demands. The same estimates used in Lemma 21, namely Lemma 4, give a minimal distance preserver of with
For a singleton , choose a BFS tree rooted at its vertex and then a minimal subgraph preserving the auxiliary demands. This gives edges also when .
Lemma 28 (A hitting set gives an additive spanner). Let be a minimal distance preserver of on at most vertices. Let , and suppose that a nonempty set hits in , with
. Then there is a pairwise additive +2 spanner of satisfying
Proof. For each , choose a hitting tuple with . By Definition 9, the edge is essential to , is an endpoint of , and . Thus lies on every shortest path for in , and
It follows that
Form the split demand set, as in Lemma 21,
omitting repeated and trivial pairs. Hence . Choose the minimal distance preserver in Equation (43) and set . Concatenating its two preserved routes through and using Equation (45) gives
The lower bound follows from . The edge bound follows from . When is a singleton, its BFS-tree construction handles all demand endpoints in the component of its root.
7.2 Hitting Sets for Long Demands
We use Lemma 11 through the following assigned-demand form. We retain the notation for the full essential-demand set. A chosen demand-label need not be the unique essential demand, so the notation for a private edge is not used for these labels.
Corollary 29. Let be a minimal distance preserver of , retaining all vertices, and put . Suppose that for every , where . There are nonempty sets and such that hits in and
Proof. Assign each edge a demand-label , which exists by minimality. Repeatedly remove vertices of current degree less than . Fewer than edges are removed, so the remaining auxiliary core satisfies
This core need not consist of private edges. It supplies only the selected edges and neighbors; all distances, balls, and essentiality are measured in the unchanged graph .
Apply the proof of Lemma 11 with density parameter and length parameter . The ball-growth proof in Lemma 14 uses private length at least only to imply full demand distance at least l. That condition holds here directly: when , the endpoints of a labelled demand cannot both lie in a radius- ball, giving the same BFS-tree covering argument.
The proofs of Lemmas 15 to 17 use only essentiality to the fixed label. All edges labelled lie on a fixed shortest path for , giving the same bound of six hitting tuples per vertex–demand incidence. Also, preserving exactly forces every edge assigned to . Thus the charging, localization, clustering, and partial-cover arguments apply to with these labels. The radius condition is with . The proof gives Equation (46), and its witness tuples show that hits according to Definition 9.
Corollary 30 (Spanner for an extracted demand set). Under the hypotheses of Corollary 29, its demand set has a pairwise additive +2 spanner of with
Proof. Apply Lemma 28 to the hitting set from Equation (46). Its edge bound is
7.3 Demand Removal and the Final Spanner
As in Section 6, we keep the parameters fixed while changing and its minimal distance preserver . Here is the density threshold at which the construction stops. When has more than edges, its current density is greater than ; we apply Corollary 29 with .
Lemma 31 (A parameterized demand-removal construction). For every and , there is a pairwise additive +2 spanner of with edge size
Proof. We construct a spanning subgraph as follows.
-
Preserve short demands exactly. Let . Add one -shortest path for each demand in to , at a cost of at most edges. Set and choose a minimal distance preserver of . The original set and its size remain fixed.
-
Save a spanner for a hit batch. While , set . Every active demand has distance at least , and . Apply Corollary 29 and save the resulting subgraph from Corollary 30 by adding it to . Set , and choose a minimal distance preserver of . Continue with . As in Section 6, such an update is obtained by sequential edge deletions that preserve the required distances; essential-demand sets and demand-labels are recomputed in each new instance.
-
Include the final minimal distance preserver. When , add all its edges to and stop.
Correctness and termination. For each demand , it always satisfies that
It holds initially because is a distance preserver of . The update preserves the old -distances exactly, so the equality continues to hold for . Its minimality also makes a minimal distance preserver of . Thus every invocation of Corollary 29 is in a valid current instance. Each batch is nonempty, so the loop terminates after at most iterations.
The demands removed in Step 1 have exact routes in . Each batch removed in Step 2 has a saved route of length at most , by Lemma 28 and Eq. (49). Demands remaining in Step 3 have exact routes in the final minimal distance preserver. None of the saved subgraphs is deleted from . Therefore is a pairwise additive +2 spanner of . This argument does not replace parts of a demand path by several approximate routes: each processed demand has a complete certificate relative to its original distance in .
Edge count. Let be the batches removed in Step 2, and let be the corresponding value of . The batches are disjoint subsets of the original , and Corollary 29 gives
By Equation (47), the total number of saved batch edges is at most
Adding the at most pr initial path edges and the at most nd final edges proves Equation (48). The same bound holds if no batch is extracted.
Complete the Proof of Theorem 27 For large demand sets, we use the following classical all-pairs additive spanner bound.
Theorem 32 (Elkin-Peleg [EP04, Theorem 3.22(1)]). Every -vertex undirected unweighted graph has an all-pairs additive +2 spanner with edges.
Proof of Theorem 27. Put . If , Lemma 2 gives a minimal distance preserver of size , and
If , by Theorem 32, we have . It remains to consider . Fix the parameters
Here , so and . Consequently , allowing Lemma 31. The maximum with six ensures the technical radius condition even when the balanced value is small.
We bound the four costs in Equation (48) using the actual radius in Equation (50). First, . Since ,
Also , hence
The second term is bounded in Equation (51). For the first, gives
Finally,
since in this range. Substitution into Equation (48) proves the claimed bound for all demand counts.
8 More Results on Additive Spanner Bounds
We derive the remaining bounds in Table 1 from Theorem 1 and classical preserver bounds using the path-sampling and clustering framework of [Kav17], with the constant-fraction completion argument of [Bod22]. We give the reductions explicitly. Throughout, is an undirected unweighted graph with vertices, is a demand set of size , and denotes an additive spanner, as in Definition 26. All subgraphs retain , and all distance guarantees are relative to . We may discard trivial and unreachable demands and assume ; empty demand or source sets require no edges.
Definition 33 (Source-sensitive and sourcewise spanners). Let have size and let be an integer. For , a source-sensitive additive spanner is a subgraph such that
A complete sourcewise additive spanner satisfies this inequality for every reachable pair in . For unordered demands, means that each demand has been oriented with its first endpoint in .
We use the following exact-preserver bounds:
Here (53) is Lemma 2, and (52) follows from Theorem 1, using (53) when . In particular, at most demands have an -edge exact preserver.
8.1 Two common reductions
Lemma 34 (Sampling reduction). Let , , and let be an integer. Each of the following constructions provides a subgraph with edges and a set with .
(i) If , adjoining any additive spanner for the reachable pairs in satisfies at least half of with additive error .
(ii) For arbitrary , adjoining any additive spanner for the reachable pairs in satisfies at least half of with additive error .
The choices of and may differ between the two constructions.
Proof. Put and . Form by retaining arbitrary incident edges at each vertex, or all its incident edges if fewer exist. Thus . For each demand , choose an arbitrary shortest path in , denote it by , and traverse it from to . In (i), use the orientation with ; in (ii), either orientation may be chosen. These paths remain fixed throughout this construction. The argument uses only shortestness of each individual path, so the choices for different demands may be made independently. Throughout this proof, a missing edge means an edge absent from this fixed .
For (i), purchase all missing edges of a path if there are fewer than ; otherwise purchase its last missing edges. For (ii), purchase all missing edges if there are fewer than ; otherwise purchase its first and last missing edges. Here the first and last missing edges are ordered along from to . All purchases are made relative to , even if an edge has already been purchased for another demand. Let be together with these purchases. In either case their total cost is at most .
For a path not bought entirely, in (i) consider the heads of its last missing edges; in (ii) also consider the tails of its first missing edges. Every endpoint of a missing edge has at least neighbors in : a vertex of degree at most would have retained all its incident edges. For a demand , let be the union of the -neighbors of its chosen heads, and in (ii) let be the analogous union for its chosen tails. Each list has distinct vertices, since the chosen path is simple. Any vertex is adjacent to at most three vertices of a shortest path: the subpath between its first and last neighbors has length at most two, using the route through that vertex. Counting incidences between the list and its -neighbors therefore gives
The suffix from each chosen head to , and in (ii) the prefix from to each chosen tail, belongs to . In (ii) every chosen tail precedes every chosen head, even when the two lists of missing edges share their middle edge.
If every path was bought entirely, take ; then already preserves every demand exactly. Otherwise one of these neighborhoods exists, and its size is at most , so . Sample vertices independently and uniformly with replacement, and let be their set. Then
For each indicated neighborhood , the probability that it contains no sampled vertex is
In (i), a sampled neighbor of a chosen head gives, after adding the auxiliary spanner, a route of length at most
Here gives , and the chosen path gives . In (ii), sampled neighbors of a chosen tail and head give a route of length at most
The bound on the route length uses the auxiliary distance guarantee. The displayed inequality follows from and the fact that precedes on a shortest path. In (i) it suffices that meets ; in (ii) it suffices that meets both and . A union bound shows that each demand not bought entirely has these witnesses with probability at least . Demands bought entirely always succeed. Let count demands with such certificates. By linearity of expectation,
Hence some sampling outcome certifies at least half the demands. The certificates use only the stated auxiliary distance guarantees, so they work for any auxiliary spanner satisfying those guarantees. The edge and sample-size bounds hold for every outcome, proving the lemma.
Lemma 35 (Completion from a constant fraction). Fix an additive error and a source set , if applicable. Suppose that, whenever , at least half the demands can be satisfied with edges, where , with fixed , and for these demand counts. If the construction's hypotheses persist on demand subsets, then all demands have an additive spanner with edges.
Proof. If , (53) gives an exact preserver with edges. Otherwise repeat the constant-fraction construction on the unsatisfied demands in the original graph , keeping fixed. After rounds, at most demands remain. Since , the successive costs sum geometrically:
Finish with (53) when at most demands remain. Every round supplies complete routes for its satisfied demands relative to their distances in G. Their union retains all these routes, so the additive error remains throughout the completion.
8.2 Pairwise and source-sensitive bounds
Theorem 36. For every set of demand pairs, admits a pairwise additive +4 spanner with edges.
Proof. The case follows from (53). Otherwise set and apply Lemma 34(ii) with an exact auxiliary preserver. Its demand count is
Hence (52) applies and costs . The sampling step therefore satisfies half the demands at cost . Here , and the range persists when demands are removed. Thus Lemma 35, with , proves the claim.
Theorem 37 (Source-sensitive bounds). Let and . For every fixed integer , if , then admits an additive spanner with
In particular, for the nonlinear terms are , , and , respectively, with the ranges in Table 1. No additional restriction is needed.
Proof. Extend the definition of to ; then (52) is the induction base, valid for . Assume . The case follows from (53). Otherwise put
Apply Lemma 34(i) and construct a spanner for all reachable pairs in . If their number is , then
Indeed, substituting into the middle expression gives . Thus the induction hypothesis applies to the auxiliary demands, including when . If no auxiliary demand is reachable, the empty auxiliary subgraph suffices. Since , its nonlinear cost satisfies
The auxiliary linear term is absorbed by , since . Also . The sampling step adds two to the error, so at least half the demands have additive error at this cost. For fixed , the function is proportional to , and the range persists on demand subsets. Therefore Lemma 35 completes the induction. Only the level-zero auxiliary calls require at most pairs; the final exact completion uses at most pairs.
Lemma 38 (Classical-input source-sensitive bounds). For every fixed integer and , there is an additive spanner with
There is also such a spanner with edges when .
Proof. For the first bound, induct on . The base is , supplied by (53) without a restriction on . Suppose and , write , and choose . Apply Lemma 34(i). If is the number of reachable auxiliary pairs in , then . The induction hypothesis and give
Consequently, an additive auxiliary spanner and the sampling subgraph together satisfy half the demands with error and cost . Since is a positive power of , Lemma 35 proves the first bound. There is no restriction on the exact auxiliary demand count.
For the second bound, the base is the exact-preserver theorem of [BW21], which gives for . For and , choose and again apply Lemma 34(i). The auxiliary product satisfies
so the induction hypothesis applies, including the base's condition when . Its nonlinear cost is at most . The linear term is absorbed since . The sampling step therefore satisfies half the demands with error at cost . The range persists on demand subsets and is a positive power of , allowing Lemma 35. In both inductions, the cases are handled directly by (53).
8.3 Complete sourcewise bounds
Lemma 39 (Clustering reduction). For every integer there are and with and such that the following holds for every source set . Adjoining any additive spanner for the reachable pairs in produces a complete sourcewise additive spanner.
Proof. Initially all vertices are unclustered. While a vertex has at least unclustered neighbors, select exactly of them as a cluster, assign this vertex as their center, and mark these neighbors clustered. A center need not itself be unclustered and may be reused. Let be the set of centers, so . Keep all cluster-star edges, at most in total, and every edge incident to the final unclustered set . At termination for every , so these latter edges number at most . Let be their union.
For a reachable , choose any shortest path in and traverse it from to . If it is contained in , it is already preserved. Otherwise let be the head of its last missing edge. Both endpoints of that edge are clustered, since every edge incident to an unclustered vertex was retained. In particular, is clustered, and the subpath from to lies in by the choice of the last missing edge. If is its center, the auxiliary route, the edge , and this suffix have total length at most
Here , because , and the chosen path gives . The path can be chosen independently for each pair, and the same and R work for every source set S.
Theorem 40 (Complete sourcewise bounds). For every fixed integer and source set of size , there is a complete sourcewise additive +2k spanner with
edges. For this gives edges when . For it gives edges when .
Proof. Set and . Use Lemma 39 and apply Theorem 37 at level to the reachable pairs in . Their count satisfies
where the last inequality follows from the assumed bound on . The auxiliary nonlinear cost is at most
The equality in the last display follows from . The auxiliary linear term is . The clustering cost is , and its attachment adds two to the auxiliary error . Thus the final error is 2k; substituting d into nd proves the stated edge bound.
Corollary 41 (A classical-input sourcewise bound). For every source set of size , there is a complete sourcewise additive +6 spanner with edges.
Proof. Take in Lemma 39. Apply the first bound of Lemma 38 with to . Since , its nonlinear cost is
The clustering cost has the same bound, up to , and the error is .
Comparing the two complete-sourcewise +6 bounds, we have
Thus, for with fixed , the bound of Theorem 40 gives a strict polynomial improvement over both Corollary 41 and the previous bounds listed in Table 1.
Classical comparison terms in Table 1. The source-sensitive CE and BW terms follow by setting in Lemma 38. The pairwise +4 term also follows from Lemma 34(ii) using (53) and , followed by Lemma 35. The complete-sourcewise +6 term follows directly from the first bound of Lemma 38 with and , since
This bound applies to every source set and uses (53) through three levels of the sampling reduction, with constant-fraction completion at each level. For the remaining two derived partial-demand comparisons, use Lemma 34(i). The subset +2 theorem [Bod22] supplies a spanner for with edges. Applying it to costs
With this is . Keep fixed and repeat on the unsatisfied demands until at most remain, then finish with (53). Since the number of demand pairs is at most , there are rounds. This gives the +4 comparison bound with edges.
For the +6 comparison, use the rectangular +4 theorem of [Kav17]. Its auxiliary cost is . Taking bounds this cost by ; Lemma 35 gives edges. In these applications is handled directly by (53).
Acknowledgments. We thank Greg Bodwin for helpful discussions at the early stage of the project. We also thank the anonymous reviewers for their helpful feedback and for pointing out potential new research directions.
AI methodology statement. We used ChatGPT 6-Astra to assist in developing the results in Sections 7 and 8. All work concerning Theorem 1, including its development and proof, was carried out entirely by the authors without AI assistance. The authors wrote the entire paper and take full responsibility for all of its contents, including the correctness of the results and proofs.
References
[AB16] Amir Abboud and Greg Bodwin. Error amplification for pairwise spanner lower bounds. In Proceedings of the 27th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 841–854, 2016.
[AB17] Amir Abboud and Greg Bodwin. The 4/3 additive spanner exponent is tight. Journal of the ACM, 64(4):28:1–28:14, 2017.
[ABP17] Amir Abboud, Greg Bodwin, and Seth Pettie. A hierarchy of lower bounds for sublinear additive spanners. In Proceedings of the 28th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 568–576, 2017.
[AGMW18] Amir Abboud, Pawel Gawrychowski, Shay Mozes, and Oren Weimann. Near-optimal compression for the planar graph metric. In Proceedings of the 29th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 530–549, 2018.
[AYM20] Mojtaba Abdolmaleki, Yafeng Yin, and Neda Masoud. Minimum weight pairwise distance preservers. arXiv:2007.07554, 2020.
[BCE05] Bela Bollobas, Don Coppersmith, and Michael Elkin. Sparse distance preservers and additive spanners. SIAM Journal on Discrete Mathematics, 19(4):1029–1055, 2005.
[BCPS20] Greg Bodwin, Keerti Choudhary, Merav Parter, and Noa Shahar. New fault tolerant subset preservers. In 47th International Colloquium on Automata, Languages, and Programming (ICALP), pages 15:1–15:19, 2020.
[BGPW17] Greg Bodwin, Fabrizio Grandoni, Merav Parter, and Virginia Vassilevska Williams. Preserving distances in very faulty graphs. In 44th International Colloquium on Automata, Languages, and Programming (ICALP), pages 73:1–73:14, 2017.
[BKMP10] Surender Baswana, Telikepalli Kavitha, Kurt Mehlhorn, and Seth Pettie. Additive spanners and -spanners. ACM Transactions on Algorithms, 7(1):5:1–5:26, 2010.
[Bod19] Greg Bodwin. On the structure of unique shortest paths in graphs. In Proceedings of the 30th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2071–2089, 2019.
[Bod21] Greg Bodwin. New results on linear size distance preservers. SIAM Journal on Computing, 50(2):662–673, 2021.
[Bod22] Greg Bodwin. A note on distance-preserving graph sparsification. Information Processing Letters, 174:106205, 2022.
[BP23] Greg Bodwin and Merav Parter. Restorable shortest path tiebreaking for edge-faulty graphs. Journal of the ACM, 70(5):28:1–28:43, 2023.
[BW15] Greg Bodwin and Virginia Vassilevska Williams. Very sparse additive spanners and emulators. In Proceedings of the 6th Innovations in Theoretical Computer Science Conference (ITCS), pages 377–382, 2015.
[BW21] Greg Bodwin and Virginia Vassilevska Williams. Better distance preservers and additive spanners. ACM Transactions on Algorithms, 17(4):36:1–36:24, 2021.
[CE06] Don Coppersmith and Michael Elkin. Sparse sourcewise and pairwise distance preservers. SIAM Journal on Discrete Mathematics, 20(2):463–501, 2006.
[CGK13] Marek Cygan, Fabrizio Grandoni, and Telikepalli Kavitha. On pairwise spanners. In 30th International Symposium on Theoretical Aspects of Computer Science (STACS), pages 209–220, 2013.
[CGMW18] Hsien-Chih Chang, Pawel Gawrychowski, Shay Mozes, and Oren Weimann. Near-optimal distance emulator for planar graphs. In 26th Annual European Symposium on Algorithms (ESA), pages 16:1–16:17, 2018.
[Che13] Shiri Chechik. New additive spanners. In Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 498–512. SIAM, 2013.
[EFN17] Michael Elkin, Arnold Filtser, and Ofer Neiman. Terminal embeddings. In 44th International Colloquium on Automata, Languages, and Programming (ICALP), pages 36:1–36:14, 2017.
[EP04] Michael Elkin and David Peleg. -spanner constructions for general graphs. SIAM Journal on Computing, 33(3):608–631, 2004.
[EP16] Michael Elkin and Seth Pettie. A linear-size logarithmic stretch path-reporting distance oracle for general graphs. ACM Transactions on Algorithms, 12(4):50:1–50:31, 2016.
[GK17] Manoj Gupta and Shahbaz Khan. Multiple source dual fault tolerant BFS trees. In 44th International Colloquium on Automata, Languages, and Programming (ICALP), pages 127:1–127:15, 2017.
[GR17] Kshitij Gajjar and Jaikumar Radhakrishnan. Distance-preserving subgraphs of interval graphs. In 25th Annual European Symposium on Algorithms (ESA), pages 39:1–39:13, 2017.
[HXX25] Gary Hoppenworth, Yinzhan Xu, and Zixuan Xu. New separations and reductions for directed preservers and hopsets. arXiv:2411.08151, 2025.
[Kav17] Telikepalli Kavitha. New pairwise spanners. Theory of Computing Systems, 61(4):1011–1036, 2017.
[KP22] Shimon Kogan and Merav Parter. Having hope in hops: New spanners, preservers and lower bounds for hopsets. In Proceedings of the 63rd IEEE Symposium on Foundations of Computer Science (FOCS), pages 766–777, 2022.
[KP25] Shimon Kogan and Merav Parter. Having hope in missing spanners: New distance preservers and light hopsets. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4352–4374, 2025.
[KV15] Telikepalli Kavitha and Nithin M. Varma. Small stretch pairwise spanners and approximate d-preservers. SIAM Journal on Discrete Mathematics, 29(4):2239–2254, 2015.
[Nei24] Ofer Neiman. On the size overhead of pairwise spanners. In 15th Innovations in Theoretical Computer Science Conference (ITCS), pages 83:1–83:22, 2024.
[Par14] Merav Parter. Bypassing Erdős' girth conjecture: Hybrid stretch and sourcewise spanners. In Proceedings of the 41st International Colloquium on Automata, Languages, and Programming (ICALP), Part II, volume 8573 of Lecture Notes in Computer Science, pages 608–619. Springer, 2014.
[Par15] Merav Parter. Dual failure resilient BFS structure. In Proceedings of the 2015 ACM Symposium on Principles of Distributed Computing (PODC), pages 481–490, 2015.
[Par20] Merav Parter. Distributed constructions of dual-failure fault-tolerant distance preservers. arXiv:2010.01503, 2020.
[Pet09] Seth Pettie. Low distortion spanners. ACM Transactions on Algorithms, 6(1):7:1–7:22, 2009.
[PP13] Merav Parter and David Peleg. Sparse fault-tolerant BFS trees. In 21st Annual European Symposium on Algorithms (ESA), pages 779–790, 2013.
[PP25] Merav Parter and Asaf Petruschka. Color fault-tolerant distance preservers: Optimal size in conditionally optimal time. arXiv:2504.17868, 2025.
[SSV26] Kirill Simonov, Farehe Soheil, and Shaily Verma. Finding minimum distance preservers: A parameterized study. arXiv:2603.21442, 2026.
A Remaining Proofs
Proof of Lemma 4. We adapt the distance-difference argument of [BW21], using essential edges to handle an arbitrary minimal distance preserver. For every demand , fix a shortest path in , directed from to . Since preserves the demand distances, each is also a shortest path in . By minimality, choose a demand-label for every edge , and orient as it appears on . We call the source of the source of the oriented edge .
If an edge has source , then , and every shortest path in ends with . Indeed, the prefix of ending at proves the distance equality. Any shortest path avoiding could replace this prefix, contradicting that is essential to . Consequently, at most one edge with a given source enters any vertex.
Fix a demand and a source . Let consist of the edges with source entering a vertex of , other than the edge preceding that vertex on . We claim that
For each head of an edge in , define
The triangle inequality in gives , so there are at most possible integer values. Suppose two distinct heads have the same value, with preceding on . Writing for the length of the subpath from to , we have
A shortest path in followed by is therefore a shortest path in . It avoids the edge entering : the first part has length strictly less than and hence cannot visit , while the second part does not contain , since is not the predecessor edge at on . This contradicts the preceding property of and proves the claim.
Let be the indegree in this orientation, and set
Fix a total ordering of . For each pair of distinct edges entering the same vertex, with preceding in this ordering, charge the pair to , where is the source of . The edge is the predecessor edge on at their common head, so . This charge is injective, since and the head of uniquely determine . Thus
If , then and hence . If , every vertex has indegree at most one, so ; in particular, the same bound holds when .
Finally, restrict the orientation to , and write and . The case is immediate. Otherwise, by Cauchy-Schwarz,
It follows that
as desired.