arXiv:2610.21531cs.DSOct 2026

Manuscript Offprint

arXiv:2610.21531

Incremental Exact Vertex Connectivity

Felix Adena, Monika Henzinger, Christoph Kern, Daniel Rutschmann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study the problem of maintaining the vertex connectivity κ\kappa of a graph under edge insertions. For undirected graphs, our algorithm uses O(κ4log⁡2n)O(\kappa^4 \log^2 n) amortized time per edge insertion. After each edge insertion, the algorithm outputs the current value of κ\kappa, plus a set of κ\kappa vertices whose removal disconnects the graph. Our algorithm is Monte-Carlo randomized and works with a randomness-adaptive adversary. The algorithm also works on directed graphs against an oblivious adversary, which is equivalent to an output-adaptive adversary if we only have to output the current value of κ\kappa.

Previously, algorithms for maintaining the vertex connectivity with o(n)o(n) time per edge insertion were only known for κ≤2\kappa \leq 2, and need O~(log⁡2n)\tilde{O}(\log^2 n) and O(n)O(\sqrt{n}) time per edge insertion for κ=1,2\kappa = 1, 2, respectively. Moreover, for κ>4\kappa > 4, no algorithm faster than recomputation from scratch was known.

We complement our algorithm with a conditional lower bound: Under the OMv conjecture, any insertions-only algorithm that outputs the current value of κ\kappa after every insertion needs Ω(n1−ε)\Omega(n^{1-\varepsilon}) amortized time per edge insertion for κ=Θ(n)\kappa = \Theta(n). Previous conditional lower bounds for this problem only apply to worst case running time, or algorithms that support both edge insertions and edge deletions.

Funding This research was supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 101019564), and the Austrian Science Fund (FWF) under grant DOI 10.55776/Z422.

For open access purposes, the authors have applied a CC BY public copyright license to any author-accepted manuscript version arising from this submission. 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.

Figure

European Commission

∗^{*}Institute of Science and Technology Austria (ISTA), Klosterneuburg, Austria

1 Introduction

The vertex connectivity κ(G)\kappa(G) of a (directed) graph G=(V,E)G = (V, E) represents the minimum number of vertices whose removal causes G to no longer be strongly connected or turns the graph into a 1-vertex graph, whereas the edge connectivity λ(G)\lambda(G) denotes the minimum number of edges whose removal causes G to no longer be strongly connected. Computing the vertex and edge connectivity are fundamental problems needed, for example, to determine the resilience of a network to vertex and edge failures, respectively.

Edge connectivity. In the past, a large body of work has concentrated on computing edge connectivity in undirected graphs, leading to O~(m)1\tilde{O}(m)^1 time randomized [KS96] and deterministic [KT15, HRW20, HLRW24] algorithms, where m=∣E∣m = |E|. The problem has also been studied in the dynamic setting, where each update operation can insert or delete one edge: It can be solved in update time sublinear in mm [GHNSTW23, VC26] and in polylogarithmic amortized time per insertion in the insertions-only setting [GHT18] 2^2. In directed graphs, our understanding still lags behind: Currently there are three different algorithms with incomparable running times, namely O(min⁡{nm1/3,n}⋅m1+o(1))O(\min\{\frac{n}{m^{1/3}}, \sqrt{n}\} \cdot m^{1+o(1)}) [CLNPSQ21], O(κm)O(\kappa m) [Gab95], and O(n2)O(n^2) [CQ21], where n=∣V∣n = |V|. In the fully dynamic setting 3^3 there are strong conditional lower bounds showing that even just testing whether the graph is strongly connected (which is equivalent to testing whether λ>0\lambda > 0) takes near-linear time per update or query (based on SETH) [AV14] or Ω(m1/2−ε)\Omega(m^{1/2-\varepsilon}) (based on OMv) [HKNS15]. In the fully dynamic setting these lower bounds are for the amortized running time; in the insertions-only or deletions-only setting these bounds are for the worst-case running time. Recently, insertions-only and deletions-only algorithms for testing strong connectivity and 2-edge connectivity in O(m1+o(1))O(m^{1+o(1)}) and O~(n2)\tilde{O}(n^2) total time for all updates, respectively, were given [CKLMP24, BCK +^{+}24, GGI25]. There is no known insertions-only or deletions-only algorithm for computing edge-connectivity in directed graphs better than recomputation from scratch.

