Near-Exact Hopsets in Graph Algorithms
- Near-exact hopsets are graph augmentations that add weighted shortcut edges so every vertex pair has a path within (1+ε) of the true distance using a bounded number of hops.
- They achieve favorable trade-offs between sparsity and hop-bound through constructions like Thorup–Zwick emulators and sampling-and-bunch frameworks.
- These structures underpin efficient sequential, parallel, distributed, and streaming algorithms for approximating shortest paths in diverse graph settings.
Near-exact hopsets are graph augmentations that add weighted shortcut edges to a graph so that every pair of vertices admits a path with a bounded number of hops and length within a factor of the true shortest-path distance. In the standard terminology, a -hopset enforces a hop-bound and multiplicative stretch , with the regime of small constituting the near-exact setting. Introduced by Cohen in the context of parallel computation of approximate shortest paths, hopsets later became a basic primitive in dynamic graph algorithms, distributed computing, and the streaming model (Elkin et al., 2016).
1. Formal definition and variants
For a weighted undirected graph , let denote the shortest-path distance, and for an integer , let
denote the length of a shortest -to-0 path in 1 that uses at most 2 edges. A graph 3 is a 4-hopset for 5 if, for every 6,
7
Here 8 is the hop-bound and 9 is the multiplicative stretch parameter (Elkin et al., 2016).
The same basic idea extends to directed graphs, but the formulation is less uniform. One directed definition requires exact distance preservation in the augmented graph together with a low-hop approximate path: for every 0,
1
and there exists a 2 path in 3 of at most 4 edges and weight at most 5 (Bernstein et al., 2022). A broader directed formulation fixes 6 and asks that every reachable ordered pair 7 admit an 8 path in 9 of at most 0 edges and total weight at most 1; the case 2 is the directed near-exact regime (Hoppenworth et al., 2024).
Two parameters dominate the theory. The first is sparsity, usually expressed as 3 or by specialized linear-size bounds. The second is the hop-bound 4, whose dependence on 5, the sparsity exponent, and in directed settings the aspect ratio, is the central structural quantity throughout the literature.
2. Undirected trade-offs and existential bounds
The undirected theory developed through a sequence of progressively sharper size-hopbound trade-offs. An early milestone gave linear-size hopsets with substantially improved hopbound: setting 6 in the Elkin–Neiman construction yields 7 and
8
while the general bound is 9 with
0
for a runtime parameter 1 (Elkin et al., 2017).
A subsequent construction exhibited the first sparse hopsets with a constant number of hops. For parameters 2, 3, and 4, one can construct a 5-hopset of expected size
6
where
7
and 8 is independent of 9 for fixed 0; the leading 1 in the size can be removed at the expense of increasing the exponent of 2 by 3 (Elkin et al., 2016).
The later survey literature emphasizes a parallel line of results based on scale-free constructions. For every 4-vertex weighted graph, every 5, and integer 6, there exists a 7-hopset of size
8
with
9
and a refined analysis removes the leading 0. The same parameters can be achieved by a single, 1-independent construction, so that one hopset simultaneously satisfies the 2 guarantee for all 3 (Elkin et al., 2020).
| Construction | Size | Hop-bound |
|---|---|---|
| Linear-size Elkin–Neiman specialization (Elkin et al., 2017) | 4 | 5 |
| Constant-hop hopsets (Elkin et al., 2016) | 6 | 7 |
| Scale-free hopsets (Elkin et al., 2020) | 8 | 9 |
| Thorup–Zwick optimal trade-off (Huang et al., 2017) | 0 | 1 |
These parameterizations are not identical: 2 and 3 index different sparsity curves. Nonetheless, they chart the main undirected progression from linear-size quasi-polylogarithmic hopbound, to constant-hop sparse constructions, to sparsity-optimal Thorup–Zwick-based hopsets.
A further structural synthesis appears in the unified framework of Neiman and Shabat. In the size regime 4, their sampling-and-bunch formalism recovers a simultaneous 5-hopset with
6
and proves a matching lower bound of a different form: any 7-hopset of size 8 must satisfy
9
(Neiman et al., 2021). For near-exact hopsets, where 0, this gives a coarse but general obstruction to simultaneously minimizing multiplicative stretch and hopbound.
3. Thorup–Zwick emulators as universally optimal hopsets
A decisive simplification came from the observation that Thorup–Zwick sublinear-additive emulators are also hopsets. In the construction, one fixes an integer 1, forms nested samples
2
and for each 3 adds weighted edges from 4 to every 5, where
6
and each edge 7 receives weight 8 (Huang et al., 2017).
Following Pettie, the sampling probabilities are set to
9
With this choice,
0
The key analytic step is to convert Thorup–Zwick’s sublinear additive emulator guarantee into multiplicative 1-stretch by explicitly bounding the number of hops in 2. Defining 3 and
4
one obtains 5, and choosing 6 yields
7
This trade-off is described in the paper as universally optimal. Abboud–Bodwin–Pettie proved that any hopset of size 8 must have
9
whereas the Thorup–Zwick modification achieves size 00 with
01
matching the lower-bound curve up to 02-polynomial factors (Huang et al., 2017).
The same construction also has corollaries outside the hopset setting. For unweighted graphs it gives a sublinear-additive emulator of size 03 and stretch
04
and, combined with standard “stretch 05” pruning, yields a spanner with stretch 06, additive error 07, and size
08
where 09 (Huang et al., 2017). This is one of the clearest demonstrations that near-exact hopsets, near-additive emulators, and sparse spanners often occupy the same combinatorial template.
4. Construction paradigms and computational models
The first constant-hop construction is also notable for its algorithmic generality. Its centralized algorithm uses a hierarchy of clusterings, interleaving super-clustering and interconnection over distance scales. For fixed 10, it constructs in
11
time a 12-hopset of expected size 13, with space 14; parallel, Congested Clique, CONGEST, and streaming implementations with explicit resource bounds are also given (Elkin et al., 2016).
In the EREW PRAM model, this framework yields a construction using
15
processors and time
16
after which 17-approximate shortest paths from 18 sources can be computed via 19-limited Bellman–Ford in 20 further time (Elkin et al., 2016). In the Congested Clique, one can build the hopset in
21
rounds, with a choice of 22 making 23 constant in 24 (Elkin et al., 2016).
Deterministic parallelization required a separate advance. The first efficient deterministic parallel hopset algorithm builds a 25-hopset of size
26
with
27
in CREW-PRAM time
28
and work
29
yielding the first deterministic polylogarithmic-time PRAM algorithm for 30-SSSP with slightly super-linear work (Michael et al., 2020).
Distributed settings impose different sparsity-round trade-offs. In the Congested Clique, a randomized algorithm constructs, with high probability, a 31-hopset of size
32
hopbound
33
and round complexity
34
providing the first polylogarithmic-round Congested Clique algorithm for sparse hopsets with polylogarithmic hopbound (Nazari, 2019).
Taken together, these results show that the near-exact regime is not only an existential theory of sparse augmentations. It is also a design framework for sequential, PRAM, Congested Clique, CONGEST, streaming, and deterministic shortest-path algorithms.
5. Directed near-exact hopsets
Directed graphs are markedly harder. The first nearly linear-work directed construction produces a hopset with 35 edges and
36
in sequential time 37, and a parallel version with work 38 and span 39 (Cao et al., 2019). This already established that near-exact directed hopsets can be built efficiently, but not yet with the same linear-size hopbound known for directed shortcut sets.
That gap was closed by Bernstein and Wein. For any 40-vertex directed graph with integer weights in 41, fixed 42, and 43, there exists a 44-hopset 45 of size
46
In particular, choosing
47
gives 48 and hop-bound 49. More generally, for every 50, one can set
51
to obtain a 52-hopset of size
53
matching, up to polylogarithmic factors, the known shortcut-set trade-off (Bernstein et al., 2022).
The construction combines several ingredients: a weighted transitive closure, a “nice path collection” of vertex-disjoint shortest paths of exactly 54 hops, Raz–Spira forward 2-hop emulators on those paths, hierarchical vertex-path sampling, and a new sixth-hop backward-shortcutting gadget that handles the cyclic obstructions absent in DAG-like settings (Bernstein et al., 2022).
Lower bounds reveal that the directed near-exact regime is highly sensitive to weight structure. For arbitrary weighted directed graphs, every 55-size approximate hopset with any given finite stretch must have
56
while 57-size exact hopsets in unweighted directed graphs require 58, and 59-size shortcut sets require 60 (Hoppenworth et al., 2024). The 61 bound establishes a separation from the polynomial-aspect-ratio setting, where 62-size approximate hopsets with hopbound 63 are known (Hoppenworth et al., 2024). A common misunderstanding is therefore to treat the 64 linear-size bound as fully general in directed graphs; the lower bound shows that unbounded aspect ratio rules this out.
6. Reductions, unification, and optimization
Near-exact hopsets have long been studied alongside near-additive spanners and emulators. The survey literature highlighted that the results of Elkin–Peleg for spanners and Elkin–Neiman for hopsets are “strikingly similar,” and explicitly posed the problem of a black-box reduction between near-additive emulators and near-exact hopsets (Elkin et al., 2020).
One direction was clarified through a reduction from hopsets to spanners, emulators, and distance preservers. The central notion is an 65-missing 66-spanner: a subgraph 67 such that every pair 68 has an approximate path of length at most 69 omitting at most 70 edges of 71. Given a sequence of hopsets 72 with parameters 73, one can build in polynomial time a subgraph 74 that is an
75
spanner of size
76
The same framework yields new weighted near-additive spanners, directed weighted pairwise preservers, and lower bounds such as 77 for linear-size exact weighted hopsets (Kogan et al., 2022).
The reverse direction was established more recently. Any algorithm 78 that constructs a 79-emulator of size 80 for undirected unweighted graphs can be used as a black box to obtain, for any 81, a 82-hopset for an undirected weighted graph with
83
and size
84
This answers the reduction question for sparse graphs, while leaving open the removal of the linear dependence on 85 in the size bound (Aeri et al., 8 Jul 2026).
The unification program also reaches the level of algorithmic templates. A single sampling-and-bunch framework can attain all state-of-the-art spanners and hopsets for general graphs by choosing the appropriate input parameters, and in the 86-size regime it resolves an open problem by proving that every 87-hopset must satisfy 88 (Neiman et al., 2021).
A further development shifts attention from worst-case existence to graph-specific optimization. The optimization variant asks, for a given graph instance, for the minimum number of edges in a hopset with prescribed hopbound and stretch. In the near-exact regime, there is a randomized polynomial-time algorithm that, for directed graphs with 89, returns a 90-hopset of size
91
and in undirected graphs with moderate 92, a randomized polynomial-time algorithm returning a 93-hopset of size
94
for 95 (Dinitz et al., 10 Feb 2025).
Open questions remain explicit and technically sharp. The survey literature asks whether the classical near-exact hopbound can be reduced to a polynomial in 96 and 97, describes the gap as “wide open,” and lists directed analogues, black-box reductions, universal constructions, and dynamic or streaming maintenance as central directions (Elkin et al., 2020). The emulator-to-hopset reduction leaves open a size bound independent of 98 (Aeri et al., 8 Jul 2026). In directed graphs, the recent lower bounds isolate aspect ratio as a decisive parameter and ask for a finer characterization of how the best achievable 99 depends on weight spread (Hoppenworth et al., 2024).