Manuscript Offprint
arXiv:2609.02388Connectivity Oracles Under Vertex Failures via a Simple and Fast Low-Degree Steiner Forest Decomposition
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study the low-degree Steiner forest decomposition. Given a graph and a terminal set , the standard decomposition returns a set of size at most and a forest of maximum degree such that, for every connected component of , some connected component of contains all terminals in . This is the central decomposition behind several connectivity oracles under vertex failures [DP20, LS22, LW24]. The state-of-the-art algorithms either take time with degree bound 4 [DP20], or take time with the weaker degree bound [LW24].
We show that if is allowed to contain vertices of , then a degree-4 decomposition can be computed by a very simple algorithm in time. Further, we show that this relaxed decomposition is equally useful for constructing connectivity oracles under vertex failures. As a consequence, we obtain a deterministic connectivity oracle under vertex failures with space, preprocessing time ( is an upper bound on the number of failed vertices), update time, and query time. Up to polylogarithmic factors, this oracle strictly improves all known oracles; in particular, it removes the factors from the preprocessing and update times of [LS22, LW24].
*University of Warwick, UK. †University of Warwick, UK. ‡University of Michigan, USA. §Peking University, China.
Contents
1 Introduction 1 1.1 Our Result 1 1.2 A New State-of-the-Art Connectivity Oracle under Vertex Failures 2
2 Simple Weak Low-Degree Steiner Forest Decomposition 3 2.1 Algorithm Description 3 2.2 Correctness 4 2.3 Implementation Details 4
3 Optimal Low-Degree Hierarchy 7
4 Connectivity Oracles under Vertex Failures 8 4.1 Connectivity Oracle of [LS22] Combined with Our Low-Degree Hierarchy 8 4.2 Connectivity Oracle of [DP20] Combined with Our Low-Degree Hierarchy 9
A Optimality of Our Low-Degree Hierarchy 13 A.1 Proof of Lemma A.1 13
B Pseudocode of the Implementation of Theorem 1.1 15
Low-Degree Steiner Forest Decomposition. This motivates a low-degree Steiner forest decomposition. It removes a set with and constructs a forest of maximum degree at most such that, for every connected component of , one connected component of contains all terminals in . This decomposition is the core structure in several connectivity oracles under vertex failures [DP20, LS22, LW24]. Roughly, these oracles exploit the low-degree trees which are robust against vertex failures and handle recursively with logarithmic depth since .
History. Duan and Pettie [DP20] first showed how to compute this decomposition in time with degree bound , which is optimal up to a constant. Their algorithm uses Fürer and Raghavachari's approximation algorithm for the minimum-degree Steiner tree [FR94] as a subroutine.¹
Later, Long and Saranurak [LS22] reduced the low-degree Steiner forest decomposition to a vertex-expander decomposition. Using the cut-matching-game framework, they obtained a faster, -time algorithm, but with the weaker degree bound . More recently, Long and Wang [LW24] showed that a relaxed variant of the cut-matching game, which does not produce a vertex-expander decomposition, still yields a low-degree Steiner forest decomposition with the degree bound while retaining running time.
This development leads to a natural question:
Can we compute a low-degree Steiner forest decomposition with degree in near-linear time?
An affirmative answer would immediately improve connectivity oracles under vertex failures.
1.1 Our Result
We show that, by allowing to contain vertices in , a very fast construction is indeed possible and is strong enough to yield a new connectivity oracle under vertex failures that subsumes all known results up to polylogarithmic factors.
Theorem 1.1 (Weak Low-Degree Steiner Forest Decomposition). There is a simple, deterministic algorithm that, given a graph and a terminal set , computes in time² where
-
a set with ; and
-
a forest with maximum degree 4 such that, for every connected component of , some tree of spans .
¹The recent faster algorithms for computing minimum-degree spanning trees [BFW26, BFSW26] likely extend to minimum-degree Steiner trees. Interestingly, unlike [FR94], they do not seem directly useful for computing low-degree Steiner forest decompositions.
²The inverse-Ackermann factor in the running time comes from the standard disjoint-set union data structure. The running time can be replaced by using elementary implementations with lists (see Theorem 21.1 of [CLRS09]).
| Degree | Time | Weak? | |
|---|---|---|---|
| [DP20] | 4 | No | |
| [LS22] | No | ||
| [LW24] | No | ||
| This paper | 4 | Yes |
Table 1: Known low-degree Steiner forest decompositions.
We call the resulting decomposition weak: the components are defined in , but their certifying trees may leave those components and contain vertices in , and the same component of may therefore serve several components of .
Compared with previous decompositions, our construction is much faster, taking almost truly linear time, while guaranteeing an optimal degree bound . See Table 1. Importantly, our algorithm is very simple (see the description in Section 2.1). In contrast, previous approaches use either a cut-matching game [LS22, LW24] or Fürer and Raghavachari's algorithm [DP20] as a subroutine.
1.2 A New State-of-the-Art Connectivity Oracle under Vertex Failures
Next, we describe the application of our decomposition. A -vertex-failure connectivity oracle is a data structure with three phases. First, it preprocesses a graph . Second, given a failure set of size , it updates its state. Third, given two vertices and , it reports whether they are connected in .
Among an extensive line of work [DP10, vdBS19, DP20, LS22, PSS, Kos23, LW24, LLP], Long and Saranurak [LS22] gave an oracle with space, preprocessing time, update time, and query time. Under well-known conjectures, these four parameters are simultaneously optimal up to subpolynomial factors. A natural question is whether the factors in the preprocessing and update times can be removed. Long and Wang [LW24] improved the update time to , but their preprocessing time remains .
Our decomposition removes these subpolynomial factors and yields an oracle that subsumes all known results up to polylogarithmic factors. See Table 2 for a comparison.
Theorem 1.2. Given an undirected graph and an upper bound on the size of the failure set, there exists a deterministic -vertex-failure connectivity oracle with space, preprocessing time, update time, and query time.
The key insight behind Theorem 1.2 is the observation that the requirement in the low-degree Steiner forest decomposition that the forest avoids is completely unnecessary for the connectivity-oracle application. Thus, our weak decomposition from Theorem 1.1 immediately speeds up the preprocessing time of the known framework of [LS22].
In more details, we first show that a weak low-degree Steiner forest decomposition produces a low-degree hierarchy, introduced in [DP20] and formally defined in [LS22], in exactly the same way as a standard low-degree Steiner forest decomposition, with no loss in the hierarchy's parameters. Plugging our faster hierarchy construction into the framework of [LS22] gives Theorem 1.2. For completeness, we also present a simpler but less efficient oracle in Section 4.2.
This terminology parallels other weak graph decompositions. In a weak low-diameter decomposition, the short paths certifying a cluster's diameter may leave the cluster. In a weak expander decomposition, the embedding certifying a component's expansion may leave the component; see, for example, [LRW24, FLL25].
| Det./Rand. | Space | Preprocessing | Update | Query | |
|---|---|---|---|---|---|
| [DP10] | Det. | \tilde{O}(md_{\star}^{1-\frac{2}{c}}n^{\frac{1}{c}-\frac{1}{\log(2d_{\star})}) | |||
| [vdBS19] | Rand. | ||||
| [DP20] | Rand. | w.h.p. | |||
| Det. | |||||
| [LS22] | Det. | ||||
| Det. | |||||
| [PSS+21] | Det. | n^2^{2^{O(d_{\star})}} | |||
| Det. | |||||
| [Kos23] | Det. | ||||
| [LW24] | Det. | ||||
| [LLP+26] | Det. | ||||
| Det. | |||||
| This paper | Det. |
Table 2: Known connectivity oracles that can handle an arbitrary number of vertex failures. The red text highlights suboptimal factors.
Notation. Throughout the paper, is a simple undirected graph with vertices and edges. For a subgraph , let and denote its vertex and edge sets, respectively, and let denote the degree of in . For a collection of subgraphs of , let denote the set of vertices belonging to at least one member of . For , let denote the subgraph of induced by . We abbreviate as . Finally, denotes the inverse Ackermann function.
2 Simple Weak Low-Degree Steiner Forest Decomposition
The goal of this section is to prove Theorem 1.1.
For convenience, for any subgraph of let us call a forest a Steiner forest for with respect to if, for every connected component of with , some tree of spans all terminals in . Thus, the forest from Property 2 of Theorem 1.1 is a Steiner forest for with respect to . Also, we say that is a degree-4 forest for if and has maximum degree at most 4. A vertex is low-degree in if .
2.1 Algorithm Description
The algorithm works as follows;
-
Initialize as isolated vertices, one for each terminal in , i.e., and .
-
Repeatedly connect two components of by a path whose endpoints and are low-degree vertices in and whose internal vertices lie outside . We refer to as a linking path. Update and .
-
Once no linking path exists, return where contains precisely the vertices of degree 4 in .
2.2 Correctness
Property 1. Every leaf of belongs to throughout the algorithm. In any degree-4 forest, the number of degree-4 vertices is at most half the number of leaves. Thus, the definition of gives .
Property 2. By construction, is a degree-4 forest for . It remains to show that is a Steiner forest for with respect to . Let be a connected component of with . Since , at least one component of contains a terminal in . The uniqueness of this component follows from the claim below.
Claim 2.1. For every connected component of , at most one connected component of satisfies .
Proof. Suppose for a contradiction that two distinct components of intersect . Among all paths in joining two distinct components of , let be one of minimum length, with endpoints and . The vertices and are low-degree in because they do not belong to . Moreover, every internal vertex of lies outside ; otherwise, a proper subpath of would join two distinct components of . Thus, is a linking path, contradicting the termination of the algorithm.
2.3 Implementation Details
To implement our greedy algorithm from Section 2.1, we use the following data structures:
-
We maintain a disjoint-set union data structure to keep track of the connected components of .
-
We maintain a set of active vertices. Initially, , , and . Subsequently, vertices are only deleted from , so this set shrinks monotonically. We store one bit per vertex to indicate whether it is active.
-
We maintain the subgraph of induced by the active vertices. We call it the active subgraph and denote it by , where . We support adjacency-list queries on .
-
An edge is a boundary edge if either (i) its endpoints are low-degree vertices in distinct components of , or (ii) one endpoint is a low-degree vertex of and the other is active. We maintain candidate boundary edges in a doubly linked list . We allow stale entries and discard them when they are processed.
We implement the algorithm from Section 2.1 in rounds. Each round processes one boundary edge and either finds a linking path or makes progress by deleting vertices from . The algorithm terminates when .
Implementing a round. Choose an arbitrary edge and consider two cases.
Case 1: Both and are low-degree vertices in distinct components of . In this case, is a linking path. We set and update accordingly.
Case 2: is a low-degree vertex in and . Perform a DFS from in . When the DFS first visits a vertex , check whether has a neighbor in the input graph such that is a low-degree vertex of in a component different from the component of . If so, mark relevant; otherwise, mark it irrelevant. Terminate the DFS upon encountering the first relevant vertex.
The DFS terminates in one of two ways:
-
If it explores the entire component of in without encountering a relevant vertex, delete every visited vertex from and update and accordingly.
-
If it reaches a relevant vertex with a qualifying neighbor , let consist of the edge , the path in the DFS tree from to , and the edge . This is a linking path. Add all vertices and edges of to , delete every vertex visited by the DFS from , and update and accordingly. Then terminate the current round.
The implementation is summarized in the pseudocode in Section B.
2.3.1 Running Time of the Implementation
Time Spent on Maintaining Data Structures. Since vertices are only deleted from , the total time spent maintaining is . The forest is incremental, so the disjoint-set union data structure takes time in total. Using appropriate pointers and disjoint-set queries, we can determine in time whether an edge is currently a boundary edge, and can insert a candidate into or delete it from in time whenever an endpoint changes status. Vertices are only inserted into , their degrees in only increase, components of only merge, and vertices are only deleted from . Hence, each edge enters only constantly many times, and the total time spent maintaining is .
Time Spent on Scanning an Edge in . Given an edge , we can determine in time whether it is stale, whether is a linking path, or whether a DFS should start from . Since only candidates are processed, their total scanning time is .
Time Spent on DFS. Each active vertex is scanned at most once overall, because it is removed from at the end of the DFS that visits it. When visiting a vertex , we can determine in time whether it is relevant. Thus, the total time spent on all DFS calls is . Combining these bounds, the total running time is , as claimed in Theorem 1.1.
2.3.2 Correctness of the Implementation
It remains to prove that no linking path remains when Algorithm 1 terminates.
Intuition. Suppose that a linking path remains at termination. In the nontrivial case , consider the first time an internal vertex of is visited by a DFS. At that time, the DFS explores at least one of the subpaths and and discovers a linking path containing . The vertex would then be added to the forest, contradicting the fact that it is an internal vertex of a linking path at termination.
We now formalize this intuition.
Structure of the DFS Tree After Termination. Consider a DFS started from while processing the edge . Let be the forest when this DFS starts, let be the component of containing , and let be the forest when the DFS terminates. Either , or is obtained by adding a linking path to , thereby inserting vertices and edges . Let be the component of containing . Thus, either , or is obtained by merging with another component of and the newly inserted path. Let be the set of vertices visited by this DFS, and let . Thus, if the DFS fails, whereas if it finds the linking path above. A visited vertex belongs to precisely when DFS fails to find a linking path and returns to the parent of in the DFS tree.
Claim 2.2. No edge of crosses .
Proof. We prove the claim by induction over the sequence of DFS executions. Consider an arbitrary edge crossing such that and . For the sake of contradiction, assume that . The vertex must be inactive. Otherwise, it would have been added to the DFS tree while was visited, since cannot fail before visiting all active neighbors of . Thus, an earlier DFS must have removed from the active subgraph. At the end of that earlier DFS, was still active and the edge existed, contradicting the induction hypothesis. This contradiction completes the proof.
Claim 2.3. Every edge crossing in either has an endpoint in or has an endpoint of degree 4 in .
Proof. Consider an edge crossing such that and . By Claim 2.2, . If entered the forest at the end of this DFS, then . Otherwise, was already in when the DFS started. If is low-degree and belongs to a component different from , then was relevant when visited and the DFS must have succeeded through . This contradicts , because would have entered the forest on the resulting linking path. Hence, either or has degree 4 in .
Figure 1: An illustration of the DFS tree after the search terminates.

No Linking Path Remains at the End of Algorithm 1. Let be the forest when Algorithm 1 terminates, and suppose for contradiction that a linking path remains. A linking path with no internal vertex would itself be a boundary edge, contradicting termination. We may therefore write the path as for some . Let and be the distinct components of containing and , respectively. Consider the DFS that made inactive (this must exist, as otherwise, the algorithm would have started another DFS from by scanning , and assume that this DFS was started while scanning . For this DFS, consider the notations , , and as defined above. At least one endpoint lies outside , as otherwise, and would belong to the same component of .
Every internal node of lies outside , and therefore outside . In particular, is an internal node of , and so . This concludes that since becomes inactive in this DFS. Consider the subpath of from toward . Starting from and applying Claim 2.2 along the subpath shows that every node on the subpath before belongs to . Finally, we have two cases;
-
If , one more application of Claim 2.2 gives , which means that became inactive without entering the forest and can never enter it later, contradicting .
-
If , the last edge of the subpath crosses , and using Claim 2.3 either or . The first one contradicts the choice of , and the second one contradicts the fact that is a low-degree node in since the forest is incremental.
We have therefore proved the following corollary establishing the correctness of the implementation.
Corollary 2.4. There is no linking path when Algorithm 1 terminates.
3 Optimal Low-Degree Hierarchy
In this section, we recall the definition of a low-degree hierarchy from Definition 5.1 of [LS22] and construct such a hierarchy with optimal parameters in near-linear time in Theorem 3.2. In Section 4, we plug this hierarchy into the known framework to get an improved connectivity oracle.
Definition 3.1 (Low-Degree Hierarchy). Let be a connected undirected graph. -low-degree hierarchy of , with depth and degree parameter , is a sequence satisfying the following properties:
(1) At each level , is a collection of pairwise vertex-disjoint, vertex-induced subgraphs of , and no edge of joins two distinct members of . In particular, .
(2) The family is laminar: for every and every , there is a unique such that . We call the parent of , and a child of .
For each level and component , the terminal set of , denoted by , consists of the vertices in that belong to none of its children. The set may be empty; in particular, for every . The terminal set at level is .
(3) At each level , is a Steiner forest for with respect to and has maximum degree at most , where and .
Now, we prove the following theorem.
Theorem 3.2. A deterministic algorithm constructs a low-degree hierarchy of depth and degree parameter 4 in time.
This construction strictly subsumes all prior low-degree hierarchy constructions from [DP20, LS22, LRW24] and also has optimal parameters; any hierarchy with degree needs depth. See Theorem A.2 for the proof of this trade-off.
Below, we describe the construction.
Construction. Set . For each with , apply the algorithm of Theorem 1.1 to obtain . By Property 1, after at most calls there is an index such that . Set and define the -low-degree hierarchy as follows:
-
for each .
-
is the collection of connected components of , where and .
Analysis. Properties (1) and (2) of Definition 3.1 follow directly from the definition of . By Property 2, every forest has maximum degree at most 4. The terminals at level are precisely the vertices in components of that belong to no lower-level component. Thus, , so and for every . Property 2 also shows that is a Steiner forest for with respect to . Since and , the observation below implies that is a Steiner forest for with respect to .
Observation 3.3. Let , and let be a Steiner forest for with respect to .
-
For every , is also a Steiner forest for with respect to .
-
For every , is also a Steiner forest for with respect to .
Proof. For the first part, a component of containing also contains . The second part follows because every connected component of is contained in a connected component of .
4 Connectivity Oracles under Vertex Failures
We first combine our hierarchy with the state-of-the-art oracle of [LS22] to prove Theorem 1.2. We then give a self-contained description of a simpler oracle based on [DP20], at the cost of weaker bounds.
4.1 Connectivity Oracle of [LS22] Combined with Our Low-Degree Hierarchy
We use the framework of [LS22] as a black box.
Proof of Theorem 1.2. First, construct a -low-degree hierarchy using Theorem 3.2, where . This takes time and uses space. By Lemma 6.14 in the arXiv version of [LS22], the remaining data structures can be constructed in time using space. Thus, the total preprocessing time and space are and , respectively.
Theorem 7.2 in the arXiv version of [LS22] bounds the update time for a set of failed vertices by
where .
Finally, the procedure in Section 7.3 of the arXiv version of [LS22], which is essentially the query procedure of [DP20], has query time .
4.2 Connectivity Oracle of [DP20] Combined with Our Low-Degree Hierarchy
For completeness, we present a simple connectivity oracle based on [DP20]. We use elementary data structures, incurring only a polylogarithmic overhead.
Theorem 4.1. Given a connected undirected graph with vertices and edges and an upper bound on the failure-set size , there is a simple deterministic -vertex-failure connectivity oracle with the following guarantees:
-
space.
-
preprocessing time.
-
update time.
-
query time.
4.2.1 Some Necessary Structures
Simple Two-Dimensional Orthogonal Range Reporting. Given a set of points on the grid , for an integer , there is a data structure of size that reports the points in any rectangle in time.
Simple Edge-Failure Euler-Tour Structure. Given a forest of a graph , there is a data structure of size with the following guarantees. Let be a set of deleted edges, of which belong to and of which do not. The forest has at most affected subtrees, meaning components created within trees of that contain deleted forest edges. In time, the data structure reports which pairs of affected subtrees are joined by an edge of ; it also identifies the affected subtree containing a query vertex in time.
-
Constructing the Structure. Consider an arbitrary root for and order its nodes by DFS preorder (equivalently, by their first occurrence in an Euler tour). Map the nodes to integers in this order. For each pair of not necessarily distinct trees of , construct a two-dimensional orthogonal range-reporting structure by adding the points corresponding to and for every edge between the two trees. To save space, construct this structure only for pairs joined by an edge of . Assign an identifier to each component of , and store in a set for every pair joined by an edge.
-
Reconnecting Affected Subtrees. Removing edges from a tree partitions its vertex ordering into at most intervals. For every pair of intervals corresponding to affected subtrees, first query in time to determine whether the relevant range-reporting structure exists. If it does, query that structure for an edge joining the two subtrees; otherwise, no such edge exists in . Here, we stop the range reporting procedure once it finds at least one edge outside .
-
Locating the Affected Subtree Containing . Binary search over the sorted left endpoints of the affected intervals identifies the affected subtree containing in time.
Final Euler-Tour Structure. If the forest has maximum degree, the previous Euler-Tour structure can handle vertex and edge failures as well. We denote this final Euler-Tour structure by . More precisely, given a failed vertex-set and a failed edge-set , the nonforest edges incident to are only deleted implicitly, and they are irrelevant to the range query. In other words, we do not perform a range query on the singleton nodes in , and it is not necessary to iterate over all edges incident to and remove them from the graph explicitly (there may be such edges). So, has update time and query time, where is the total number of vertices and edges deleted from and is the total number of vertices and edges removed from outside .
-Adjacency Edges. Let be a list of vertices. The set contains an edge between every two vertices at distance at most in :
4.2.2 Constructing the Oracle
First, use Theorem 3.2 to compute a -low-degree hierarchy , where and . For brevity, let and . For each and , let denote the ancestors of . Whenever , let be the unique tree containing all terminals in ; no such choice is needed when . For each , let be the list of terminals in adjacent to at least one vertex of , ordered according to the same Euler tour of . If , this list is empty and no choice of is needed. Define as the concatenation of . We identify each entry of with the corresponding terminal copy in its tree of .
Auxiliary Graph. Define a multigraph whose vertices are the vertices of the forests in . An original vertex may appear in several trees of ; these appearances are represented by distinct copies in , and we have . The edge set consists of the following edges; for each , we add an original edge in between the terminal copies of and . For each component , we add the edges of to as artificial edges labeled by . For each tree , and each edge of , we add an edge labeled by to between the corresponding copies of the endpoints. Thus, may have parallel edges with different labels, but each original edge contributes to only lists . Thus, . Finally, construct the Euler-tour data structure that dominates the space and preprocessing time .
4.2.3 Updating the Oracle After Vertex Failure
Let be a set of failed vertices.
Affected Data Structures. We call a component affected if . When an affected component also satisfies , we call its corresponding tree affected as well. Moreover, if any tree in contains a copy of a failed vertex, we also call it an affected tree. Remove every copy of a vertex in and its incident edges from each affected tree, breaking it into affected subtrees, and mark the corresponding entries in as dead (more precisely, for implementation, the list remains fixed; an entry is treated as dead if its underlying vertex belongs to ). There are affected trees and subtrees in total, because each original vertex has at most copies. For convenience, from now on, we also refer to the entire affected trees that have no failed vertices as affected subtrees.
We need to explicitly consider these trees affected as well since in our low-degree hierarchy, a tree can contain nodes outside . But the bound on the number of affected trees will not change.
Removing Invalid Artificial Edges. There are breaks (as well as these many intervals) in each affected component , including the break between any two consecutive concatenated lists and , as well as the break caused when deletion of forest vertices/edges partitions an ancestor tree's preorder into intervals. We ignore every edge of whose endpoints lie in distinct intervals. Since edges cross each boundary and there are affected components, the number of edges of that must be ignored is bounded by . Let be the graph obtained by removing these edges from .
Reconnecting Affected Subtrees. Let be a graph whose vertices correspond to the affected subtrees. Using , add an edge between if an edge of joins the corresponding subtrees. The construction time is : respectively, failed copies and incident forest edges, and nonforest edges are removed from . Note that there might be a tree marked as affected that has no failed vertex. So, we need to query for those trees as well, but the bound still remains valid since there are at most many such affected trees with no failed vertex. Finally, compute the connected components of in time.
4.2.4 Answering Queries
If either query vertex belongs to , report that they are disconnected. Otherwise, for , perform the following steps to determine whether they are connected in .
Step 1. Find the components in that contain and as terminals. Let and be those components. If is unaffected, let be its highest unaffected ancestor. We can find in time by binary-searching the ancestors of . Define analogously. If both and exist and are equal, report that and are connected and stop.
Step 2. Find vertices and in affected subtrees that are connected to and , respectively. If is affected, set (terminal copy of in ). Otherwise, scan for a vertex adjacent to . The vertices and are connected because is unaffected, and belongs to an affected subtree because every proper ancestor of is affected. It takes time to find , since it suffices to scan at most entries of . If does not exist, then no surviving edge leaves . Define analogously, and if either or does not exist, report that and are disconnected and stop.
Step 3. Use to find the affected subtrees containing and in time, and let and be the corresponding vertices of . Report that and are connected if and only if and lie in the same connected component of . This test takes time.
Correctness. Every path in corresponds to a path in ; surviving forest and original edges represent valid edges of , and an artificial edge labeled by an unaffected component can be replaced by a path through . Artificial edges with an affected label whose endpoints lie in distinct affected subtrees are ignored in the range queries.
Conversely, map the vertices of a path to their terminal copies and contract every maximal subpath lying in a highest unaffected component . Consecutive affected subtrees are then either joined by an original edge of , or separated by an unaffected component . In the latter case, their external boundary terminals belong to and are connected by a path in . Since every proper ancestor of is affected, all surviving terminals on this artificial path belong to affected subtrees. Thus the corresponding vertices are connected in .
Hence, for any two surviving terminal copies contained in affected subtrees, their -vertices are connected in if and only if the corresponding original vertices are connected in .
Acknowledgments
We thank Yaowei Long for a very helpful discussion about connectivity oracles under vertex failures.
Sayan Bhattacharya is funded by the European Union (ERC grant, DYNALP, 101170133). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
Thatchaphol Saranurak is supported by NSF Grant CCF-2238138 and a Sloan Fellowship.
References
[BFSW26] Sayan Bhattacharya, Ermiya Farokhnejad, Thatchaphol Saranurak, and Haoze Wang. Minimum degree spanning tree: -approximation in near-linear time. arXiv preprint arXiv:2607.11413, 2026.
[BFW26] Sayan Bhattacharya, Ermiya Farokhnejad, and Haoze Wang. Additive one approximation for minimum degree spanning tree: Breaking the time barrier. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, pages 1212–1223, 2026.
[CLRS09] Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms, Third Edition. The MIT Press, 3rd edition, 2009.
[DP10] Ran Duan and Seth Pettie. Connectivity oracles for failure prone graphs. In Proceedings of the forty-second ACM Symposium on Theory of Computing, pages 465–474, 2010.
[DP20] Ran Duan and Seth Pettie. Connectivity oracles for graphs subject to vertex failures. SIAM Journal on Computing, 49(6):1363–1396, 2020.
[FLL25] Henry Fleischmann, George Z Li, and Jason Li. Faster weak expander decompositions and approximate max flow. arXiv preprint arXiv:2511.02943, 2025.
[FR94] Martin Fürer and Balaji Raghavachari. Approximating the minimum-degree steiner tree to within one of optimal. Journal of Algorithms, 17(3):409–423, 1994.
[Kos23] Evangelos Kosinas. Connectivity queries under vertex failures: Not optimal, but practical. arXiv preprint arXiv:2305.01756, 2023.
[LLP+26] Xizhe Li, Yaowei Long, David Pidugu, Thatchaphol Saranurak, and Benyu Wang. Connectivity Oracle Under Vertex Failures by Shortcutting Unbreakable Decomposition. In Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis, editors, 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026), volume 374, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.
[LRW24] Jason Li, Satish Rao, and Di Wang. Congestion-approximators from the bottom up. arXiv preprint arXiv:2407.04976, 2024.
[LS22] Yaowei Long and Thatchaphol Saranurak. Near-optimal deterministic vertex-failure connectivity oracles. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 1002–1010. IEEE, 2022.
[LW24] Yaowei Long and Yunfan Wang. Better decremental and fully dynamic sensitivity oracles for subgraph connectivity. arXiv preprint arXiv:2402.09150, 2024.
[PSS+21] Michal Pilipczuk, Nicole Schirrmacher, Sebastian Siebertz, Szymon Toruńczyk, and Alexandre Vigny. Algorithms and data structures for first-order logic with connectivity under vertex failures. arXiv preprint arXiv:2111.03725, 2021.
[vdBS19] Jan van den Brand and Thatchaphol Saranurak. Sensitive distance and reachability oracles for large batch updates. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 424–435. IEEE, 2019.
A Optimality of Our Low-Degree Hierarchy
In this section, we show that our construction of the low-degree hierarchy in Section 3 is optimal.
Lemma A.1. For any and , there exists a graph with nodes such that any low-degree hierarchy of either has max-degree or has depth .
Before we prove this lemma, we show how this implies that our hierarchy is optimal.
Theorem A.2. Assume that are two non-decreasing functions. If there exists an algorithm (randomized or deterministic) that constructs a -low-degree hierarchy on input graphs of nodes, then we must have that . Accordingly, .
Proof. By Lemma A.1 for and , there exist a graph with (for some pure constant ) nodes such that any low-degree hierarchy of either has maximum degree at least or has depth at least . Now, we show that . If , by running the existential algorithm on , we achieve a low-degree hierarchy of with max-degree and depth . This is clearly a contradiction. So, we have
This theorem shows that our construction of the low-degree hierarchy is optimal because any algorithm that constructs a low-degree hierarchy with an degree parameter must have a depth of at least .
A.1 Proof of Lemma A.1
We define inductively. Let be a graph that consists of a single node called the root of . For any , we construct as follows;
-
Consider a node as the root of .
-
Make copies of like .
-
For each , connect to the root of .
The following figure illustrates and for .
Eventually, we define to be . It is straightforward to see that the number of nodes in is . Now, consider a -low-degree hierarchy of with degree parameter . We show the depth of the hierarchy is at least . This directly follows from the claim below.
Figure 2: An illustration of and .

Claim A.3. For any , the low-degree hierarchy has depth at least i and moreover must contain at least one node from each copy of in the construction of (recall that there are copies of in total).
Proof. The claim is trivial for since . Now, assume that the claim holds for ; in particular, the hierarchy has depth at least and is nonempty. Since is non-empty, the hierarchy must have depth at least . So, level exists and . Consider one copy of in the construction of and consider the internal copies of inside . According to the induction hypothesis contains at least one node in each for . Now, for the sake of contradiction, assume that does not contain any node in .
As a result, all the terminals in must belong to which means that each copy contains at least one node in . Moreover, is a Steiner forest for w.r.t. and the entire is contained in one connected component of . We conclude that the terminals in must be spanned by one connected component (a tree) of . Since has at least one node in each of the copies , and these copies are connected to the rest of the graph only via the edge to the root of , we conclude that the tree must contain all the edges between and the roots of the copies for all . This is clearly in contradiction with the assumption that the maximum degree of is . Because this argument holds for every arbitrary copy of , the proof is complete.
B Pseudocode of the Implementation of Theorem 1.1
Algorithm 1: Our algorithm for Theorem 1.1.
1 Let , , , and .
2 Initialize by scanning all the neighbors of each .
3 while is not empty do
4 Pop an arbitrary . if and are low-degree vertices in and they belong to different connected components of then
5 .
6 Update and the disjoint-set union structure.
7 else if is a low-degree vertex in and then
8 Let be the connected component of containing .
9 Let .
10 Let (Algorithm 2).
11 Regardless of the value of , remove every vertex in from , and update , , and the disjoint-set union structure to reflect the outcome of the DFS.
12 Let .
13 return .
Algorithm 2: DFS, which returns whether it finds a linking path; is the set of vertices visited by the current DFS.
1 Mark as visited and add it to .
2 Scan the neighbors of in to determine whether some neighbor is a low-degree vertex of in a component different from .
3 if such exists then
4 Let be the path from the root of the DFS tree to the current .
5 Add to as follows:
6
7 .
8 return TRUE.
9 for each neighbor of in do
10 if is not marked visited then
11 if DFS returns TRUE then
12 return TRUE.
13 return FALSE.