Vertex connectivity. As kk-vertex connectivity implies kk-edge connectivity but not vice versa, computing the vertex connectivity is generally considered more challenging than computing the edge connectivity. Motivated by the progress for edge connectivity, computing vertex connectivity has also seen renewed interest: In a recent series of results, the running time for undirected graphs was reduced to O~(m+nκ3)\tilde{O}(m + n\kappa^3) [NSY19, FNYSY20] and to O(m1+o(1))O(m^{1+o(1)}) [LNPSY21]. In directed graphs the O~(nm)\tilde{O}(nm) running time of the randomized algorithm of [HRG00] was recently improved in four ways: (1) by a deterministic algorithm [JNSY25] with almost the same running time, namely O(mn1+o(1))O(mn^{1+o(1)}), (2) by randomized algorithms with O(min⁡{mn11/12+o(1),n2+o(1)})O(\min\{mn^{11/12+o(1)}, n^{2+o(1)}\}) [LNPSY21] and O(min⁡{m1+o(1)κ,n2+o(1)})O(\min\{m^{1+o(1)}\kappa, n^{2+o(1)}\}) [CMT26] running time, (3) by a reduction [FJMY26] to the undirected setting, resulting in a randomized algorithm with O(n2+o(1))O(n^{2+o(1)}) running time, and (4) by an algorithm with time linear in mm and polynomial in κ\kappa, namely O~(mκ2)\tilde{O}(m\kappa^2), by [FNYSY20].

However, the dynamic setting for vertex connectivity is still barely understood. In undirected graphs the classic results consist of (1) a (2+ε)(2+\varepsilon)-approximate insertions-only algorithm with O(n/ε)O(n/\varepsilon) amortized time per update [Hen97], (2) algorithms for testing whether, for a fixed value k=2,3k = 2, 3 or 4, the graph is kk-connected and, if not, returning a cut of size at most k−1k - 1, in O(n)O(\sqrt{n}), O(n)O(n), and O(nα(n,n))4O(n\alpha(n,n))^4 time per update, respectively [EGIN97], and (3) testing whether the graph is kk-connected for a fixed value kk in time O(n1.575+k2n)O(n^{1.575} + k^2n) per update [San07]. Note that for sparse undirected graphs the results for k=3k = 3 and k=4k = 4 are almost the same as the best static algorithm.

1^{1}The O~(⋅)\tilde{O}(\cdot) notation hides polylogarithmic factors.

2^{2}There is also a large body of work on (1+ε)(1+\varepsilon)-approximate dynamic edge connectivity algorithms, omitted here to keep the presentation simple.

3^{3}The fully dynamic setting allows both edge insertions and deletions.

4^{4}Here α\alpha denotes the two-parameter inverse Ackermann function

Additionally, given two vertices ss and tt as query parameters, there is a fully dynamic algorithm that can test whether ss and tt are 2-connected in O(log⁡n)O(\log n) time and process updates in O~(log⁡2n)\tilde{O}(\log^2 n) time per update [HNRS25]. Comparing with the performance for dynamic edge connectivity in undirected graphs, it is interesting to ask (A) whether there exists an insertions-only algorithm with polylogarithmic amortized update time, and (B) whether there exists a sublinear (in mm) time algorithm for the fully dynamic setting. Furthermore, this leads to question (C) whether an insertions-only or deletions-only algorithm with amortized running time O~(poly(κ))\tilde{O}(\text{poly}(\kappa)) is possible.

In directed graphs the same conditional lower bounds for fully dynamic algorithms as above for edge connectivity apply, showing that even testing whether κ>0\kappa>0 takes at least near-linear time per update or query (from SETH) [AV14] or Ω(m1/2−ε)\Omega(m^{1/2-\varepsilon}) (from OMv) [HKNS15]. As mentioned above, these lower bounds also apply to incremental/decremental algorithms with worst-case (but not amortized) running time. This leads to the question (D) whether an insertions-only or deletions-only algorithm with amortized running time O~(poly(κ))\tilde{O}(\text{poly}(\kappa)) is also possible in directed graphs.

The goal of this paper is to answer these questions. More specifically, we study algorithms for dynamic vertex connectivity both in directed and undirected graphs.

In our analysis we distinguish between two different notions of modeling an adaptive adversary, similarly to [NS17, BLS23, CST25, BGGHJM25]. An output-adaptive adversary gets to pick the next update or query based on the algorithm's previous outputs, but not its internal state or random bits; and a randomness-adaptive adversary additionally has full knowledge of the algorithm's internal state, including past random choices, but not future random bits. In contrast, an oblivious adversary has to fix the full update sequence in advance, i.e., independently of the algorithm's outputs and internal state. We remark that, for problems where each query has a unique correct answer, any algorithm that works with an oblivious adversary automatically also works with an output-adaptive adversary.

GraphEdge ConnectivityVertex Connectivity
Undirectedpolylog⁡(n)\text{poly}\log(n) [GHT18]O~(poly(κ))\tilde{O}(\text{poly}(\kappa)) with randomness-adaptive adversaryAmortized Ω(κ3−ε/m)\Omega(\kappa^{3-\varepsilon}/\text{m}) updateor Ω(κ2−ε)\Omega(\kappa^{2-\varepsilon}) query time
Directed—O~(poly(κ))\tilde{O}(\text{poly}(\kappa)) with oblivious adversaryAmortized Ω(κ3−ε/m)\Omega(\kappa^{3-\varepsilon}/\text{m}) updateor Ω(κ2−ε)\Omega(\kappa^{2-\varepsilon}) query timeWorst-case Ω(m1−ε)\Omega(m^{1-\varepsilon}) updateor Ω(m2−ε)\Omega(m^{2-\varepsilon}) query time [AV14, HKNS15]

Table 1: Running time for insertions-only algorithms; our new results are in bold. The results hold for arbitrary κ\kappa, including κ=Θ(n)\kappa = \Theta(n). All lower bounds are conditional lower bounds.

Our contribution. In this paper we show the following two results (see also Table 1):

(1) We give an insertions-only algorithm for vertex connectivity in undirected graphs with amortized update time O(κ4log⁡2(n))O(\kappa^4 \log^2(n)), where κ\kappa is the vertex connectivity in the final graph. It works with a randomness-adaptive adversary and can either return κ\kappa in constant time or a minimum vertex cut in time linear in its size. Our algorithm also works for vertex connectivity in directed graphs if the adversary is oblivious, or, if the adversary is output-adaptive and the algorithm only has to return the value κ\kappa. For these types of adversaries, the running time improves to O(κ3log⁡2(n))O(\kappa^3 \log^2(n)), both on directed and undirected graphs. Note that the above mentioned lower bounds that are polynomial in nn do not apply as our algorithm achieves a bound of O~(poly(κ))\tilde{O}(\text{poly}(\kappa)) on the amortized time per insertion. Our algorithm answers questions (C) and (D) positively and is the first dynamic algorithm to achieve such a bound.

(2) We give a novel conditional lower bound based on the OMv assumption: There is no insertions-only (or deletions-only) algorithm for minimum vertex cuts on unweighted, undirected graphs that, given polynomial (in nn and mm) preprocessing time, supports edge insertions (or deletions) in amortized time O(κ3−ε/m)O(\kappa^{3-\varepsilon}/m) and queries (that return the value of κ\kappa) in O(κ2−ε)O(\kappa^{2-\varepsilon}). There are no assumptions on κ\kappa. For κ∈Θ(n)\kappa \in \Theta(n), these bounds are O(n1−ε)O(n^{1-\varepsilon}) for insertions (or deletions), and O(n2−ε)O(n^{2-\varepsilon}) for queries.

Note that this lower bound answers question (A) in the negative and (for graphs with κ=Θ(n)\kappa = \Theta(n)) also answers question (B) in the negative. Said differently, it helps to explain the lack of progress in finding insertions-only algorithms with running time polylogarithmic in nn (and not polynomial in κ\kappa): No such algorithm can exist. It also shows a dichotomy between computing edge connectivity and vertex connectivity and substantiates the intuition that vertex connectivity is more challenging: As mentioned above, there exists an insertions-only algorithm for edge connectivity with polylogarithmic in nn (and independent of the edge connectivity value) running time, while no such algorithm can exist for computing vertex connectivity.

The remainder of the paper is organized as follows: We introduce all necessary definitions and asymptotic notation in Section 2, followed by a comprehensive technical overview of our insertions-only algorithm and its distinct phases in Section 3. In Section 4, we formally establish our conditional lower bounds based on the OMv conjecture. Section 5 contains the rigorous running time and correctness analysis of our algorithm. The subsequent sections are dedicated to the proofs and analysis of the subroutines used by the algorithm: Section 6 details our randomized sampling procedures, Section 7 presents the incremental data structure that is the core of our algorithm, and Section 8 concludes with some auxiliary data structures from the literature that we use to handle special cases, such as the graph not being strongly connected.

References (34)