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.
Introduction
The vertex connectivity κ ( G ) \kappa(G) κ ( G ) of a (directed) graph G = ( V , E ) G = (V, E) G = ( V , E ) represents the minimum number of vertices whose removal causes G G G to no longer be strongly connected or turns the graph into a 1-vertex graph, whereas the edge connectivity λ ( G ) \lambda(G) λ ( G ) denotes the minimum number of edges whose removal causes G G 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 \widetilde{O}(m)^1 O ( m ) 1 time randomized [30 ] and deterministic [31 , 27 , 23 ] algorithms, where m = ∣ E ∣ 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 m m m [GHNSTW23, VC26] and in polylogarithmic amortized time per insertion in the insertions-only setting [GHT18].1 In directed graphs , our understanding still lags behind: Currently there are three different algorithms with incomparable running times, namely O ( min { n m 1 / 3 , n } ⋅ m 1 + o ( 1 ) ) O(\min\{ \frac{n}{m^{1/3}}, \sqrt{n} \} \cdot m^{1+o(1)}) O ( min { m 1/3 n , n } ⋅ m 1 + o ( 1 ) ) [CLNPSQ21], O ( κ m ) O(\kappa m) O ( κm ) [15 ] , and O ( n 2 ) O(n^2) O ( n 2 ) [CQ21], where n = ∣ V ∣ n = |V| n = ∣ V ∣ .
In the fully dynamic setting2 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 λ > 0 ) takes near-linear time per update or query (based on SETH) [1 ] or Ω ( m 1 / 2 − ε ) \Omega(m^{1/2-\varepsilon}) Ω ( m 1/2 − ε ) (based on OMv) [22 ] . 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 ( m 1 + o ( 1 ) ) O(m^{1+o(1)}) O ( m 1 + o ( 1 ) ) and O ~ ( n 2 ) \widetilde{O}(n^2) O ( n 2 ) total time for all updates, respectively, were given [6 , 2 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 k k k -vertex connectivity implies k k k -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 + m n 3 ) \widetilde{O}(m + mn^3) O ( m + m n 3 ) [36 FNYSY20] and to O ( m 1 + o ( 1 ) ) O(m^{1+o(1)}) O ( m 1 + o ( 1 ) ) [LNPSY21]. In directed graphs the O ~ ( m n ) \widetilde{O}(mn) O ( mn ) running time of the randomized algorithm of [26 ] was recently improved in four ways: (1) by a deterministic algorithm [29 ] with almost the same running time, namely O ( m n 1 + o ( 1 ) ) O(mn^{1+o(1)}) O ( m n 1 + o ( 1 ) ) , (2) by randomized algorithms with O ( min { m 11 / 12 + o ( 1 ) , n 2 + o ( 1 ) } ) O(\min\{m^{11/12+o(1)}, n^{2+o(1)}\}) O ( min { m 11/12 + o ( 1 ) , n 2 + o ( 1 ) }) [LNPSY21] and O ( min { m 1 + o ( 1 ) κ , n 2 + o ( 1 ) } ) O(\min\{m^{1+o(1)}\kappa, n^{2+o(1)}\}) O ( min { m 1 + o ( 1 ) κ , n 2 + o ( 1 ) }) [8 ] running time, (3) by a reduction [13 ] to the undirected setting, resulting in a randomized algorithm with O ( n 2 + o ( 1 ) ) O(n^{2+o(1)}) O ( n 2 + o ( 1 ) ) running time, and (4) by an algorithm with time linear in m m m and polynomial in κ \kappa κ , namely O ~ ( m κ 2 ) \widetilde{O}(m\kappa^2) O ( m κ 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) ( 2 + ε ) -approximate insertions-only algorithm with O ( n / ε ) O(n/\varepsilon) O ( n / ε ) amortized time per update [21 ] , (2) algorithms for k ≤ 4 k \leq4 k ≤ 4 , namely (2a) fully dynamic algorithms for testing whether, for a fixed value k = 2 , 3 k = 2, 3 k = 2 , 3 or 4 4 4 , the graph is k k k -connected and, if not, returning a cut of size at most k − 1 k - 1 k − 1 , in O ( polylog n ) O(\operatorname{polylog} n) O ( polylog n ) [20 NRS25] , O ( n ) O(n) O ( n ) , and O ( n α ( n , n ) ) O(n\alpha(n,n)) O ( n α ( n , n )) 3 time per update, respectively, and (2b) insertions-only algorithms in the same setting for k = 2 k = 2 k = 2 with O ( log n ) O(\log n) O ( log n ) worst-case update time [33 ] , and k = 3 k = 3 k = 3 with O ( log n ) O(\log n) O ( log n ) amortized update time [5 ] or O ( log 3 n ) O(\log^{3} n) O ( log 3 n ) worst-case update time [25 ] , and (3) testing whether the graph is k k k -connected for a fixed value k k k in time O ( n 1.575 + k 2 n ) O(n^{1.575} + k^{2}n) O ( n 1.575 + k 2 n ) per update [San07]. Note that for sparse undirected graphs the results for k = 4 k = 4 k = 4 are almost the same as the best static algorithm.
Additionally, given two vertices s s s and t t t as query parameters, there are (4) fully dynamic algorithms that can test whether s s s and t t t are 2-connected in O ( log n ) O(\log n) O ( log n ) time and process updates in O ~ ( log 2 n ) \widetilde{O}(\log^{2} n) O ( log 2 n ) time [HNRS25], and (5) incremental algorithms based on SPQR trees that can test whether s s s and t t t are 3-connected and process updates in O ( log n ) O(\log n) O ( log n ) amortized time [5 ] or O ( log 3 n ) O(\log^{3} n) O ( log 3 n ) worst-case time [25 ] . 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 m m m ) 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 ( κ ) ) \widetilde{O}(\operatorname{poly}(\kappa)) O ( poly ( κ )) 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 κ > 0 takes at least near-linear time per update or query (from SETH) [1 ] or Ω ( m 1 / 2 − ε ) \Omega(m^{1/2-\varepsilon}) Ω ( m 1/2 − ε ) (from OMv) [22 ] . 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 ( κ ) ) \widetilde{O}(\operatorname{poly}(\kappa)) O ( poly ( κ )) 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 [35 , 4 , 10 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.
Our contribution. In this paper we show the following two results (see also Table 1 ):
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) κ = Θ ( n ) . All lower bounds are conditional lower bounds.
(1) We give an insertions-only algorithm for vertex connectivity in undirected graphs with amortized update time O ( κ 4 log 2 ( n ) ) O(\kappa^4 \log^2(n)) O ( κ 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 ( κ 3 log 2 ( n ) ) O(\kappa^3 \log^2(n)) O ( κ 3 log 2 ( n )) , both on directed and undirected graphs. Note that the above mentioned lower bounds that are polynomial in n n n do not apply as our algorithm achieves a bound of O ~ ( poly ( κ ) ) \widetilde{O}(\operatorname{poly}(\kappa)) O ( poly ( κ )) 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 n n n and m m m ) preprocessing time, supports edge insertions (or deletions) in amortized time O ( κ 3 − ε / m ) O(\kappa^{3-\varepsilon}/m) O ( κ 3 − ε / m ) and queries (that return the value of κ \kappa κ ) in O ( κ 2 − ε ) O(\kappa^{2-\varepsilon}) O ( κ 2 − ε ) . There are no assumptions on κ \kappa κ . For κ ∈ Θ ( n ) \kappa\in\Theta(n) κ ∈ Θ ( n ) , these bounds are O ( n 1 − ε ) O(n^{1-\varepsilon}) O ( n 1 − ε ) for insertions (or deletions), and O ( n 2 − ε ) O(n^{2-\varepsilon}) O ( n 2 − ε ) for queries.
Note that this lower bound answers question (A) in the negative and (for graphs with κ = Θ ( n ) \kappa= \Theta(n) κ = Θ ( 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 n n n (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 n n n (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 § 2 , followed by a comprehensive technical overview of our insertions-only algorithm and its distinct phases in § 3 . In § 4 , we formally establish our conditional lower bounds based on the OMv conjecture. § 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: § 6 details our randomized sampling procedures, § 7 presents the incremental data structure that is the core of our algorithm, and § 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.
Preliminaries
Throughout this paper, all logarithms are base-2 unless otherwise specified. With high probability (w.h.p.) means with probability at least 1 − n − c 1-n^{-c} 1 − n − c for some constant c ≥ 1 c \ge1 c ≥ 1 . Unless explicitly stated otherwise, we always consider simple graphs , that is, graphs without self-loops or parallel edges.
Graphs and Neighborhoods. Let G = ( V , E ) G = (V,E) G = ( V , E ) be a directed or undirected graph with n = ∣ V ∣ n = |V| n = ∣ V ∣ vertices and m = ∣ E ∣ m = |E| m = ∣ E ∣ edges. For a subset of vertices S ⊆ V S \subseteq V S ⊆ V , we let G ∖ S G \setminus S G ∖ S denote the subgraph induced by V ∖ S V \setminus S V ∖ S . For two disjoint vertex sets S , T ⊆ V S,T \subseteq V S , T ⊆ V , we define E G ( S , T ) = { ( u , v ) ∈ E ∣ u ∈ S , v ∈ T } E_G(S,T) = \{(u,v) \in E \mid u \in S, v \in T\} E G ( S , T ) = {( u , v ) ∈ E ∣ u ∈ S , v ∈ T } as the set of directed edges from S S S to T T T . In undirected graphs, edges are unoriented, and E G ( S , T ) E_G(S,T) E G ( S , T ) denotes the set of edges with one endpoint in S S S and the other in T T T . We drop the subscript G G G when the graph is clear from the context.
For an edge e = ( u , v ) e=(u,v) e = ( u , v ) , denote by e ← = ( v , u ) \overleftarrow{e}=(v,u) e = ( v , u ) the reversed edge . For a graph G = ( V , E ) G=(V,E) G = ( V , E ) , we denote by G ← = ( V , { e ← : e ∈ E } ) \overleftarrow{G}=(V,\{\overleftarrow{e}:e\in E\}) G = ( V , { e : e ∈ E }) the reversed graph , with the same vertex set but all edges reversed. For a vertex v ∈ V v\in V v ∈ V , we denote its set of outgoing and incoming edges as ∂ G + ( v ) = E G ( { v } , V ∖ { v } ) \partial_G^+(v)=E_G(\{v\},V\setminus\{v\}) ∂ G + ( v ) = E G ({ v } , V ∖ { v }) and ∂ G − ( v ) = E G ( V ∖ { v } , { v } ) \partial_G^-(v)=E_G(V\setminus\{v\},\{v\}) ∂ G − ( v ) = E G ( V ∖ { v } , { v }) , respectively. The total set of incident edges is ∂ G ( v ) = ∂ G + ( v ) ∪ ∂ G − ( v ) \partial_G(v)=\partial_G^+(v)\cup\partial_G^-(v) ∂ G ( v ) = ∂ G + ( v ) ∪ ∂ G − ( v ) . The corresponding degrees are deg G + ( v ) = ∣ ∂ G + ( v ) ∣ \deg_G^+(v)=|\partial_G^+(v)| deg G + ( v ) = ∣ ∂ G + ( v ) ∣ , deg G − ( v ) = ∣ ∂ G − ( v ) ∣ \deg_G^-(v)=|\partial_G^-(v)| deg G − ( v ) = ∣ ∂ G − ( v ) ∣ , and deg G ( v ) = deg G + ( v ) + deg G − ( v ) \deg_G(v)=\deg_G^+(v)+\deg_G^-(v) deg G ( v ) = deg G + ( v ) + deg G − ( v ) . The out-neighbors and in-neighbors of v v v are N G + ( v ) = { u ∣ ( v , u ) ∈ E } N_G^+(v)=\{u\mid(v,u)\in E\} N G + ( v ) = { u ∣ ( v , u ) ∈ E } and N G − ( v ) = { u ∣ ( u , v ) ∈ E } N_G^-(v)=\{u\mid(u,v)\in E\} N G − ( v ) = { u ∣ ( u , v ) ∈ E } . The minimum and maximum out-degree of G G G are δ + ( G ) = min v ∈ V deg G + ( v ) \delta^+(G)=\min_{v\in V}\deg_G^+(v) δ + ( G ) = min v ∈ V deg G + ( v ) and Δ + ( G ) = max v ∈ V deg G + ( v ) \Delta^+(G)=\max_{v\in V}\deg_G^+(v) Δ + ( G ) = max v ∈ V deg G + ( v ) , and analogously δ − ( G ) , Δ − ( G ) \delta^-(G),\Delta^-(G) δ − ( G ) , Δ − ( G ) for in-degrees and δ ( G ) , Δ ( G ) \delta(G),\Delta(G) δ ( G ) , Δ ( G ) for the total degree. In undirected graphs, we drop the orientation superscripts.
Volumes and Boundaries. For a vertex subset A ⊆ V A\subseteq V A ⊆ V , we define its boundary edges as the edges leaving A A A , denoted by ∂ G + ( A ) = E G ( A , V ∖ A ) \partial_G^+(A)=E_G(A,V\setminus A) ∂ G + ( A ) = E G ( A , V ∖ A ) , and the edges entering A A A , denoted by ∂ G − ( A ) = E G ( V ∖ A , A ) \partial_G^-(A)=E_G(V\setminus A,A) ∂ G − ( A ) = E G ( V ∖ A , A ) . The total boundary is ∂ G ( A ) = ∂ G + ( A ) ∪ ∂ G − ( A ) \partial_G(A)=\partial_G^+(A)\cup\partial_G^-(A) ∂ G ( A ) = ∂ G + ( A ) ∪ ∂ G − ( A ) . This uses the same notation as the incident edges of a vertex introduced above, where ∂ G ( v ) = ∂ G ( { v } ) \partial_G(v)=\partial_G(\{v\}) ∂ G ( v ) = ∂ G ({ v }) . Similarly, we overload the neighborhood notation to a set of vertices, defining its out- and in-neighbors as the endpoints of the boundary edges outside A A A , that is N G + ( A ) = { v ∣ ( u , v ) ∈ ∂ G + ( A ) } N_G^+(A)=\{v\mid(u,v)\in\partial_G^+(A)\} N G + ( A ) = { v ∣ ( u , v ) ∈ ∂ G + ( A )} and N G − ( A ) = { u ∣ ( u , v ) ∈ ∂ G − ( A ) } N_G^-(A)=\{u\mid(u,v)\in\partial_G^-(A)\} N G − ( A ) = { u ∣ ( u , v ) ∈ ∂ G − ( A )} , with N G ( A ) = N G + ( A ) ∪ N G − ( A ) N_G(A)=N_G^+(A)\cup N_G^-(A) N G ( A ) = N G + ( A ) ∪ N G − ( A ) . We define the out-volume and in-volume of the set A A A as the sum of the respective degrees of its vertices, meaning vol G + ( A ) = ∑ v ∈ A deg G + ( v ) \operatorname{vol}_G^+(A)=\sum_{v\in A}\deg_G^+(v) vol G + ( A ) = ∑ v ∈ A deg G + ( v ) and vol G − ( A ) = ∑ v ∈ A deg G − ( v ) \operatorname{vol}_G^-(A)=\sum_{v\in A}\deg_G^-(v) vol G − ( A ) = ∑ v ∈ A deg G − ( v ) . The total volume is vol G ( A ) = vol G + ( A ) + vol G − ( A ) \operatorname{vol}_G(A)=\operatorname{vol}_G^+(A)+\operatorname{vol}_G^-(A) vol G ( A ) = vol G + ( A ) + vol G − ( A ) .
Vertex Connectivity and Cuts. A directed graph G G G is strongly connected if there is a directed path between every pair of vertices. A vertex cut is a set S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) such that G ∖ S G\setminus S G ∖ S is not strongly connected or consists of a single vertex. The size of the vertex cut is ∣ S ∣ |S| ∣ S ∣ . An ordered partition of the vertex set V V V into three disjoint sets ( L , S , R ) (L,S,R) ( L , S , R ) such that L L L and R R R are non-empty and there are no edges from L L L to R R R , meaning E G ( L , R ) = ∅ E_G(L,R)=\varnothing E G ( L , R ) = ∅ , is called a separation triple . If ( L , S , R ) (L,S,R) ( L , S , R ) is a separation triple, then S S S is always a vertex cut. Conversely, every vertex cut S S S with ∣ S ∣ ≠ n − 1 |S|\ne n-1 ∣ S ∣ = n − 1 lies in some separation triple ( L , S , R ) (L,S,R) ( L , S , R ) : for example, we may take L L L to be a strongly connected component of G ∖ S G\setminus S G ∖ S with no outgoing edges.
If ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ , we refer to ( L , S , R ) (L,S,R) ( L , S , R ) as a κ \kappa κ -separation triple. For two specific vertices s s s and t t t , an ( s , t ) (s,t) ( s , t ) -separation triple is a separation triple ( L , S , R ) (L,S,R) ( L , S , R ) where s ∈ L s\in L s ∈ L and t ∈ R t\in R t ∈ R . The vertex connectivity of G G G , denoted by κ ( G ) \kappa(G) κ ( G ) , is the minimum size of a vertex cut in G G G . A graph is k k k -connected if κ ( G ) ≥ k \kappa(G)\ge k κ ( G ) ≥ k .
Dynamic Setting. In the incremental dynamic setting, the graph starts empty (or with an initial edge set) and undergoes a sequence of edge insertions. We generally let m m m denote the total number of edges in the graph after all insertions have been processed.
Overview
We give an overview of our techniques. As we use different subroutines depending on whether one side of the cut has small volume or not, we need the following definition:
Definition 1. Let G G G be a graph. A ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple is a separation triple ( L , S , R ) (L,S,R) ( L , S , R ) with ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ and vol G ( L ) ≤ ν \operatorname{vol}_G(L)\le\nu vol G ( L ) ≤ ν . We similarly define a ( κ , < ν ) (\kappa,<\nu) ( κ , < ν ) -separation triple, ( κ , ≥ ν ) (\kappa,\ge\nu) ( κ , ≥ ν ) -separation triple, etc. For a vertex s ∈ V ( G ) s\in V(G) s ∈ V ( G ) , an s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple is a ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple with s ∈ L s\in L s ∈ L . We say that the graph G G G is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready if G G G is κ \kappa κ -connected and has no ( κ , < ν ) (\kappa,<\nu) ( κ , < ν ) -separation triple.
For ease of presentation, suppose that the initial graph G G G is strongly connected. Our algorithm operates in rounds. At the start of each round, we assume that G G G is κ \kappa κ -connected, and during the round, we process edge insertions until G G G has no vertex cuts of size κ \kappa κ . Then, we increment κ \kappa κ and start the next round. We may assume that κ \kappa κ stays below n 2 \frac{n}{2} 2 n : Indeed, once κ ≥ n 2 \kappa\ge\frac{n}{2} κ ≥ 2 n , we can afford to run the algorithm of [8 , 13 ] after every edge insertion, since O ( n 2 + o ( 1 ) ) ⊆ O ( κ 3 ) O(n^{2+o(1)}) \subseteq O(\kappa^3) O ( n 2 + o ( 1 ) ) ⊆ O ( κ 3 ) .
Each round consists of O ( log m ) O(\log m) O ( log m ) phases, indexed by a parameter ν = 1 , 2 , 4 , 8 , … , m \nu= 1, 2, 4, 8, \ldots, m ν = 1 , 2 , 4 , 8 , … , m . At the start of each phase, we require both G G G and the reversed graph G ← \overleftarrow{G} G to be ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready. The phase first processes edge insertions until there are no ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples in G G G , at which point G G G is ( κ , 2 ν ) (\kappa,2\nu) ( κ , 2 ν ) -ready. We do the same with G ← \overleftarrow{G} G . Thus, at the end of the phase, both G G G and G ← \overleftarrow{G} G are ( κ , 2 ν ) (\kappa,2\nu) ( κ , 2 ν ) -ready. Hence, every remaining κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) has vol G + ( L ) ≥ 2 ν \operatorname{vol}^{+}_{G}(L) \ge2\nu vol G + ( L ) ≥ 2 ν and vol G − ( R ) ≥ 2 ν \operatorname{vol}^{-}_{G}(R) \ge2\nu vol G − ( R ) ≥ 2 ν .
To implement a phase, we first sample a set T T T of terminals with the goal that L ∩ T ≠ ∅ L \cap T \ne\varnothing L ∩ T = ∅ for any κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) with large enough volume vol G + ( L ) ≥ ν \operatorname{vol}^{+}_{G}(L) \ge\nu vol G + ( L ) ≥ ν . For this, we adapt the sampling procedure of [34 ] that samples each vertex u u u with probability roughly 2 deg G + ( u ) / ν 2\deg^{+}_{G}(u)/\nu 2 deg G + ( u ) / ν .
Theorem 2 (SampleRoots, modified from [34 Lemma 2.5] ). There is a randomized algorithm that, given a directed graph G G G on n n n vertices and m m m edges and a volume parameter ν \nu ν , outputs a set T ⊆ V ( G ) T \subseteq V(G) T ⊆ V ( G ) of size at most 2 m ν \frac{2m}{\nu} ν 2 m , such that for every set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) with vol G + ( A ) ≥ ν \operatorname{vol}^{+}_{G}(A) \ge\nu vol G + ( A ) ≥ ν , we have Pr [ A ∩ T = ∅ ] ≤ 1 2 \Pr[A \cap T = \varnothing] \le\frac{1}{2} Pr [ A ∩ T = ∅ ] ≤ 2 1 . The algorithm runs in O ( m ) O(m) O ( m ) time.
Then, for each vertex s ∈ T s \in T s ∈ T , we build an incremental data structure that reports an s s s -rooted vertex cut of size κ \kappa κ whenever an s s s -rooted ( κ , ≤ 2 ν ) (\kappa,\le2\nu) ( κ , ≤ 2 ν ) -separation triple exists, and otherwise certifies that no such triple exists. Since we instantiate one such structure per vertex s ∈ T s \in T s ∈ T , its initialization must run in O ( ν poly ( κ ) polylog n ) O(\nu\operatorname{poly}(\kappa)\operatorname{polylog} n) O ( ν poly ( κ ) polylog n ) time rather than Ω ( m ) \Omega(m) Ω ( m ) . [FNYSY20] give a randomized subroutine LocalVC ( G , s , ν , κ ) \operatorname{LocalVC}(G,s,\nu,\kappa) LocalVC ( G , s , ν , κ ) that solves this problem in the static setting in O ( ν κ 2 ) O(\nu\kappa^2) O ( ν κ 2 ) time. This subroutine grows a search tree from s s s , so we can make it incremental by maintaining this tree under edge insertions via single-source incremental reachability, similar to how [19 ] adapt the Ford–Fulkerson max-flow algorithm to the incremental setting; we pause this growth process whenever it finds a cut and resume it as new edges arrive. We thus obtain:
Theorem 3 (IncrementalRootedVC). Given a graph G G G with m m m edges and two positive integers κ , ν \kappa,\nu κ , ν with κ ≤ n 2 \kappa\le\frac{n}{2} κ ≤ 2 n , ν ≤ m 24 κ \nu\le\frac{m}{24\kappa} ν ≤ 24 κ m , and δ + ( G ) > κ \delta^{+}(G) > \kappa δ + ( G ) > κ , as well as a vertex s ∈ V ( G ) s \in V(G) s ∈ V ( G ) , there is a data structure that maintains G G G under ℓ \ell ℓ edge insertions supplied by a randomness-adaptive adversary A \mathcal{A} A . After every insertion, the data structure reports either the vertex cut S S S of some s s s -rooted ( κ , ≤ 6 ν κ ) (\kappa,\le6\nu\kappa) ( κ , ≤ 6 ν κ ) -separation triple or the symbol ⊥ \perp ⊥ . Let ( L , S , R ) (L,S,R) ( L , S , R ) be one particular s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple in G G G . With probability ≥ 1 2 \ge\frac{1}{2} ≥ 2 1 , the data structure only outputs ⊥ \perp ⊥ once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple. The total running time is O ( ν κ 2 + ℓ ) O(\nu\kappa^2+\ell) O ( ν κ 2 + ℓ ) .
Theorem 3 requires δ + ( G ) > κ \delta^{+}(G) > \kappa δ + ( G ) > κ , that is, that the graph contains no trivial vertex cuts. We handle these trivial cuts by maintaining the in- and out-degree of each vertex, plus a linked list of all vertices with in- or out-degree equal to κ \kappa κ at the start of each round. We do this until there are no trivial vertex cuts. Updating the degrees or the linked list takes constant time per edge insertion, so this additional step takes O ( n ) O(n) O ( n ) time per round, or O ( κ n ) O(\kappa n) O ( κn ) total time across all rounds.
Theorems 2 and 3 are Monte-Carlo randomized and only have constant success probability to detect any particular s s s -rooted ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple. If the adversary is oblivious, then we can consider the last remaining s s s -rooted ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) right before the moment when no such triple exists, and show that our algorithm detects this separation triple. Thus, it suffices to perform O ( log n ) O(\log n) O ( log n ) repetitions to boost the success probability of Theorems 2 and 3 to 1 − n − 5 1-n^{-5} 1 − n − 5 . This works both on directed and undirected graphs.
If the adversary is randomness-adaptive, then we cannot argue about a last remaining s s s -rooted ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple. For undirected graphs, we show an upper bound of O ( n κ + 1 ) O(n^{\kappa+1}) O ( n κ + 1 ) for the number of s s s -rooted ( κ , < 2 ν ) (\kappa, <2\nu) ( κ , < 2 ν ) -separation triples. Thus, it suffices to perform O ( κ log n ) O(\kappa\log n) O ( κ log n ) repetitions to boost the success probability to 1 − n − Ω ( κ ) 1-n^{-\Omega(\kappa)} 1 − n − Ω ( κ ) , and union bound over all such triples. This approach does not work on directed graphs: while there are O ( n κ ) O(n^\kappa) O ( n κ ) choices for S S S , there might be exponentially many choices for L L L . This highlights a subtle difference between vertex cuts and separation triples.
Lemma 4. If G G G is an undirected graph that is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, then there are at most n κ + 1 n^{\kappa+1} n κ + 1 triples ( L , S , R ) (L,S,R) ( L , S , R ) that are ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples.
There is one caveat: Theorem 3 only works when the volume is not too large, namely ν < m 24 κ \nu< \frac{m}{24\kappa} ν < 24 κ m . However, if ν ≥ m 24 κ \nu\ge\frac{m}{24\kappa} ν ≥ 24 κ m , then we are guaranteed by Theorem 2 that the size of T T T will be small, i.e., ∣ T ∣ ∈ O ( κ ) |T| \in O(\kappa) ∣ T ∣ ∈ O ( κ ) . Recall that T T T was sampled via Theorem 2 with the goal that L ∩ T ≠ ∅ L \cap T \ne\varnothing L ∩ T = ∅ for any κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) with vol G + ( L ) ≥ ν \operatorname{vol}^{+}_{G}(L) \ge\nu vol G + ( L ) ≥ ν . We also apply Theorem 2 to the reversed graph G ← \overleftarrow{G} G to get a set T ^ \widehat{T} T with the goal that R ∩ T ^ ≠ ∅ R \cap\widehat{T} \ne\varnothing R ∩ T = ∅ for any κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) with vol G − ( R ) ≥ ν \operatorname{vol}^{-}_{G}(R) \ge\nu vol G − ( R ) ≥ ν . Then, we could afford to use an incremental exact max-flow data structure to maintain an ( s , t ) (s,t) ( s , t ) -vertex cut of size κ \kappa κ for all pairs ( s , t ) ∈ T × T ^ (s,t) \in T \times\widehat{T} ( s , t ) ∈ T × T . There are ∣ T ∣ ⋅ ∣ T ^ ∣ = Θ ( κ 2 ) |T| \cdot|\widehat{T}| = \Theta(\kappa^2) ∣ T ∣ ⋅ ∣ T ∣ = Θ ( κ 2 ) such pairs ( s , t ) (s,t) ( s , t ) , so we would need Θ ( κ 2 ) \Theta(\kappa^2) Θ ( κ 2 ) incremental exact max-flow data structures. We can do slightly better and reduce the number of pairs to Θ ( κ ) \Theta(\kappa) Θ ( κ ) , via a different sampling approach that just samples O ( 1 ) O(1) O ( 1 ) vertices uniformly at random with repetition.
Lemma 5 (UnbiasedSample). Let G G G be a directed graph with n n n vertices and m m m edges. Let u u u be a single vertex sampled uniformly at random. Then, for any separation triple ( L , S , R ) (L,S,R) ( L , S , R ) with ∣ S ∣ = κ ≤ n 2 |S|=\kappa\le\frac{n}{2} ∣ S ∣ = κ ≤ 2 n , with probability at least 1 2 \frac{1}{2} 2 1 , we have u ∈ ( L ∪ R ) u \in(L \cup R) u ∈ ( L ∪ R ) .
In addition to T T T and T ^ \widehat{T} T , we sample a vertex u u u via Lemma 5. Let ( L , S , R ) (L,S,R) ( L , S , R ) be any κ \kappa κ -separation triple with ∣ S ∣ = κ ≤ n 2 |S|=\kappa\le\frac{n}{2} ∣ S ∣ = κ ≤ 2 n , vol G + ( L ) ≥ ν \operatorname{vol}^{+}_{G}(L) \ge\nu vol G + ( L ) ≥ ν , and vol G − ( R ) ≥ ν \operatorname{vol}^{-}_{G}(R) \ge\nu vol G − ( R ) ≥ ν . With constant probability, the vertex u u u lies in L ∪ R L \cup R L ∪ R . If u u u lies in L L L , then by Theorem 2, with constant probability, T ^ \widehat{T} T contains a vertex in R R R . Similarly, if u u u lies in R R R , then by Theorem 2, with constant probability, T T T contains a vertex in L L L . Thus, we only have to consider the pairs ( s , t ) ∈ T × { u } ∪ { u } × T ^ (s,t) \in T \times\{u\} \cup\{u\} \times\widehat{T} ( s , t ) ∈ T × { u } ∪ { u } × T . For each of these O ( κ ) O(\kappa) O ( κ ) pairs, we use the incremental exact max-flow data structure of [21 , 19 ] to report an ( s , t ) (s,t) ( s , t ) -vertex cut of size κ \kappa κ until no such cut exists.
Theorem 6 (IncrementalMaxFlowVC [21 , 19 ] ). Given a graph G G G with m m m edges and an integer κ \kappa κ such that G G G is κ \kappa κ -connected, as well as two vertices s , t ∈ V ( G ) s,t \in V(G) s , t ∈ V ( G ) , there is a data structure that maintains G G G under edge insertions and reports an ( s , t ) (s,t) ( s , t ) -vertex cut of size κ \kappa κ after every insertion, or the fact that no such cut exists. The total running time is O ( κ ( m + ℓ ) ) O(\kappa(m+\ell)) O ( κ ( m + ℓ )) .
Finally, let us address the case where the initial graph G G G is not strongly connected. In this case, we pick an arbitrary vertex u u u and use a simple folklore algorithm (see, e.g., [28 ] ) to maintain the sets of vertices reachable from u u u in G G G and G ← \overleftarrow{G} G , respectively, with total running time O ( m ) O(m) O ( m ) . The graph G G G is strongly connected as soon as every vertex is reachable from u u u in both G G G and G ← \overleftarrow{G} G . For completeness, we state this result in the following lemma, which we prove in Section 8. We outline the complete algorithm in Algorithm 1.
Lemma 7 (Incremental 1-connectivity). Given a graph G G G with n n n vertices, there is a data structure that maintains G G G under edge insertions and, after every insertion, reports whether the graph is strongly connected or not. The total running time is O ( m ) O(m) O ( m ) , where m m m is the number of edges in G G G after all insertions.
Algorithm 1 IncrementalVC
1: Process edge insertions until $G$ is strongly connected.
2: for $\kappa = 1,2,3,\ldots,\left\lfloor \frac{n}{2}\right\rfloor$ do
3: boosts $\leftarrow \begin{cases} \left\lceil \kappa \cdot (33\log n + 288)\right\rceil & \text{if the adversary is randomness-adaptive}\\ \left\lceil 27\log n\right\rceil & \text{if the adversary is oblivious} \end{cases}$
4: for each vertex $v \in V(G)$ do
5: while $\deg_G^+(v)=\kappa$ or $\deg_G^-(v)=\kappa$ do
6: Report the $\kappa$-vertex cut $N_G^+(v)$ or $N_G^-(v)$, respectively, and process edge insertions.
7: for $\nu = 1,2,4,8,\ldots,2^{\left\lceil \log\frac{m}{48\kappa}\right\rceil}$ do
8: repeat for both $G$ and the reversed graph $\overleftarrow{G}$
9: repeat boosts times
10: Run SampleRoots$(\kappa,\nu)$ to obtain a set of terminals $T$.
11: for all $u \in T$ do
12: Initialize the data structure for IncrementalRootedVC$(u,\kappa,2\nu)$.
13: while IncrementalRootedVC$(u,\kappa,2\nu)$ reports a $\kappa$-vertex cut do
14: Process edge insertions with this data structure.
15: for $i=1,\ldots,\text{boosts}$ do
16: Run SampleRoots$_G(\kappa,\frac{m}{48\kappa})$ to obtain a set of terminals $T_i$.
17: Run SampleRoots$_{\overleftarrow{G}}(\kappa,\frac{m}{48\kappa})$ to obtain a set of terminals $\overleftarrow{T_i}$.
18: Run UnbiasedSample() to obtain a terminal $u_i$.
19: for $i=1,\ldots,\text{boosts}$ do
20: for all $(s,t) \in T_i \times \{u_i\}$ do
21: Initialize the data structure for IncrementalMaxFlowVC$_G(s,t,\kappa)$.
22: while IncrementalMaxFlowVC$_G(s,t,\kappa)$ reports a $\kappa$-vertex cut do
23: Process edge insertions with this data structure.
24: for all $(s,t) \in \overleftarrow{T_i} \times \{u_i\}$ do
25: Initialize the data structure for IncrementalMaxFlowVC$_{\overleftarrow{G}}(s,t,\kappa)$.
26: while IncrementalMaxFlowVC$_{\overleftarrow{G}}(s,t,\kappa)$ reports a $\kappa$-vertex cut do
27: Process edge insertions with this data structure.
Subtle Pitfalls Let us point out three important subtleties with Algorithm 1: First, it is important that the for loop over ν \nu ν goes from small to large. A separation triple ( L , S , R ) (L,S,R) ( L , S , R ) with small initial vol G + ( L ) \operatorname{vol}_G^+(L) vol G + ( L ) might acquire a large vol G + ( L ) \operatorname{vol}_G^+(L) vol G + ( L ) due to edge insertions. (This is a nasty possibility that does not occur for static algorithms.) Our property of being ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready is monotone under edge insertions, so we do not miss any such triple. Similarly, for a separation triple ( L , S , R ) (L,S,R) ( L , S , R ) , the property whether vol G + ( L ) \operatorname{vol}_G^+(L) vol G + ( L ) or vol G ← − ( R ) \operatorname{vol}_{\overleftarrow{G}}^-(R) vol G − ( R ) is bigger can change back and forth due to edge insertions, so it is important that we consider both G G G and G ← \overleftarrow{G} G for a given value of ν \nu ν .
Second, it is important that the sampling on line 10 takes place inside the for loop over ν \nu ν . An algorithm that first performs all its sampling upfront and then spends Ω ( vol G + ( L ) ) \Omega(\operatorname{vol}_G^+(L)) Ω ( vol G + ( L )) time to detect a separation triple ( L , S , R ) (L,S,R) ( L , S , R ) also struggles with the case where vol G + ( L ) \operatorname{vol}_G^+(L) vol G + ( L ) starts out small and then drastically increases: At first, vol G + ( L ) \operatorname{vol}_G^+(L) vol G + ( L ) is small, so we would need a large number of samples to hit some vertex in L L L . Then, if vol G + ( L ) \operatorname{vol}_G^+(L) vol G + ( L ) greatly increases, we can no longer afford to spend Ω ( vol G + ( L ) ) \Omega(\operatorname{vol}_G^+(L)) Ω ( vol G + ( L )) time on each of those samples.
Third, the value of m m m also increases with edge insertions. The for loop over ν \nu ν in Algorithm 1 runs until ν > m 48 κ \nu> \frac{m}{48\kappa} ν > 48 κ m where m m m denotes the current number of edges. When this happens, it is important that to do all the sampling (lines 15 to 18) at this very moment, as future edge insertions could increase m m m to the point where the inequality ν > m 48 κ \nu> \frac{m}{48\kappa} ν > 48 κ m no longer holds.
Oblivious vs. Adaptive Adversary Our algorithm is Monte-Carlo randomized, and works on both directed and undirected graphs if the adversary is oblivious: for every value of κ \kappa κ , it suffices to consider the final remaining κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) and apply Theorems 2 and 3 to this particular cut. If we only have to output the current value of κ \kappa κ , then an output-adaptive adversary is equivalent to an oblivious one, as the output yields no information about the internal state of our algorithm. Indeed, the value of κ \kappa κ is uniquely determined by the current graph.
However, this argument no longer works if the adversary is randomness-adaptive or we have to output the vertices of some κ \kappa κ -separation triple: an adaptive adversary could first learn which vertices we sampled via Theorem 2 or what the internal state of Theorem 3 is, pick a κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) that our sampling misses (or that Theorem 3 misses) and then make this the final remaining κ \kappa κ -separation triple. For undirected graphs, Lemma 4 shows that, if G G G is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, then there are O ( n κ + 1 ) O(n^{\kappa+1}) O ( n κ + 1 ) triples ( L , S , R ) (L,S,R) ( L , S , R ) that are ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples. Therefore, we can repeat the sampling O ( κ log n ) O(\kappa\log n) O ( κ log n ) times and union bound over all such triples. This argument does not extend to directed graphs, however: while there are O ( n κ ) O(n^\kappa) O ( n κ ) choices for S S S , there might be ( n ν − 1 ) = n Θ ( ν ) \binom{n}{\nu-1}=n^{\Theta(\nu)} ( ν − 1 n ) = n Θ ( ν ) many choices for L L L . This would require Ω ( ν ) \Omega(\nu) Ω ( ν ) repetitions, which is too slow. Thus, our algorithm only works on undirected graphs in this setting.
Lower Bound Overview
Our lower bounds are conditional on the Online Matrix-Vector Multiplication conjecture (OMv).
Definition 8 ([22 ] ). In the OMv problem, you are first given an n × n n \times n n × n boolean matrix M M M and you may spend some time preprocessing M M M . Then, you are given n n n boolean vectors v 1 , … , v n v_1,\ldots,v_n v 1 , … , v n of size n n n one by one. For each vector v i v_i v i , you have to output the product M v i Mv_i M v i before seeing the next vector v i + 1 v_{i+1} v i + 1 . The computation time is the total time spent after seeing the first vector.
Conjecture 9 ([22 ] ). There is no randomized algorithm for OMv with success probability at least 1 2 \frac{1}{2} 2 1 , O ( poly ( n ) ) O(\operatorname{poly}(n)) O ( poly ( n )) preprocessing time and O ( n 3 − ε ) O(n^{3-\varepsilon}) O ( n 3 − ε ) computation time for any ε > 0 \varepsilon> 0 ε > 0 .
There is an existing reduction from OMv to the incremental or decremental maximum cardinality bipartite matching problem.
Theorem 10 (Theorem 1 in [Dahl16]). There is no randomized algorithm for solving incremental (or decremental) maximum cardinality bipartite matching with success probability at least 1 2 \frac{1}{2} 2 1 , amortized O ( n 1 − ε ) O(n^{1-\varepsilon}) O ( n 1 − ε ) insertion (or deletion) time and O ( n 2 − ε ) O(n^{2-\varepsilon}) O ( n 2 − ε ) query time for any ε > 0 \varepsilon> 0 ε > 0 , unless the OMv conjecture is false.
More precisely, under OMv there is no such algorithm for processing Θ ( n 2 ) \Theta(n^2) Θ ( n 2 ) edge insertions (or deletions) and Θ ( n ) \Theta(n) Θ ( n ) queries on a graph with Θ ( n ) \Theta(n) Θ ( n ) vertices in O ( n 3 − ε ) O(n^{3-\varepsilon}) O ( n 3 − ε ) total time, even if the size of the maximum cardinality matching is Θ ( n ) \Theta(n) Θ ( n ) throughout.
We design a graph transformation that takes a bipartite graph G G G and produces a (non-bipartite) graph H H H such that a minimum vertex cover in G G G corresponds to a minimum vertex cut in H H H . By König’s theorem, the size of a minimum vertex cover in a bipartite graph is equal to the size of a maximum bipartite matching. This shows a reduction from incremental maximum matching to incremental minimum vertex cut. We apply this reduction to Theorem 10 to get the following lower bound:
Theorem 11. There is no incremental (or decremental) randomized algorithm that maintains the vertex connectivity of an undirected graph with success probability at least 1 2 \frac{1}{2} 2 1 , amortized O ( n 1 − ε ) O(n^{1-\varepsilon}) O ( n 1 − ε ) time per insertion (or deletion) and amortized O ( n 2 − ε ) O(n^{2-\varepsilon}) O ( n 2 − ε ) time per query for any ε > 0 \varepsilon> 0 ε > 0 , unless the OMv conjecture is false.
More precisely, under OMv there is no such algorithm for processing Θ ( n 2 ) \Theta(n^2) Θ ( n 2 ) edge insertions (or deletions) and Θ ( n ) \Theta(n) Θ ( n ) queries on a graph with Θ ( n ) \Theta(n) Θ ( n ) vertices in O ( n 3 − ε ) O(n^{3-\varepsilon}) O ( n 3 − ε ) time, even if the vertex connectivity is Θ ( n ) \Theta(n) Θ ( n ) throughout.
To obtain a lower bound in the restricted case where the size of a minimum cut may not exceed κ \kappa κ , we apply Theorem 10 with n ∈ Θ ( κ ) n \in\Theta(\kappa) n ∈ Θ ( κ ) and add additional vertices and edges to the graph, without introducing any new small vertex cuts, until we have m m m edge insertions (or deletions). Theorem 11 shows that the total running time of an incremental (or decremental) algorithm cannot be O ( κ 3 − ε ) O(\kappa^{3-\varepsilon}) O ( κ 3 − ε ) . This time can be distributed among all edge insertions, so we get the following bound:
Theorem 12. There is no incremental (or decremental) algorithm that maintains the vertex connectivity of an undirected graph with amortized time O ( κ 3 − ε / m ) O(\kappa^{3-\varepsilon}/m) O ( κ 3 − ε / m ) per insertion (or deletion) and O ( κ 2 − ε ) O(\kappa^{2-\varepsilon}) O ( κ 2 − ε ) time per query for any ε > 0 \varepsilon> 0 ε > 0 , unless the OMv conjecture is false.
Directed Graphs The lower bounds in Theorems 11 and 12 also apply to the directed case. Indeed, the vertex connectivity of an undirected graph is equal to the vertex connectivity of the directed graph obtained by replacing each edge u v uv uv by two directed edges u → v , v → u u \to v, v \to u u → v , v → u . This increases the number of edge insertions or deletions by a constant factor. Thus, an incremental (or decremental) algorithm for directed vertex connectivity implies such an algorithm for the undirected case, with the same asymptotic running time.
Lower Bound Details
As mentioned in the overview, we want to reduce from incremental (or decremental) maximum bipartite matching to incremental (or decremental) minimum vertex cut. The core of this reduction is the following graph construction, which we also illustrate with an example in Figure 1 : For any bipartite graph G G G with sides X X X , Y Y Y , construct a graph H H H as follows: Add two additional vertices x ^ \hat{x} x ^ and y ^ \hat{y} y ^ , and then add edges to make X ∪ { x ^ } X \cup\{\hat{x}\} X ∪ { x ^ } and Y ∪ { y ^ } Y \cup\{\hat{y}\} Y ∪ { y ^ } into cliques. Note that G G G is naturally a subgraph of H H H , so a set of vertices in G G G is also a set of vertices in H H H .
Figure 1. The graph transformation used in our lower bound. The size of a maximum matching in the bipartite graph G G G corresponds to the size of a minimum vertex cover in G G G , which in turn corresponds to the size of a minimum vertex cut in H H H . A maximum matching in G G G and a minimum vertex cut in H H H are marked green.
Lemma 13. A set S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) is a vertex cover in G G G if and only if S S S is a vertex cut in H H H .
Proof. We first show that every vertex cover in G G G is a vertex cut in H H H . Let S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) be a vertex cover. Then, every edge in G G G is incident to at least one vertex in S S S . In particular, in H ∖ S H \setminus S H ∖ S , there are no edges between ( X ∪ { x ^ } ) ∖ S (X \cup\{\hat{x}\}) \setminus S ( X ∪ { x ^ }) ∖ S and ( Y ∪ { y ^ } ) ∖ S (Y \cup\{\hat{y}\}) \setminus S ( Y ∪ { y ^ }) ∖ S . Moreover, each of these sets contains at least one vertex, namely x ^ \hat{x} x ^ and y ^ \hat{y} y ^ , respectively. Thus, S S S is a vertex cut in H H H .
Conversely, we now show that every vertex cut in H H H that avoids the vertices x ^ , y ^ \hat{x}, \hat{y} x ^ , y ^ is a vertex cover in G G G . Let S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) be a vertex cut in H H H . We show that every edge in G G G is incident to a vertex in S S S . Indeed, suppose for contradiction that there is an edge { x , y } ∈ E ( G ) \{x,y\} \in E(G) { x , y } ∈ E ( G ) with x , y ∉ S x,y \notin S x , y ∈ / S . But then H ∖ S H \setminus S H ∖ S is connected, as it consists of two cliques ( X ∪ { x ^ } ) ∖ S (X \cup\{\hat{x}\}) \setminus S ( X ∪ { x ^ }) ∖ S and ( Y ∪ { y ^ } ) ∖ S (Y \cup\{\hat{y}\}) \setminus S ( Y ∪ { y ^ }) ∖ S connected by at least one edge { x , y } \{x,y\} { x , y } . But S S S was assumed to be a vertex cut in H H H . This contradiction shows that there is no such edge { x , y } \{x,y\} { x , y } , so S S S is a vertex cover.
Lemma 14. The vertex connectivity of H H H is equal to the size of a maximum matching in G G G .
Proof. Since G G G is bipartite, by König’s theorem, the size of a maximum matching in G G G is equal to the size of a minimum vertex cover in G G G . Let S S S be a minimum vertex cover in G G G . By Lemma 13 , the set S S S is a vertex cut in H H H . Thus, the vertex connectivity of H H H is at most the size of a minimum vertex cover in G G G .
Conversely, let S ⊆ V ( H ) S \subseteq V(H) S ⊆ V ( H ) be a minimum vertex cut. Then H − S H-S H − S has two or more connected components. Since X X X is a vertex cut in H H H , we have ∣ S ∣ ≤ ∣ X ∣ |S| \leq|X| ∣ S ∣ ≤ ∣ X ∣ . Suppose for contradiction that x ^ ∈ S \hat{x} \in S x ^ ∈ S . Then, there is a vertex x ′ ∈ X − S x' \in X-S x ′ ∈ X − S . Since x ′ x' x ′ has edges to all of X − S − x ′ X-S-x' X − S − x ′ , all vertices in X − S X-S X − S lie in a single connected component of H − S H-S H − S . Since all neighbors of x ^ \hat{x} x ^ lie in X − S X-S X − S , H − ( S − x ^ ) H-(S-\hat{x}) H − ( S − x ^ ) has the same number of connected components as H − S H-S H − S , so S − x ^ S-\hat{x} S − x ^ is a vertex cut, of smaller cardinality than S S S . This contradiction shows that x ^ ∉ S \hat{x} \notin S x ^ ∈ / S . Similarly, y ^ ∉ S \hat{y} \notin S y ^ ∈ / S . Therefore S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) , so by Lemma 13 , S S S is a vertex cover in G G G . Thus, the vertex connectivity of H H H is at least the size of a minimum vertex cover in G G G .
We now show the lower bound with no restrictions on κ \kappa κ .
Theorem 11. There is no incremental (or decremental) randomized algorithm that maintains the vertex connectivity of an undirected graph with success probability at least 1 2 \frac{1}{2} 2 1 , amortized O ( n 1 − ε ) O(n^{1-\varepsilon}) O ( n 1 − ε ) time per insertion (or deletion) and amortized O ( n 2 − ε ) O(n^{2-\varepsilon}) O ( n 2 − ε ) time per query for any ε > 0 \varepsilon> 0 ε > 0 , unless the OMv conjecture is false.
More precisely, under OMv there is no such algorithm for processing Θ ( n 2 ) \Theta(n^2) Θ ( n 2 ) edge insertions (or deletions) and Θ ( n ) \Theta(n) Θ ( n ) queries on a graph with Θ ( n ) \Theta(n) Θ ( n ) vertices in O ( n 3 − ε ) O(n^{3-\varepsilon}) O ( n 3 − ε ) time, even if the vertex connectivity is Θ ( n ) \Theta(n) Θ ( n ) throughout.
Proof. Suppose that there is an incremental (or decremental) algorithm A \mathcal{A} A for maintaining the vertex connectivity of a graph. We design an incremental (or decremental) algorithm A ′ \mathcal{A}' A ′ for maintaining the size of a maximum matching as follows: Given the initial graph G G G , construct H H H as described above and initialize A \mathcal{A} A on H H H . For every edge insertion (or deletion), perform the corresponding insertion (or deletion) on A \mathcal{A} A . For every maximum matching query, perform a vertex connectivity query in A \mathcal{A} A and output the result. By Lemma 14 , this algorithm A ′ \mathcal{A}' A ′ is correct. Moreover, A ′ \mathcal{A}' A ′ has the same insertion (or deletion) and query time as A \mathcal{A} A . Thus, Theorem 10 implies Theorem 11.
Finally, we consider the case where the vertex connectivity may not exceed some small value κ \kappa κ . For m ∈ Θ ( κ 2 ) m \in\Theta(\kappa^2) m ∈ Θ ( κ 2 ) , setting n = κ n = \kappa n = κ in Theorem 11 yields a lower bound of Ω ( κ 1 − ε ) \Omega(\kappa^{1-\varepsilon}) Ω ( κ 1 − ε ) per insertion (or deletion) or Ω ( κ 2 − ε ) = Ω ( m 1 − ε ) \Omega(\kappa^{2-\varepsilon}) = \Omega(m^{1-\varepsilon}) Ω ( κ 2 − ε ) = Ω ( m 1 − ε ) per query. However, if we consider the total running time (instead of the amortized running time over a prefix of operations), this opens the door to a faster algorithm when m ≫ κ 2 m \gg\kappa^2 m ≫ κ 2 . (Note that, in a κ \kappa κ -connected graph, we always have m ∈ Ω ( κ n ) m \in\Omega(\kappa n) m ∈ Ω ( κn ) and n > κ n > \kappa n > κ , which forces m ∈ Ω ( κ 2 ) m \in\Omega(\kappa^2) m ∈ Ω ( κ 2 ) .)
We modify our graph construction to accommodate m > κ 2 m > \kappa^2 m > κ 2 edge insertions as follows: Given a bipartite graph G G G with 2 κ 2\kappa 2 κ vertices, we construct the graph H H H as described above. Then, we replace the vertex x ^ \hat{x} x ^ by Θ ( m ) \Theta(\sqrt{m}) Θ ( m ) copies with the same neighbors as x ^ \hat{x} x ^ , so that these copies form an independent set (incremental setting) or a clique (decremental setting). This yields a new graph H ′ H' H ′ where we can perform Θ ( m ) \Theta(m) Θ ( m ) edge insertions (or deletions) on these copies, and crucially, the vertex connectivity of H ′ H' H ′ will never exceed κ \kappa κ since deleting Y Y Y disconnects x ^ \hat{x} x ^ from y ^ \hat{y} y ^ . Lemma 14 also holds for H ′ H' H ′ since every vertex in X X X is connected to all other vertices in X X X and all copies of x ^ \hat{x} x ^ .
Theorem 12. There is no incremental (or decremental) algorithm that maintains the vertex connectivity of an undirected graph with amortized time O ( κ 3 − ε / m ) O(\kappa^{3-\varepsilon}/m) O ( κ 3 − ε / m ) per insertion (or deletion) and O ( κ 2 − ε ) O(\kappa^{2-\varepsilon}) O ( κ 2 − ε ) time per query for any ε > 0 \varepsilon> 0 ε > 0 , unless the OMv conjecture is false.
Proof. Suppose that there is an incremental (or decremental) algorithm A \mathcal{A} A for maintaining the vertex connectivity of a graph. We design an incremental (or decremental) algorithm A ′ \mathcal{A}' A ′ for maintaining the size of a maximum matching as follows: Given the initial 2 κ 2\kappa 2 κ -vertex graph G G G , construct H ′ H' H ′ as described above and initialize A \mathcal{A} A on H ′ H' H ′ . For every edge insertion (or deletion), perform the corresponding insertion (or deletion) on A \mathcal{A} A . For every maximum matching query, perform a vertex connectivity query in A \mathcal{A} A and output the result. Then, perform m m m (useless) edge insertions (or deletions) on the copies of x ^ \hat{x} x ^ . By Lemma 14, this algorithm A ′ \mathcal{A}' A ′ is correct. By Theorem 10 , the total computation time of A ′ \mathcal{A}' A ′ cannot be O ( κ 3 − ε ) O(\kappa^{3-\varepsilon}) O ( κ 3 − ε ) . Since we perform Θ ( m ) \Theta(m) Θ ( m ) insertions (or deletions) and κ \kappa κ queries, this implies Theorem 12. □ \square □
Analysis of Algorithm 1
In this section, we first analyze the running time of Algorithm 1 under the assumption that the algorithm is correct. Then, we show that the algorithm produces a correct output with high probability.
Running time analysis
Theorem 15. Let κ \kappa κ be the vertex connectivity of the final graph G G G . If all outputs of Algorithm 1 were correct, then the total running time of Algorithm 1 over m m m edge insertions on an initially empty graph is: O ( m κ 3 log 2 n ) O(m\kappa^3 \log^2 n) O ( m κ 3 log 2 n ) if the adversary is oblivious; and O ( m κ 4 log 2 n ) O(m\kappa^4 \log^2 n) O ( m κ 4 log 2 n ) if the adversary is randomness-adaptive.
Proof. Processing edge insertions until G G G is strongly connected takes O ( m ) O(m) O ( m ) time in total by Lemma 7. Since we assume that all outputs of Algorithm 1 were correct, the for loop on line 2 executes O ( κ ) O(\kappa) O ( κ ) times. We call one iteration of this loop a round.
We start by bounding the cumulative running time of lines 4 to 6 over all rounds. By maintaining the degree of each vertex in an array, we can check or update the degree of each vertex in constant time, while reporting a trivial vertex cut takes O ( κ ) O(\kappa) O ( κ ) time. In each round, we perform a degree check at least once for every vertex, as well as after each edge insertion. Since we have at most m m m edge insertions across O ( κ ) O(\kappa) O ( κ ) rounds, these checks take O ( κ n + m ) ⊆ O ( m ) O(\kappa n + m) \subseteq O(m) O ( κn + m ) ⊆ O ( m ) time in total. All reports occurs right before the next edge insertion, so they take O ( κ m ) O(\kappa m) O ( κm ) time in total. Hence, lines 4 to 6 cumulatively contribute O ( κ m ) O(\kappa m) O ( κm ) to the running time.
We now analyze the cumulative running time of lines 7 to 14 over all rounds. Consider one particular iteration of the repeat loop on line 9. By Theorem 2, invoking SampleRoots(κ , ν \kappa,\nu κ , ν ) takes O ( m ) O(m) O ( m ) time and yields a set of terminals T T T with ∣ T ∣ ∈ O ( m ν ) |T| \in O\left(\frac{m}{\nu}\right) ∣ T ∣ ∈ O ( ν m ) . By Theorem 3, a single IncrementalRootedVC(s , κ , 2 ν s,\kappa,2\nu s , κ , 2 ν ) structure takes O ( ν κ 2 + ℓ ) O(\nu\kappa^{2}+\ell) O ( ν κ 2 + ℓ ) time in total, where ℓ \ell ℓ is the number of edge insertions that happen while this structure exists. Since only one of these structures is active at a time, the O ( ℓ ) O(\ell) O ( ℓ ) terms sum to O ( m ) O(m) O ( m ) . Thus, the running time of one iteration of the repeat loop on line 9 is O ( m + ∣ T ∣ ⋅ ν κ 2 + m ) ⊆ O ( m κ 2 ) O(m+|T|\cdot\nu\kappa^{2}+m) \subseteq O(m\kappa^{2}) O ( m + ∣ T ∣ ⋅ ν κ 2 + m ) ⊆ O ( m κ 2 ) . In every round, it is repeated boosts times for both the reversed and original graph for O ( log n ) O(\log n) O ( log n ) different values of ν \nu ν (loop in line 7), resulting in a total of O ( κ ⋅ boosts ⋅ log n ) O(\kappa\cdot\text{boosts}\cdot\log n) O ( κ ⋅ boosts ⋅ log n ) iterations. If the adversary is oblivious, then boosts ∈ O ( log n ) \text{boosts} \in O(\log n) boosts ∈ O ( log n ) , so the number of iterations is O ( κ log 2 n ) O(\kappa\log^{2}n) O ( κ log 2 n ) and the total cumulative running time of lines 7 to 14 is O ( m κ 3 log 2 n ) O(m\kappa^{3}\log^{2}n) O ( m κ 3 log 2 n ) . If the adversary is randomness-adaptive, then boosts ∈ O ( κ log n ) \text{boosts} \in O(\kappa\log n) boosts ∈ O ( κ log n ) , so the number of iterations is O ( κ 2 log 2 n ) O(\kappa^{2}\log^{2}n) O ( κ 2 log 2 n ) and the total cumulative running time of lines 7 to 14 is O ( m κ 4 log 2 n ) O(m\kappa^{4}\log^{2}n) O ( m κ 4 log 2 n ) .
Next, we analyze lines 15 to 18. By Theorem 2 and Lemma 5, the calls to SampleRoots(κ , m 48 κ \kappa,\frac{m}{48\kappa} κ , 48 κ m ) and UnbiasedSample() take O ( m ) O(m) O ( m ) time. Across all rounds, these lines get executed κ ⋅ boosts \kappa\cdot\text{boosts} κ ⋅ boosts times, so their total contribution to the running time is O ( m κ 2 log n ) O(m\kappa^{2}\log n) O ( m κ 2 log n ) .
Finally, we analyze lines 19 to 27. By Theorem 2, we have ∣ T i ∣ ∈ O ( κ ) |T_i| \in O(\kappa) ∣ T i ∣ ∈ O ( κ ) , ∣ T ~ i ∣ ∈ O ( κ ) |\widetilde{T}_i| \in O(\kappa) ∣ T i ∣ ∈ O ( κ ) . By Theorem 6, a single IncrementalMaxFlowVC(s , t , κ s,t,\kappa s , t , κ ) structure takes O ( κ m ) O(\kappa m) O ( κm ) time in total. Thus, a single iteration of either the for loop on line 20 or the for loop on line 24 takes O ( κ m ) O(\kappa m) O ( κm ) time. Across all rounds, the total number of such iterations is O ( κ ⋅ boosts ⋅ ( ∣ T i ∣ + ∣ T ~ i ∣ ) ) = O ( κ 2 ⋅ boosts ) O(\kappa\cdot\text{boosts}\cdot(|T_i|+|\widetilde{T}_i|))=O(\kappa^{2}\cdot\text{boosts}) O ( κ ⋅ boosts ⋅ ( ∣ T i ∣ + ∣ T i ∣ )) = O ( κ 2 ⋅ boosts ) . If the adversary is oblivious, then boosts ∈ O ( log n ) \text{boosts} \in O(\log n) boosts ∈ O ( log n ) , so the number of iterations is O ( κ 2 log n ) O(\kappa^{2}\log n) O ( κ 2 log n ) and the total cumulative running time of lines 19 to 27 is O ( m κ 3 log n ) O(m\kappa^{3}\log n) O ( m κ 3 log n ) . If the adversary is randomness-adaptive, then boosts ∈ O ( κ log n ) \text{boosts} \in O(\kappa\log n) boosts ∈ O ( κ log n ) , so the number of iterations is O ( κ 3 log n ) O(\kappa^{3}\log n) O ( κ 3 log n ) and the total cumulative running time of lines 19 to 27 is O ( m κ 4 log n ) O(m\kappa^{4}\log n) O ( m κ 4 log n ) .
Correctness
We now show the correctness of Algorithm 1, assuming that Theorems 2, 3 and 6 and Lemma 5 hold. We assume without loss of generality that the graph is initially empty. If the initial graph is not empty, then we insert its edges one by one, and ignore the cuts output by the algorithm.
We show results both for an oblivious adversary that has to fix a sequence of insertions in advance and a randomness-adaptive adversary that can change its mind depending on the internal randomness our algorithm uses. At any point in time, the interaction between our algorithm and the adversary can be described by a sequence e 1 , … , e ℓ e_1,\ldots,e_\ell e 1 , … , e ℓ of edges that have been inserted, and a sequence of cuts S 1 , … , S ℓ S_1,\ldots,S_\ell S 1 , … , S ℓ that our algorithm has output. We show that S i S_i S i is a minimum vertex cut of the graph with edges e 1 , … , e i e_1,\ldots,e_i e 1 , … , e i with high probability. We can model a randomness-adaptive adversary as a function A \mathcal{A} A that takes the sequence e 1 , … , e ℓ e_1,\ldots,e_\ell e 1 , … , e ℓ , as well as the sequence of random bits used by the algorithm so far, and outputs a new edge e ℓ + 1 e_{\ell+1} e ℓ + 1 that is inserted.
Definition 16. We say that Algorithm 1 succeeds if, after every edge insertion, it outputs a set S S S that is a minimum vertex cut in the current graph.
Theorem 17 (Correctness of Algorithm 1). Given a graph G G G on n n n vertices undergoing m m m edge insertions supplied by an adversary A \mathcal{A} A , Algorithm 1 succeeds with probability at least 1 − n − 5 1-n^{-5} 1 − n − 5 , when either (1) G G G is directed or undirected, A \mathcal{A} A is oblivious, and boosts ≥ 27 log n \text{boosts} \ge27\log n boosts ≥ 27 log n or (2) G G G is undirected, A \mathcal{A} A is randomness-adaptive, and boosts ≥ κ ⋅ ( 33 log n + 288 ) \text{boosts} \ge\kappa\cdot(33\log n+288) boosts ≥ κ ⋅ ( 33 log n + 288 ) .
We split the proof of Theorem 17 into two parts: Correctly maintaining the current vertex connectivity (Theorem 19 ), and correctly outputting a vertex cut of that size (Lemma 18 ).
Lemma 18. Whenever Algorithm 1 outputs some set S S S of vertices, S S S is a vertex cut and ∣ S ∣ = κ |S| = \kappa ∣ S ∣ = κ , where κ \kappa κ is the variable of the for loop on line 2.
Proof. Algorithm 1 only outputs a set S S S on lines 6, 13, 22 and 26. Each of these lines lies in a while loop that terminates as soon as the underlying routine (finding a trivial vertex cut, IncrementalRootedVC, or IncrementalMaxFlowVC) fails to report a κ \kappa κ -vertex cut.
Theorem 19. Fix some iteration k k k of the for loop on line 2 of Algorithm 1, and assume that the graph is k k k -vertex connected at the start of the iteration. Then, at the end of the iteration, with probability at least 1 − n − 6 1-n^{-6} 1 − n − 6 , the graph is ( k + 1 ) (k+1) ( k + 1 ) -vertex connected.
Before proving Theorem 19, we show how it implies Theorem 17 by union bounding over all iterations of the outer for loop.
Proof of Theorem 17 using Lemma 18 and Theorem 19. Let κ \kappa κ denote the vertex connectivity of the final graph. Let E i \mathcal{E}_i E i be the good event that the graph is i i i -vertex connected at the start of the i i i -th iteration of the for loop on line 2, and let E = E 1 ∩ ⋯ ∩ E κ \mathcal{E}=\mathcal{E}_1\cap\cdots\cap\mathcal{E}_\kappa E = E 1 ∩ ⋯ ∩ E κ . Line 1 ensures that the graph is 1-vertex connected at the start of the first iteration. Thus the good event E 1 \mathcal{E}_1 E 1 occurs with probability 1. Theorem 19 shows that Pr [ E i ∣ E i − 1 ] ≥ 1 − n − 6 \Pr[\mathcal{E}_i\mid\mathcal{E}_{i-1}]\geq1-n^{-6} Pr [ E i ∣ E i − 1 ] ≥ 1 − n − 6 for 2 ≤ i ≤ κ 2\leq i\leq\kappa 2 ≤ i ≤ κ . Therefore,
Pr [ E ‾ i ∩ E i − 1 ] = Pr [ E ‾ i ∣ E i − 1 ] ⋅ Pr [ E i − 1 ] ≤ Pr [ E ‾ i ∣ E i − 1 ] = 1 − Pr [ E i ∣ E i − 1 ] ≤ n − 6 . \Pr[\overline{\mathcal{E}}_i\cap\mathcal{E}_{i-1}]=\Pr[\overline{\mathcal{E}}_i\mid\mathcal{E}_{i-1}]\cdot\Pr[\mathcal{E}_{i-1}]\leq\Pr[\overline{\mathcal{E}}_i\mid\mathcal{E}_{i-1}]=1-\Pr[\mathcal{E}_i\mid\mathcal{E}_{i-1}]\leq n^{-6}. Pr [ E i ∩ E i − 1 ] = Pr [ E i ∣ E i − 1 ] ⋅ Pr [ E i − 1 ] ≤ Pr [ E i ∣ E i − 1 ] = 1 − Pr [ E i ∣ E i − 1 ] ≤ n − 6 .
If E ‾ \overline{\mathcal{E}} E happens, at least one of the events E ‾ 1 \overline{\mathcal{E}}_1 E 1 or E ‾ i ∩ E i − 1 \overline{\mathcal{E}}_i\cap\mathcal{E}_{i-1} E i ∩ E i − 1 for 2 ≤ i ≤ κ 2\leq i\leq\kappa 2 ≤ i ≤ κ happens. By the union bound,
Pr [ E ‾ ] ≤ Pr [ E ‾ 1 ] + ∑ i = 2 κ Pr [ E ‾ i ∩ E i − 1 ] ≤ 0 + ( κ − 1 ) ⋅ n − 6 ≤ n − 5 , \Pr[\overline{\mathcal{E}}]\leq\Pr[\overline{\mathcal{E}}_1]+\sum_{i=2}^{\kappa}\Pr[\overline{\mathcal{E}}_i\cap\mathcal{E}_{i-1}]\leq0+(\kappa-1)\cdot n^{-6}\leq n^{-5}, Pr [ E ] ≤ Pr [ E 1 ] + i = 2 ∑ κ Pr [ E i ∩ E i − 1 ] ≤ 0 + ( κ − 1 ) ⋅ n − 6 ≤ n − 5 ,
since κ ≤ n \kappa\leq n κ ≤ n . Hence, Pr [ E ] ≥ 1 − n − 5 \Pr[\mathcal{E}]\geq1-n^{-5} Pr [ E ] ≥ 1 − n − 5 .
If the event E \mathcal{E} E happens, then at any point during the execution of Algorithm 1, the vertex connectivity of the current graph is equal to the value i i i of the variable of the for loop on line 2. By Lemma 18, Algorithm 1 always outputs a vertex cut of size i i i . Thus, the algorithm succeeds whenever the event E \mathcal{E} E happens.
What remains is to show Theorem 19. For the remainder of this section, we fix some iteration of the for loop on line 2 of Algorithm 1 with parameter κ \kappa κ , and assume that the graph is κ \kappa κ -vertex connected at the start of the iteration. We split the proof into two parts, first reasoning about the first part of the round, that is, the for loop on line 7, and then reasoning about the second part of the round, that is, the for loop on line 19. In particular, we will show the following two lemmas.
Lemma 20. Suppose that either (1) G G G is directed or undirected, A \mathcal{A} A is oblivious, and b o o s t s ≥ 27 log n boosts\geq27\log n b oos t s ≥ 27 log n or (2) G G G is undirected, A \mathcal{A} A is randomness-adaptive, and b o o s t s ≥ 33 κ log n boosts\geq33\kappa\log n b oos t s ≥ 33 κ log n . Then, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , the for loop on line 7 of Algorithm 1 only terminates once both the graph and the reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready.
Lemma 21. Suppose that either (1) G G G is directed or undirected, A \mathcal{A} A is oblivious, and b o o s t s ≥ 27 log n boosts\geq27\log n b oos t s ≥ 27 log n or (2) G G G is undirected, A \mathcal{A} A is randomness-adaptive, and b o o s t s ≥ κ ⋅ ( 33 log n + 288 ) boosts\geq\kappa\cdot(33\log n+288) b oos t s ≥ κ ⋅ ( 33 log n + 288 ) . Assume that the graph and the reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready at the start of the for loop on line 19 of Algorithm 1. Then, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , this for loop only terminates once the graph is ( κ + 1 ) (\kappa+1) ( κ + 1 ) -vertex connected.
Proof of Theorem 19 from Lemmas 20 and 21. By Lemma 20, we have that with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , the for loop on line 7 of Algorithm 1 only terminates once the graph and the reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready. Condition on this event. Then, by Lemma 21, we have that with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , the for loop on line 19 of Algorithm 1 only terminates once the graph is ( κ + 1 ) (\kappa+1) ( κ + 1 ) -vertex connected. By union bounding over these two events, we have that with probability at least 1 − 2 n − 7 ≥ 1 − n − 6 1-2n^{-7}\geq1-n^{-6} 1 − 2 n − 7 ≥ 1 − n − 6 , the good event that the graph is ( κ + 1 ) (\kappa+1) ( κ + 1 ) -vertex connected by the end of the iteration occurs, as desired.
Proof of lemm:correctnuloop
We first analyze a single iteration of the repeat loop on line 9.
Claim 22. Let G ′ G' G ′ be a directed graph on n n n vertices and m m m edges and let A \mathcal{A} A be a randomness-adaptive adversary. Fix an integer ν ≤ m 48 κ \nu\leq\frac{m}{48\kappa} ν ≤ 48 κ m , and let ( L , S , R ) (L,S,R) ( L , S , R ) be any ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple in G ′ G' G ′ with vol G ′ + ( L ) ≥ ν \operatorname{vol}^{+}_{G'}(L)\geq\nu vol G ′ + ( L ) ≥ ν . Then, with probability at least 1 4 \frac{1}{4} 4 1 , after executing lines 10 to 14 of Algorithm 1 on G ′ G' G ′ with A \mathcal{A} A , the triple ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple, that is, either vol G ′ + ( L ) ≥ 2 ν \operatorname{vol}^{+}_{G'}(L)\geq2\nu vol G ′ + ( L ) ≥ 2 ν , or ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a separation triple because an edge from L L L to R R R has been inserted.
Proof. We first note that, after lines 4 to 6, we have δ + ( G ) > κ \delta^{+}(G)>\kappa δ + ( G ) > κ and δ + ( G ← ) = δ − ( G ) > κ \delta^{+}(\overleftarrow{G})=\delta^{-}(G)>\kappa δ + ( G ) = δ − ( G ) > κ . Therefore, we may use Theorem 3 and the IncrementalRootedVC data structure here.
Let E \mathcal{E} E denote the event that the call to SampleRoots on line 10 of Algorithm 1 returns a set T T T with L ∩ T ≠ ∅ L\cap T\neq\varnothing L ∩ T = ∅ . By Theorem 2, Pr [ E ] ≥ 1 2 \Pr[\mathcal{E}]\geq\frac{1}{2} Pr [ E ] ≥ 2 1 . Crucially, this holds for any randomness-adaptive adversary A \mathcal{A} A , since this sampling step happens before any edge insertions are performed on G ′ G' G ′ , and since it only depends on the current graph G ′ G' G ′ (and not on what future edge insertions are performed).
Suppose that E \mathcal{E} E happens and let s ∈ L ∩ T s\in L\cap T s ∈ L ∩ T be a vertex in this intersection. Then, by Theorem 3, with probability at least 1 2 \frac{1}{2} 2 1 , for any randomness-adaptive adversary A \mathcal{A} A , the call to IncrementalRootedVC on line 13 with argument s s s will only output ⊥ \perp ⊥ once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid s s s -rooted ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple. Hence, in the iteration of the for loop on line 11 with u = s u=s u = s , the while loop on line 13 does not terminate until ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple. By the chain rule of probability, we thus have that with probability at least 1 4 \frac{1}{4} 4 1 , lines 10 to 14 of Algorithm 1 will only terminate once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple, as desired.
With this claim, we now proceed by showing that the for loop on line 9 boosts the probability of success high enough so that we can union bound later.
Claim 23. Let G ′ G' G ′ be a directed graph on n n n vertices and m m m edges and let A \mathcal{A} A be a randomness-adaptive adversary. Fix some arbitrary ν ≤ m 48 κ \nu\leq\frac{m}{48\kappa} ν ≤ 48 κ m , and let ( L , S , R ) (L,S,R) ( L , S , R ) be any ( κ , ≥ ν ) (\kappa,\geq\nu) ( κ , ≥ ν ) -separation triple in G ′ G' G ′ . Then, with probability at least 1 − 2 − b o o s t s / 3 1-2^{-\mathrm{boosts}/3} 1 − 2 − boosts /3 , after executing the for loop on line 9 of Algorithm 1 on G ′ G' G ′ with A \mathcal{A} A , the triple ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple, that is, either vol G ′ + ( L ) ≥ 2 ν \operatorname{vol}^{+}_{G'}(L)\geq2\nu vol G ′ + ( L ) ≥ 2 ν or an edge from L L L to R R R has been inserted.
Proof. We execute the for loop on line 9 of Algorithm 1 on G ′ G' G ′ with A \mathcal{A} A . Let E i \mathcal{E}_i E i be the bad event that after the i i i -th iteration of this for loop, ( L , S , R ) (L,S,R) ( L , S , R ) is still a valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple. By Claim 22 , we have that Pr [ E 1 ] ≤ 3 4 \Pr[\mathcal{E}_1]\leq\frac{3}{4} Pr [ E 1 ] ≤ 4 3 and Pr [ E i ∣ E i − 1 ] ≤ 3 4 \Pr[\mathcal{E}_i\mid\mathcal{E}_{i-1}]\leq\frac{3}{4} Pr [ E i ∣ E i − 1 ] ≤ 4 3 for each i ≥ 2 i\geq2 i ≥ 2 . By the chain rule of probability, we thus have that
Pr [ E b o o s t s ] = Pr [ E 1 ] ⋅ ∏ i = 2 b o o s t s Pr [ E i ∣ E i − 1 ] ≤ ( 3 4 ) b o o s t s ≤ 2 − b o o s t s / 3 , \Pr[\mathcal{E}_{\mathrm{boosts}}]=\Pr[\mathcal{E}_1]\cdot\prod_{i=2}^{\mathrm{boosts}}\Pr[\mathcal{E}_i\mid\mathcal{E}_{i-1}]\leq\left(\frac{3}{4}\right)^{\mathrm{boosts}}\leq2^{-\mathrm{boosts}/3}, Pr [ E boosts ] = Pr [ E 1 ] ⋅ i = 2 ∏ boosts Pr [ E i ∣ E i − 1 ] ≤ ( 4 3 ) boosts ≤ 2 − boosts /3 ,
which concludes the proof.
Next, we show that each iteration of the for loop on line 7 preserves the invariant that both G G G and G ← \overleftarrow{G} G are ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready with high probability. We first consider the case of an oblivious adversary. Crucially, we use the fact that edge insertions cannot create new ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples.
Claim 24. Consider some iteration i i i of the for loop on line 7 of Algorithm 1 with parameters κ \kappa κ and ν ≤ m 48 κ \nu\le\frac{m}{48\kappa} ν ≤ 48 κ m on a directed or undirected graph G G G with an oblivious adversary A \mathcal{A} A , with b o o s t s ≥ 27 log n boosts \ge27\log n b oos t s ≥ 27 log n . Assume further that the graph G G G and the reversed graph G ← \overleftarrow{G} G are ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready at the start of the iteration. Then, with probability at least 1 − n − 8 1-n^{-8} 1 − n − 8 , the good event E κ , ν \mathcal{E}_{\kappa,\nu} E κ , ν that the graph and the reversed graph are ( κ , 2 ν ) (\kappa,2\nu) ( κ , 2 ν ) -ready by the end of the iteration occurs.
Proof. Let G ′ G' G ′ be either G G G or G ← \overleftarrow{G} G . We use G 0 ′ G'_0 G 0 ′ to denote the state of G ′ G' G ′ at the start of the iteration i i i , and G 1 ′ G'_1 G 1 ′ to denote the state of G ′ G' G ′ after the iteration. By assumption, G 0 ′ G'_0 G 0 ′ is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, and, in particular, κ \kappa κ -connected. Since G 0 ′ G'_0 G 0 ′ is a spanning subgraph of G 1 ′ G'_1 G 1 ′ , the graph G 1 ′ G'_1 G 1 ′ is also κ \kappa κ -connected. In a κ \kappa κ -connected graph, the property of being a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple is monotone under edge insertions: a triple ( L , S , R ) (L,S,R) ( L , S , R ) can stop being a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple because it is no longer a κ \kappa κ -separation triple or because vol G ′ + ( L ) \operatorname{vol}^{+}_{G'}(L) vol G ′ + ( L ) becomes too big, but a triple cannot suddenly start being one.
Since the adversary A \mathcal{A} A is oblivious, it will perform the same sequence of edge insertions on G 0 ′ G'_0 G 0 ′ independent of what the algorithm does. Among all ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples in G 0 ′ G'_0 G 0 ′ , let ( L , S , R ) (L,S,R) ( L , S , R ) be a triple that remains a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple for the longest under this sequence of edge insertions. Then, G 1 ′ G'_1 G 1 ′ has a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple if and only if ( L , S , R ) (L,S,R) ( L , S , R ) is a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple in G 1 ′ G'_1 G 1 ′ .
By Claim 23, we have that, with probability at least 1 − 2 − b o o s t s / 3 1-2^{-boosts/3} 1 − 2 − b oos t s /3 , the for loop of line 9 of Algorithm 1 run on G ′ G' G ′ will only terminate once ( L , S , R ) (L,S,R) ( L , S , R ) is not a valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple. Since b o o s t s ≥ 27 log n boosts \ge27\log n b oos t s ≥ 27 log n , we have 1 − 2 − b o o s t s / 3 ≥ 1 − n − 9 1-2^{-boosts/3}\ge1-n^{-9} 1 − 2 − b oos t s /3 ≥ 1 − n − 9 .
By union bounding over the two graphs G G G and G ← \overleftarrow{G} G , we thus have that with probability at least 1 − 2 n − 9 ≥ 1 − n − 8 1-2n^{-9}\ge1-n^{-8} 1 − 2 n − 9 ≥ 1 − n − 8 , both the graph and the reversed graph are ( κ , 2 ν ) (\kappa,2\nu) ( κ , 2 ν ) -ready by the end of the iteration, as desired.
If A \mathcal{A} A is a randomness-adaptive adversary, then we can no longer speak of the ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple that survives the longest. Instead, we need to bound the number of ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples, and then union bound over all these triples. Here, our approach only works for undirected graphs, since for directed graphs there may be exponentially many choices for the sets L L L and R R R .
Lemma 4. If G G G is an undirected graph that is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, then there are at most n κ + 1 n^{\kappa+1} n κ + 1 triples ( L , S , R ) (L,S,R) ( L , S , R ) that are ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples.
Proof. If ( L , S , R ) (L,S,R) ( L , S , R ) is a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple in an undirected graph G G G , then ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ , the sets L , R L,R L , R are non-empty, G ∖ S G\setminus S G ∖ S is disconnected, vol G ( L ) < 2 ν \operatorname{vol}_{G}(L)<2\nu vol G ( L ) < 2 ν , and there are no edges between L L L and R R R . Since ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ , there are at most ( n κ ) ≤ n κ \binom{n}{\kappa}\le n^{\kappa} ( κ n ) ≤ n κ choices for the set S S S . What remains is to show that, for each set S S S , there are at most n n n choices for the set L L L .
Since there are no edges between L L L and R R R , the set L L L is the union of one or more connected components of G ∖ S G\setminus S G ∖ S . For each such component C i C_i C i , the triple ( C i , S , V ( G ) ∖ ( C i ∪ S ) ) (C_i,S,V(G)\setminus(C_i\cup S)) ( C i , S , V ( G ) ∖ ( C i ∪ S )) is a κ \kappa κ -separation triple in G G G . Therefore, since G G G is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, each such component C i C_i C i has vol G ( C i ) ≥ ν \operatorname{vol}_{G}(C_i)\ge\nu vol G ( C i ) ≥ ν . Since vol G ( L ) < 2 ν \operatorname{vol}_{G}(L)<2\nu vol G ( L ) < 2 ν , the set L L L consists of exactly one connected component. The number of components of G ∖ S G\setminus S G ∖ S is at most n n n , so there are also at most n n n choices for the set L L L .
Figure 2. Figure 2: Lemma 4 does not extend to directed graphs. This graph has many separating triples for the same S S S , as each copy of v v v may lie in L L L or R R R .
Lemma 4 fails on directed graphs: while there are n κ n^\kappa n κ choices for S S S , there might be exponentially many choices for L L L . For example, consider a 4-cycle u , v , w , x , u u,v,w,x,u u , v , w , x , u and let κ < ν < n \kappa< \nu< n κ < ν < n . Replace u u u and w w w by ν \nu ν copies that form a (directed) clique; v v v by n n n copies that form an independent set, and x x x by κ \kappa κ copies that form a clique. See Fig. 2. The resulting graph G G G has Θ ( n ) \Theta(n) Θ ( n ) vertices and a unique minimum vertex cut S S S that consists of all copies of x x x . For the corresponding separating triples ( L , S , R ) (L,S,R) ( L , S , R ) , all copies of w w w lie in L L L , and all copies of u u u lie in R R R , but each copy of v v v may lie in either L L L or R R R . Thus, the number of κ \kappa κ -separating triples is 2 n 2^n 2 n , and the number of ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples is ( n ν − 1 ) \binom{n}{\nu-1} ( ν − 1 n ) .
Claim 25. Consider some iteration i i i of the for loop on line 7 of Algorithm 1 with parameters κ \kappa κ and ν ≤ m 48 κ \nu\le\frac{m}{48\kappa} ν ≤ 48 κ m on an undirected graph G G G with a randomness-adaptive adversary A \mathcal{A} A , with b o o s t s ≥ 33 κ log n \mathit{boosts} \ge33\kappa\log n boosts ≥ 33 κ log n . Assume further that the graph G G G and the reversed graph G ← \overleftarrow{G} G are ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready at the start of the iteration. Then, with probability at least 1 − n − 8 1-n^{-8} 1 − n − 8 , the good event E κ , ν \mathcal{E}_{\kappa,\nu} E κ , ν that the graph and the reversed graph are ( κ , 2 ν ) (\kappa,2\nu) ( κ , 2 ν ) -ready by the end of the iteration occurs.
Proof. Let G ′ G' G ′ be either G G G or G ← \overleftarrow{G} G . We use G 0 ′ G'_0 G 0 ′ to denote the state of G ′ G' G ′ at the start of the iteration i i i , and G 1 ′ G'_1 G 1 ′ to denote the state of G ′ G' G ′ after the iteration. By assumption, G 0 ′ G'_0 G 0 ′ is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, and, in particular, κ \kappa κ -connected. Since G 0 ′ G'_0 G 0 ′ is a spanning subgraph of G 1 ′ G'_1 G 1 ′ , the graph G 1 ′ G'_1 G 1 ′ is also κ \kappa κ -connected. As in the proof of Claim 24, we observe that the property of being a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple is monotone under edge insertions. Thus, a triple ( L , S , R ) (L,S,R) ( L , S , R ) can only be a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple in G 1 ′ G'_1 G 1 ′ if it is a ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple in G 0 ′ G'_0 G 0 ′ .
By Claim 23, we have that with probability at least 1 − 2 − b o o s t s / 3 1-2^{-\mathit{boosts}/3} 1 − 2 − boosts /3 , the for loop of line 9 of Algorithm 1 run on G ′ G' G ′ will only terminate once ( L , S , R ) (L,S,R) ( L , S , R ) is not a valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triple for any fixed ( κ , ≥ ν ) (\kappa,\ge\nu) ( κ , ≥ ν ) -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) in G 0 ′ G'_0 G 0 ′ . Since b o o s t s ≥ 33 κ log n \mathit{boosts} \ge33\kappa\log n boosts ≥ 33 κ log n , we have 1 − 2 − b o o s t s / 3 ≥ 1 − n − ( κ + 10 ) 1-2^{-\mathit{boosts}/3} \ge1-n^{-(\kappa+10)} 1 − 2 − boosts /3 ≥ 1 − n − ( κ + 10 ) . By Lemma 4, at most n κ + 1 n^{\kappa+1} n κ + 1 triples ( L , S , R ) (L,S,R) ( L , S , R ) are ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples in G 0 ′ G'_0 G 0 ′ . Thus, we can union bound over all such triples to obtain that with probability at least 1 − n − 9 1-n^{-9} 1 − n − 9 , the for loop of line 9 of Algorithm 1 run on G ′ G' G ′ will only terminate once there are no more valid ( κ , < 2 ν ) (\kappa,<2\nu) ( κ , < 2 ν ) -separation triples, that is, once G ′ G' G ′ is ( κ , 2 ν ) (\kappa,2\nu) ( κ , 2 ν ) -ready.
By union bounding over the two graphs G G G and G ← \overleftarrow{G} G , we thus have that with probability at least 1 − 2 n − 9 ≥ 1 − n − 8 1-2n^{-9}\ge1-n^{-8} 1 − 2 n − 9 ≥ 1 − n − 8 , both the graph and the reversed graph are ( κ , 2 ν ) (\kappa,2\nu) ( κ , 2 ν ) -ready by the end of the iteration, as desired. □
Finally, we show Lemma 20 by union bounding over all iterations of the for loop on line 7.
Lemma 20. Suppose that either (1) G G G is directed or undirected, A \mathcal{A} A is oblivious, and b o o s t s ≥ 27 log n boosts\ge27\log n b oos t s ≥ 27 log n or (2) G G G is undirected, A \mathcal{A} A is randomness-adaptive, and b o o s t s ≥ 33 κ log n boosts\ge33\kappa\log n b oos t s ≥ 33 κ log n . Then, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , the for loop on line 7 of Algorithm 1 only terminates once both the graph and the reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready.
Proof. Before the for loop on line 7 of Algorithm 1, we trivially have that the graph and the reversed graph are ( κ , 1 ) (\kappa,1) ( κ , 1 ) -ready, and so we have Pr [ E κ , 1 ] ≥ 1 − n − 8 \Pr[\mathcal{E}_{\kappa,1}]\ge1-n^{-8} Pr [ E κ , 1 ] ≥ 1 − n − 8 by Claim 24 (or Claim 25). That claim also implies that Pr [ E κ , ν ∣ E κ , ν / 2 ] ≥ 1 − n − 8 \Pr[\mathcal{E}_{\kappa,\nu}\mid\mathcal{E}_{\kappa,\nu/2}]\ge1-n^{-8} Pr [ E κ , ν ∣ E κ , ν /2 ] ≥ 1 − n − 8 for each ν ∈ { 2 , 4 , 8 , … , 2 ⌊ log m 48 κ ⌋ } \nu\in\{2,4,8,\ldots,2^{\lfloor\log\frac{m}{48\kappa}\rfloor}\} ν ∈ { 2 , 4 , 8 , … , 2 ⌊ l o g 48 κ m ⌋ } . Notice again that each iteration uses independent randomness, and so our sequence of events forms a Markov chain, meaning that Pr [ E κ , 2 i ∣ E κ , 2 i − 1 ∩ … ∩ E κ , 1 ] = Pr [ E κ , 2 i ∣ E κ , 2 i − 1 ] \Pr[\mathcal{E}_{\kappa,2^i}\mid\mathcal{E}_{\kappa,2^{i-1}}\cap\ldots\cap\mathcal{E}_{\kappa,1}]=\Pr[\mathcal{E}_{\kappa,2^i}\mid\mathcal{E}_{\kappa,2^{i-1}}] Pr [ E κ , 2 i ∣ E κ , 2 i − 1 ∩ … ∩ E κ , 1 ] = Pr [ E κ , 2 i ∣ E κ , 2 i − 1 ] for all i ∈ { 1 , … , log m 48 κ } i\in\{1,\ldots,\log\frac{m}{48\kappa}\} i ∈ { 1 , … , log 48 κ m } . We can use the law of total probability with this Markov property to obtain that
Pr [ E κ , 2 ⌊ log m 48 κ ⌋ ] ≥ Pr [ E κ , 1 ] ⋅ ∏ i = 1 ⌊ log m 48 κ ⌋ Pr [ E κ , 2 i ∣ E κ , 2 i − 1 ] ≥ ( 1 − n − 8 ) log m 48 κ ≥ 1 − n − 7 , \Pr\left[\mathcal{E}_{\kappa,2^{\left\lfloor\log\frac{m}{48\kappa}\right\rfloor}}\right]\ge\Pr[\mathcal{E}_{\kappa,1}]\cdot\prod_{i=1}^{\left\lfloor\log\frac{m}{48\kappa}\right\rfloor}\Pr[\mathcal{E}_{\kappa,2^i}\mid\mathcal{E}_{\kappa,2^{i-1}}]\ge(1-n^{-8})^{\log\frac{m}{48\kappa}}\ge1-n^{-7}, Pr [ E κ , 2 ⌊ l o g 48 κ m ⌋ ] ≥ Pr [ E κ , 1 ] ⋅ i = 1 ∏ ⌊ l o g 48 κ m ⌋ Pr [ E κ , 2 i ∣ E κ , 2 i − 1 ] ≥ ( 1 − n − 8 ) l o g 48 κ m ≥ 1 − n − 7 ,
where the last inequality follows from Bernoulli’s inequality and the fact that log m ≤ n \log m\le n log m ≤ n . As 2 ⌊ log m 48 κ ⌋ ≥ m 96 κ 2^{\left\lfloor\log\frac{m}{48\kappa}\right\rfloor}\ge\frac{m}{96\kappa} 2 ⌊ l o g 48 κ m ⌋ ≥ 96 κ m , with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , the for loop on line 7 of Algorithm 1 only terminates once the graph and the reversed graph are ( κ , 2 ⋅ m 96 κ ) (\kappa,2\cdot\frac{m}{96\kappa}) ( κ , 2 ⋅ 96 κ m ) -ready, i.e., ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready. □
Proof of lemm:correctflowloop
The last missing piece now is to prove Lemma 21. That is, we now assume that both the graph and the reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready and discuss the for loop on line 19 of Algorithm 1. We will first argue that, with high probability, the sampling in the for loop on line 15 hits at least one vertex from each of L L L and R R R for every κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) . We will then appeal to Theorem 6 to show that the for loop on line 19 will only terminate once the graph is ( κ + 1 ) (\kappa+1) ( κ + 1 ) -vertex connected with high probability.
Claim 26. Assume that both the graph G G G and its reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready. Fix a κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) in G G G . With probability at least 1 − 2 − b o o s t s / 3 1-2^{-boosts/3} 1 − 2 − b oos t s /3 , there exists an iteration i i i of the for loop on line 15 such that either ( T i × { u i } ) ∩ ( L × R ) ≠ ∅ (T_i\times\{u_i\})\cap(L\times R)\ne\varnothing ( T i × { u i }) ∩ ( L × R ) = ∅ or ( T i ‾ × { u i } ) ∩ ( R × L ) ≠ ∅ (\overline{T_i}\times\{u_i\})\cap(R\times L)\ne\varnothing ( T i × { u i }) ∩ ( R × L ) = ∅ .
Proof. First, fix some κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) in G G G , and for each 1 ≤ i ≤ b o o s t s 1\le i\le boosts 1 ≤ i ≤ b oos t s define the good event E i \mathcal{E}_i E i that ( T i × { u i } ) ∩ ( L × R ) ≠ ∅ (T_i\times\{u_i\})\cap(L\times R)\ne\varnothing ( T i × { u i }) ∩ ( L × R ) = ∅ or ( T i ‾ × { u i } ) ∩ ( R × L ) ≠ ∅ (\overline{T_i}\times\{u_i\})\cap(R\times L)\ne\varnothing ( T i × { u i }) ∩ ( R × L ) = ∅ . As both G G G and its reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready, we have that vol G + ( L ) ≥ m 48 κ \operatorname{vol}^{+}_{G}(L)\ge\frac{m}{48\kappa} vol G + ( L ) ≥ 48 κ m and vol G − ( R ) ≥ m 48 κ \operatorname{vol}^{-}_{G}(R)\ge\frac{m}{48\kappa} vol G − ( R ) ≥ 48 κ m . We can thus use Theorem 2 to obtain that with probability at least 1 2 \frac{1}{2} 2 1 , we have T i ∩ L ≠ ∅ T_i\cap L\ne\varnothing T i ∩ L = ∅ , and also with probability at least 1 2 \frac{1}{2} 2 1 , we have T i ‾ ∩ R ≠ ∅ \overline{T_i}\cap R\ne\varnothing T i ∩ R = ∅ . Similarly, we can use Lemma 5 to obtain that with probability at least 1 2 \frac{1}{2} 2 1 , we will have u i ∈ ( L ∪ R ) u_i\in(L\cup R) u i ∈ ( L ∪ R ) .
Now since the sets T i T_i T i , T i ‾ \overline{T_i} T i and { u i } \{u_i\} { u i } are sampled independently for each iteration i i i , we have that
Pr [ E i ∣ u i ∈ R ] ≥ Pr [ T i ∩ L ≠ ∅ ] ≥ 1 2 , \Pr[\mathcal{E}_i\mid u_i\in R]\ge\Pr[T_i\cap L\ne\varnothing]\ge\frac{1}{2}, Pr [ E i ∣ u i ∈ R ] ≥ Pr [ T i ∩ L = ∅ ] ≥ 2 1 ,
and similarly
Pr [ E i ∣ u i ∈ L ] ≥ Pr [ T i ← ∩ R ≠ ∅ ] ≥ 1 2 . \Pr[\mathcal{E}_i \mid u_i \in L] \ge\Pr[\overleftarrow{T_i} \cap R \ne\varnothing] \ge\frac{1}{2}. Pr [ E i ∣ u i ∈ L ] ≥ Pr [ T i ∩ R = ∅ ] ≥ 2 1 .
We can thus use the law of total probability to conclude that
Pr [ E i ] ≥ 1 2 ⋅ ( Pr [ u i ∈ R ] + Pr [ u i ∈ L ] ) = 1 2 ⋅ Pr [ u i ∈ ( L ∪ R ) ] ≥ 1 4 . \Pr[\mathcal{E}_i] \ge\frac{1}{2} \cdot\left(\Pr[u_i \in R] + \Pr[u_i \in L]\right) = \frac{1}{2} \cdot\Pr[u_i \in(L \cup R)] \ge\frac{1}{4}. Pr [ E i ] ≥ 2 1 ⋅ ( Pr [ u i ∈ R ] + Pr [ u i ∈ L ] ) = 2 1 ⋅ Pr [ u i ∈ ( L ∪ R )] ≥ 4 1 .
Now we can use independence of the iterations i i i to conclude that
Pr [ ⋃ i = 1 boosts E i ] = 1 − ∏ i = 1 boosts ( 1 − Pr [ E i ] ) ≥ 1 − ( 3 4 ) boosts ≥ 1 − 2 − boosts / 3 , \Pr\left[\bigcup_{i=1}^{\textit{boosts}} \mathcal{E}_i\right] = 1 - \prod_{i=1}^{\textit{boosts}} (1-\Pr[\mathcal{E}_i]) \ge1-\left(\frac{3}{4}\right)^{\textit{boosts}} \ge1-2^{-\textit{boosts}/3}, Pr [ i = 1 ⋃ boosts E i ] = 1 − i = 1 ∏ boosts ( 1 − Pr [ E i ]) ≥ 1 − ( 4 3 ) boosts ≥ 1 − 2 − boosts /3 ,
that is, with probability at least 1 − 2 − boosts / 3 1-2^{-\textit{boosts}/3} 1 − 2 − boosts /3 , there exists an iteration i i i of the for loop on line 15 such that either ( T i × { u i } ) ∩ ( L × R ) ≠ ∅ (T_i \times\{u_i\}) \cap(L \times R) \ne\varnothing ( T i × { u i }) ∩ ( L × R ) = ∅ or ( T i ← × { u i } ) ∩ ( R × L ) ≠ ∅ (\overleftarrow{T_i} \times\{u_i\}) \cap(R \times L) \ne\varnothing ( T i × { u i }) ∩ ( R × L ) = ∅ .
Lemma 27. If G G G is an undirected graph with m m m edges that is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, then there are at most n κ ⋅ 2 2 m / ν n^\kappa\cdot2^{2m/\nu} n κ ⋅ 2 2 m / ν triples ( L , S , R ) (L,S,R) ( L , S , R ) that are κ \kappa κ -separation triples.
Proof. The proof is similar to that of Lemma 4. If ( L , S , R ) (L,S,R) ( L , S , R ) is a κ \kappa κ -separation triple in an undirected graph G G G , then: ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ , the sets L , R L,R L , R are non-empty, G ∖ S G \setminus S G ∖ S is disconnected, and there are no edges between L L L and R R R . Since ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ , there are at most ( n κ ) ≤ n κ \binom{n}{\kappa} \le n^\kappa ( κ n ) ≤ n κ choices for the set S S S . What remains is to show that, for each set S S S , there are at most 2 2 m / ν 2^{2m/\nu} 2 2 m / ν choices for the set L L L .
Since there are no edges between L L L and R R R , the set L L L is the union of one or more connected components of G ∖ S G\setminus S G ∖ S . For each such component C i C_i C i , the triple ( C i , S , V ( G ) ∖ ( C i ∪ S ) ) (C_i,S,V(G)\setminus(C_i\cup S)) ( C i , S , V ( G ) ∖ ( C i ∪ S )) is a κ \kappa κ -separation triple in G G G . Since G G G is ( κ , ν ) (\kappa,\nu) ( κ , ν ) -ready, each such component C i C_i C i has vol G + ( C i ) ≥ ν \operatorname{vol}^{+}_{G}(C_i)\ge\nu vol G + ( C i ) ≥ ν . As G G G is undirected, vol G + ( G ) = 2 m \operatorname{vol}^{+}_{G}(G)=2m vol G + ( G ) = 2 m , so in particular, there are at most 2 m / ν 2m/\nu 2 m / ν such components. The set L L L is uniquely determined by a subset of these components, so there are at most 2 2 m / ν 2^{2m/\nu} 2 2 m / ν choices for the set L L L .
Claim 28. Suppose that G G G is undirected, A \mathcal{A} A is randomness-adaptive, and boosts ≥ κ ( 33 log n + 288 ) \textit{boosts} \ge\kappa(33\log n+288) boosts ≥ κ ( 33 log n + 288 ) . Assume that both the graph G G G and its reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready. Then, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , for every κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) in G G G , there exists an iteration i i i of the for loop on line 15 such that either ( T i × { u i } ) ∩ ( L × R ) ≠ ∅ (T_i \times\{u_i\})\cap(L\times R)\ne\varnothing ( T i × { u i }) ∩ ( L × R ) = ∅ or ( T i ← × { u i } ) ∩ ( R × L ) ≠ ∅ (\overleftarrow{T_i}\times\{u_i\})\cap(R\times L)\ne\varnothing ( T i × { u i }) ∩ ( R × L ) = ∅ .
Proof. We apply Claim 26 to every κ \kappa κ -separation triple ( L , S , R ) (L,S,R) ( L , S , R ) in G G G and union bound over all such triples. By Lemma 27, there are at most n κ ⋅ 2 48 κ n^\kappa\cdot2^{48\kappa} n κ ⋅ 2 48 κ such triples. For each triple, by Claim 26, with probability at least 1 − 2 − boosts / 3 ≥ 1 − 2 − 96 κ ⋅ n − 11 κ 1-2^{-\textit{boosts}/3}\ge1-2^{-96\kappa}\cdot n^{-11\kappa} 1 − 2 − boosts /3 ≥ 1 − 2 − 96 κ ⋅ n − 11 κ , there exists an iteration i i i of the for loop on line 15 such that either ( T i × { u i } ) ∩ ( L × R ) ≠ ∅ (T_i\times\{u_i\})\cap(L\times R)\ne\varnothing ( T i × { u i }) ∩ ( L × R ) = ∅ or ( T i ← × { u i } ) ∩ ( R × L ) ≠ ∅ (\overleftarrow{T_i}\times\{u_i\})\cap(R\times L)\ne\varnothing ( T i × { u i }) ∩ ( R × L ) = ∅ . By a union bound, the probability that this happens simultaneously for every triple is at least 1 − n κ 2 96 κ ⋅ 2 − 96 κ n − 11 κ = 1 − n − 10 κ ≥ 1 − n − 7 1-n^\kappa2^{96\kappa}\cdot2^{-96\kappa}n^{-11\kappa}=1-n^{-10\kappa}\ge1-n^{-7} 1 − n κ 2 96 κ ⋅ 2 − 96 κ n − 11 κ = 1 − n − 10 κ ≥ 1 − n − 7 .
Now we can finally show Lemma 21 and thus conclude the proof of correctness.
Lemma 21. Suppose that either (1) G G G is directed or undirected, A \mathcal{A} A is oblivious, and boosts ≥ 27 log n \textit{boosts}\ge27\log n boosts ≥ 27 log n or (2) G G G is undirected, A \mathcal{A} A is randomness-adaptive, and boosts ≥ κ ⋅ ( 33 log n + 288 ) \textit{boosts}\ge\kappa\cdot(33\log n+288) boosts ≥ κ ⋅ ( 33 log n + 288 ) . Assume that the graph and the reversed graph are ( κ , m 48 κ ) (\kappa,\frac{m}{48\kappa}) ( κ , 48 κ m ) -ready at the start of the for loop on line 19 of Algorithm 1. Then, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , this for loop only terminates once the graph is ( κ + 1 ) (\kappa+1) ( κ + 1 ) -vertex connected.
Proof. Suppose that ( L , S , R ) (L,S,R) ( L , S , R ) is a κ \kappa κ -separation triple in G G G for which there is an iteration i i i of the for loop on line 15 such that either ( T i ‾ × { u i } ) ∩ ( L × R ) ≠ ∅ (\overline{T_i} \times\{u_i\}) \cap(L \times R) \ne\varnothing ( T i × { u i }) ∩ ( L × R ) = ∅ or ( T i ← × { u i } ) ∩ ( R × L ) ≠ ∅ (\overleftarrow{T_i} \times\{u_i\}) \cap(R \times L) \ne\varnothing ( T i × { u i }) ∩ ( R × L ) = ∅ . We now consider this i i i -th iteration of the for loop on line 19.
If ( T i ‾ × { u i } ) ∩ ( L × R ) ≠ ∅ (\overline{T_i} \times\{u_i\}) \cap(L \times R) \ne\varnothing ( T i × { u i }) ∩ ( L × R ) = ∅ , then there exist vertices s ∈ T i ∩ L s \in T_i \cap L s ∈ T i ∩ L and t = u i t = u_i t = u i . Consider now the corresponding iteration of the for loop on line 20 with s s s and t t t . By Theorem 6, the call to IncrementalMaxFlowVC on line 22 will report an ( s , t ) (s,t) ( s , t ) -vertex cut of size κ \kappa κ in G G G while such a cut exists. Since ( L , S , R ) (L,S,R) ( L , S , R ) is an ( s , t ) (s,t) ( s , t ) -separation triple of size κ \kappa κ , this means that the for loop on line 20 will only terminate once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid κ \kappa κ -separation triple.
By an equivalent argument, if ( T i ← × { u i } ) ∩ ( R × L ) ≠ ∅ (\overleftarrow{T_i} \times\{u_i\}) \cap(R \times L) \ne\varnothing ( T i × { u i }) ∩ ( R × L ) = ∅ , then the for loop on line 24 will only terminate once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid κ \kappa κ -separation triple. In this case, the call to IncrementalMaxFlowVC on line 26 will report an ( s , t ) (s,t) ( s , t ) -vertex cut of size κ \kappa κ in G ← \overleftarrow{G} G while such a cut exists for s ∈ T i ← ∩ R s \in\overleftarrow{T_i} \cap R s ∈ T i ∩ R and t = u i t = u_i t = u i .
If G G G is undirected, A \mathcal{A} A is randomness-adaptive, and boosts ≥ κ ( 33 log n + 288 ) \text{boosts} \ge\kappa(33\log n + 288) boosts ≥ κ ( 33 log n + 288 ) , then Claim 28 shows that, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , this argument applies simultaneously to all κ \kappa κ -separation triples ( L , S , R ) (L,S,R) ( L , S , R ) in G G G . Hence, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , the for loop on line 19 of Algorithm 1 will only terminate once the graph is ( κ + 1 ) (\kappa+1) ( κ + 1 ) -vertex connected, as desired.
If instead A \mathcal{A} A is oblivious and boosts ≥ 27 log n \text{boosts} \ge27\log n boosts ≥ 27 log n , then let ( L , S , R ) (L,S,R) ( L , S , R ) be the κ \kappa κ -separation triple in G G G that survives for the longest. By Claim 26, with probability at least 1 − 2 − boosts / 3 ≥ 1 − n − 7 1-2^{-\text{boosts}/3} \ge1-n^{-7} 1 − 2 − boosts /3 ≥ 1 − n − 7 this argument applies to this particular triple ( L , S , R ) (L,S,R) ( L , S , R ) . Hence, with probability at least 1 − n − 7 1-n^{-7} 1 − n − 7 , the for loop on line 19 of Algorithm 1 will only terminate once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a κ \kappa κ -separation triple. But then, the graph is ( κ + 1 ) (\kappa+1) ( κ + 1 ) -vertex connected, as desired. □
Sampling
In this section, we prove Theorem 2 and Lemma 5, which analyze the subroutines SampleRoots and UnbiasedSample. The first subroutine samples edges uniformly at random and returns their tail vertices, ensuring that any set of vertices with large volume is hit with constant probability.
Theorem 2 (SampleRoots, modified from [34 Lemma 2.5] ). There is a randomized algorithm that, given a directed graph G G G on n n n vertices and m m m edges and a volume parameter ν \nu ν , outputs a set T ⊆ V ( G ) T \subseteq V(G) T ⊆ V ( G ) of size at most 2 m ν \frac{2m}{\nu} ν 2 m , such that for every set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) with vol G + ( A ) ≥ ν \operatorname{vol}^{+}_{G}(A) \ge\nu vol G + ( A ) ≥ ν , we have Pr [ A ∩ T = ∅ ] ≤ 1 2 \Pr[A \cap T = \varnothing] \le\frac{1}{2} Pr [ A ∩ T = ∅ ] ≤ 2 1 . The algorithm runs in O ( m ) O(m) O ( m ) time.
Proof. The algorithm samples a multiset E ′ E' E ′ of ⌊ 2 m ν ⌋ \left\lfloor\frac{2m}{\nu} \right\rfloor ⌊ ν 2 m ⌋ edges independently and uniformly at random with replacement, and returns the set
T = { u ∈ V ( G ) ∣ ∃ ( u , v ) ∈ E ′ } T = \{u \in V(G) \mid\exists(u,v) \in E'\} T = { u ∈ V ( G ) ∣ ∃ ( u , v ) ∈ E ′ }
of vertices with some outgoing edge in E ′ E' E ′ . Now fix any set A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) with vol G + ( A ) ≥ ν \operatorname{vol}^{+}_{G}(A) \ge\nu vol G + ( A ) ≥ ν . Each sampled edge originates from A A A independently with probability vol G + ( A ) m ≥ ν m \frac{\operatorname{vol}^{+}_{G}(A)}{m} \ge\frac{\nu}{m} m vol G + ( A ) ≥ m ν , so the probability that no sampled edge originates from A A A is
( 1 − vol G + ( A ) m ) ⌊ 2 m ν ⌋ ≤ ( 1 − ν m ) m ν ≤ e − 1 ≤ 1 2 . \left(1-\frac{\operatorname{vol}^{+}_{G}(A)}{m}\right)^{\left\lfloor\frac{2m}{\nu} \right\rfloor} \le\left(1-\frac{\nu}{m}\right)^{\frac{m}{\nu}} \le e^{-1} \le\frac{1}{2}. ( 1 − m vol G + ( A ) ) ⌊ ν 2 m ⌋ ≤ ( 1 − m ν ) ν m ≤ e − 1 ≤ 2 1 .
As this is exactly the probability that A ∩ T = ∅ A \cap T = \varnothing A ∩ T = ∅ , we have established the claim. □
If we only want to hit some vertex on either side of the cut and the cut size is not too large, then we can simply sample a vertex uniformly at random.
Lemma 5 (UnbiasedSample). Let G G G be a directed graph with n n n vertices and m m m edges. Let u u u be a single vertex sampled uniformly at random. Then, for any separation triple ( L , S , R ) (L,S,R) ( L , S , R ) with ∣ S ∣ = κ ≤ n 2 |S|=\kappa\le\frac{n}{2} ∣ S ∣ = κ ≤ 2 n , with probability at least 1 2 \frac{1}{2} 2 1 , we have u ∈ ( L ∪ R ) u\in(L\cup R) u ∈ ( L ∪ R ) .
Proof. Let ( L , S , R ) (L,S,R) ( L , S , R ) be any separation triple with ∣ S ∣ = κ ≤ n 2 |S|=\kappa\le\frac{n}{2} ∣ S ∣ = κ ≤ 2 n . Then ∣ L ∪ R ∣ = n − ∣ S ∣ ≥ n 2 |L\cup R|=n-|S|\ge\frac{n}{2} ∣ L ∪ R ∣ = n − ∣ S ∣ ≥ 2 n , thus,
Pr [ u ∈ ( L ∪ R ) ] = ∣ L ∪ R ∣ n ≥ 1 2 . \Pr[u\in(L\cup R)]=\frac{|L\cup R|}{n}\ge\frac{1}{2}. Pr [ u ∈ ( L ∪ R )] = n ∣ L ∪ R ∣ ≥ 2 1 .
Incremental Rooted Cuts
Mirroring the definition of a ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple, a ( ≤ κ , ≤ ν ) (\le\kappa,\le\nu) ( ≤ κ , ≤ ν ) -edge cut is an edge cut ( L , R ) (L,R) ( L , R ) with ∣ ∂ G + ( L ) ∣ ≤ κ |\partial_G^+(L)|\le\kappa ∣ ∂ G + ( L ) ∣ ≤ κ and vol G + ( L ) ≤ ν \operatorname{vol}_G^+(L)\le\nu vol G + ( L ) ≤ ν . [FNYSY20] design a local algorithm for computing a small rooted vertex or edge cut. Given a directed graph G G G , two integers κ , ν \kappa,\nu κ , ν , and a vertex s ∈ V ( G ) s\in V(G) s ∈ V ( G ) , their algorithm either computes an edge cut ( L , R ) (L,R) ( L , R ) with s ∈ L s\in L s ∈ L , ∣ ∂ G + ( L ) ∣ ≤ κ |\partial_G^+(L)|\le\kappa ∣ ∂ G + ( L ) ∣ ≤ κ , and vol G + ( L ) ∈ O ( κ ν ) \operatorname{vol}_G^+(L)\in O(\kappa\nu) vol G + ( L ) ∈ O ( κ ν ) , or certifies that no s s s -rooted ( ≤ κ , ≤ ν ) (\le\kappa,\le\nu) ( ≤ κ , ≤ ν ) -edge cut exists. Crucially, if G G G is available in memory, their algorithm runs in O ( ν κ 2 ) O(\nu\kappa^2) O ( ν κ 2 ) time, with no dependence on m m m . More precisely, they show:
Theorem 29 (Corollary A.2 in [FNYSY20]). Given a directed graph G G G with m m m edges and two integers κ , ν \kappa,\nu κ , ν with ν ≤ m 8 κ \nu\le\frac{m}{8\kappa} ν ≤ 8 κ m , as well as a vertex s ∈ V ( G ) s\in V(G) s ∈ V ( G ) , there is a randomized (Monte Carlo) algorithm that runs in O ( ν κ 2 ) O(\nu\kappa^2) O ( ν κ 2 ) time and outputs
the symbol “⊥ \perp ⊥ ” indicating that, with probability 1 2 \frac{1}{2} 2 1 , there is no s s s -rooted ( ≤ κ , ≤ ν ) (\le\kappa,\le\nu) ( ≤ κ , ≤ ν ) -edge cut, or
an s s s -rooted ( κ , ≤ 10 ν κ ) (\kappa,\le10\nu\kappa) ( κ , ≤ 10 ν κ ) -edge cut.
The idea behind this algorithm is to mimic the Ford–Fulkerson max-flow algorithm: we repeatedly grow a search tree from s s s to find augmenting paths, but cap each search at 8 κ ν 8\kappa\nu 8 κ ν explored edges. Whenever this cap is reached, we sample one of the explored edges uniformly at random and send one unit of flow along the tree path to the tail of this edge, i.e. reverse all edges on this path. If instead a search gets stuck before reaching the cap, the algorithm returns the set of vertices reachable from s s s in the residual graph as a certificate for a cut; and if no search gets stuck within κ + 1 \kappa+1 κ + 1 attempts, the algorithm reports that no cut has been found.
To see why this succeeds, suppose G G G has an s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -edge cut ( L , R ) (L,R) ( L , R ) . In a single iteration, the tail of the sampled edge lies in R R R with probability 1 − O ( 1 κ ) 1-O(\frac{1}{\kappa}) 1 − O ( κ 1 ) , in which case the augmenting path crosses the cut ( L , R ) (L,R) ( L , R ) and saturates one of its edges. By a union bound, with constant probability, the first κ \kappa κ augmentations saturate every edge of ∂ G + ( L ) \partial_G^+(L) ∂ G + ( L ) . The next search then cannot leave L L L , so it gets stuck after exploring at most vol G + ( L ) ≤ ν < 8 κ ν \operatorname{vol}_G^+(L)\le\nu<8\kappa\nu vol G + ( L ) ≤ ν < 8 κ ν edges, and the algorithm returns the set of vertices reachable from s s s in the residual graph as a certificate for an s s s -rooted ( κ , ≤ 10 ν κ ) (\kappa,\le10\nu\kappa) ( κ , ≤ 10 ν κ ) -edge cut.
There is a standard reduction from rooted (or s s s -t t t ) vertex cut to rooted (or s s s -t t t ) edge cut in directed graphs that involves splitting every vertex into two new vertices. By applying this reduction to Theorem 29, [FNYSY20] obtain a local algorithm for computing rooted vertex cuts.
Our contribution. We extend their algorithm to the incremental setting. For directed edge cuts, we obtain a data structure that maintains such a cut under edge insertions by growing the search tree via a single-source incremental reachability structure. Our approach generalizes the incremental s s s -t t t cut algorithm of [19 ] to the rooted, low-volume setting.
Figure 2.
Algorithm 2 Rooted edge cut algorithm (Algorithm 2 in [FNYSY20]).
function LocalEC ( s , ν , κ ) \operatorname{LocalEC}(s,\nu,\kappa) LocalEC ( s , ν , κ )
repeat κ + 1 \kappa+1 κ + 1 times
Grow a DFS tree T T T starting from s s s and stop once exactly 8 κ ν 8\kappa\nu 8 κ ν edges have been visited.
Let E D F S E_{\mathrm{DFS}} E DFS be the set of edges visited.
if ∣ E D F S ∣ < 8 κ ν \lvert E_{\mathrm{DFS}}\rvert< 8\kappa\nu ∣ E DFS ∣ < 8 κ ν then return V ( T ) V(T) V ( T )
else
Sample an edge ( u , v ) ∈ E D F S (u,v) \in E_{\mathrm{DFS}} ( u , v ) ∈ E DFS uniformly at random.
Reverse the direction of edges in the path P s , u P_{s,u} P s , u in T T T from s s s to $u. return ⊥ \bot ⊥
Theorem 30 (IncrementalRootedEC). Given a directed graph G G G with m m m edges and two positive integers κ , ν \kappa,\nu κ , ν with ν ≤ m 2 κ \nu\le\frac{m}{2\kappa} ν ≤ 2 κ m , as well as a vertex s ∈ V ( G ) s \in V(G) s ∈ V ( G ) , there is a data structure that maintains G G G under ℓ \ell ℓ edge insertions supplied by a randomness-adaptive adversary A A A . After every insertion, the data structure reports either an s s s -rooted ( κ , ≤ 3 ν κ ) (\kappa,\le3\nu\kappa) ( κ , ≤ 3 ν κ ) -edge cut or the symbol ⊥ \bot ⊥ . Let ( L , V ( G ) ∖ L ) (L,V(G)\setminus L) ( L , V ( G ) ∖ L ) be one particular s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -edge cut in G G G . With probability ≥ 1 2 \ge\frac{1}{2} ≥ 2 1 , the data structure only outputs ⊥ \bot ⊥ once ( L , V ( G ) ∖ L ) (L,V(G)\setminus L) ( L , V ( G ) ∖ L ) is no longer a valid s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -edge cut. The total running time is m a t h c a l O ( ν κ 2 + ℓ ) mathcal{O}(\nu\kappa^2+\ell) ma t h c a l O ( ν κ 2 + ℓ ) .
Then, via the aforementioned standard reduction, we obtain the subroutine for vertex cuts used by Algorithm 1:
Theorem 3 (IncrementalRootedVC). Given a graph G G G with m m m edges and two positive integers κ , ν \kappa,\nu κ , ν with κ ≤ n 2 \kappa\le\frac{n}{2} κ ≤ 2 n , ν ≤ m 24 κ \nu\le\frac{m}{24\kappa} ν ≤ 24 κ m , and δ + ( G ) > κ \delta^+(G)>\kappa δ + ( G ) > κ , as well as a vertex s ∈ V ( G ) s \in V(G) s ∈ V ( G ) , there is a data structure that maintains G G G under ℓ \ell ℓ edge insertions supplied by a randomness-adaptive adversary A A A . After every insertion, the data structure reports either the vertex cut S S S of some s s s -rooted ( κ , ≤ 6 ν κ ) (\kappa,\le6\nu\kappa) ( κ , ≤ 6 ν κ ) -separation triple or the symbol ⊥ \bot ⊥ . Let ( L , S , R ) (L,S,R) ( L , S , R ) be one particular s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple in G G G . With probability ≥ 1 2 \ge\frac{1}{2} ≥ 2 1 , the data structure only outputs ⊥ \bot ⊥ once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple. The total running time is O ( ν κ 2 + ℓ ) \mathcal{O}(\nu\kappa^2+\ell) O ( ν κ 2 + ℓ ) .
Edge Cuts
The local algorithm of [FNYSY20] for computing rooted edge cuts (Theorem 29) is depicted in Algorithm 2. The tree T T T grown by this algorithm need not be a DFS tree: any way of growing a rooted directed tree (BFS, etc.) will do. To make Algorithm 2 incremental, we grow a reachability tree T T T under edge insertions as in Theorem 37. Whenever an edge is inserted, we check whether it can be used to extend T T T , and if so, continue growing T T T from there. This way, we can “pause” Algorithm 2 whenever it outputs a cut, and “resume” the algorithm whenever an edge is inserted.
The resulting algorithm is depicted in Algorithm 3. We use T ( u ) T(u) T ( u ) to denote the parent of a node u u u in the reachability tree, and explicitly maintain the set L L L of vertices reachable from s s s via this tree. We use H H H to denote the current state of the graph (after some edge reversals), and G G G to denote the original state of the graph. Note that H H H need not be simple: reversing an edge ( u , v ) (u,v) ( u , v ) produces ( v , u ) (v,u) ( v , u ) , which may already be present in H H H , so H H H can contain parallel edges and is thus a multigraph. Since Algorithm 3 restores H H H to G G G before returning ⊥ \bot ⊥ , we need not spend Θ ( m ) \Theta(m) Θ ( m ) time creating a fresh copy of G G G for each of the many instances we run (in the context of Algorithm 1); instead, a single copy of G G G can be passed to them one after another.
To argue correctness of Algorithm 3, we need the following lemma from [FNYSY20] about the effect of reversing a path on the cut size and volume.
Algorithm 3 Algorithm for incremental s s s -rooted ( κ , ≤ ν ) (\kappa,\leq\nu) ( κ , ≤ ν ) -edge cut
1: function IncrementalRootedEC( G , s ∈ V ( G ) , κ , ν ) (G,s \in V(G),\kappa,\nu) ( G , s ∈ V ( G ) , κ , ν ) 2: H ← H \leftarrow H ← implicit copy of G G G 3: Implicitly set T ( v ) ← ⊥ T(v) \leftarrow\perp T ( v ) ←⊥ for all v ∈ V ( G ) v \in V(G) v ∈ V ( G ) 4: for k = 0 , … , κ k=0,\ldots,\kappa k = 0 , … , κ do 5: T ( s ) ← ⊤ T(s) \leftarrow\top T ( s ) ← ⊤ , L ← { s } L \leftarrow\{s\} L ← { s } , E L ← ∅ E_L \leftarrow\varnothing E L ← ∅ 6: GrowReachabilityTree( ∂ H + ( s ) ) (\partial_H^+(s)) ( ∂ H + ( s )) 7: while ∣ E L ∣ < 2 ν κ |E_L| < 2\nu\kappa ∣ E L ∣ < 2 ν κ do 8: Output L L L 9: e = ( u , v ) ← e=(u,v) \leftarrow e = ( u , v ) ← next edge insertion 10: Add e e e to G G G and H H H 11: if T ( u ) ≠ ⊥ T(u)\ne\perp T ( u ) = ⊥ then 12: GrowReachabilityTree( e ) (e) ( e ) 13: Sample an edge ( u , v ) ∈ E L (u,v)\in E_L ( u , v ) ∈ E L uniformly at random 14: Reverse the direction of edges on the path P s , u P_{s,u} P s , u in T T T from s s s to u u u 15: T ( v ) ← ⊥ T(v)\leftarrow\perp T ( v ) ←⊥ for all v ∈ L v\in L v ∈ L 16: Undo all edge reversals done on H H H 17: Output ⊥ \perp ⊥ 18: function GrowReachabilityTree( A ) (A) ( A ) 19: for e = ( u , v ) ∈ A e=(u,v)\in A e = ( u , v ) ∈ A while ∣ E L ∣ < 2 ν κ |E_L|<2\nu\kappa ∣ E L ∣ < 2 ν κ do 20: Add e e e to E L E_L E L 21: if T ( v ) = ⊥ T(v)=\perp T ( v ) =⊥ then 22: Add v v v to L L L 23: T ( v ) ← u T(v)\leftarrow u T ( v ) ← u 24: GrowReachabilityTree( ∂ H + ( v ) ) (\partial_H^+(v)) ( ∂ H + ( v ))
Lemma 31 ([FNYSY20, Lemma 3.5]). Let H H H be a directed multigraph, L ⊆ V ( H ) L\subseteq V(H) L ⊆ V ( H ) a set with s ∈ L s\in L s ∈ L , and P s , v P_{s,v} P s , v a path in H H H from s s s to some vertex v v v . Suppose we reverse the direction of every edge of P s , v P_{s,v} P s , v . If v ∉ L v\notin L v ∈ / L , then ∣ ∂ H + ( L ) ∣ |\partial_H^+(L)| ∣ ∂ H + ( L ) ∣ and vol H + ( L ) \operatorname{vol}_H^+(L) vol H + ( L ) each decrease by exactly one; otherwise, both remain unchanged.
Proof. Reversing an edge that leaves L L L turns it into an edge entering L L L , and vice versa; reversing an edge with both endpoints inside (or both outside) L L L leaves the cut unaffected. Hence the change in ∣ ∂ H + ( L ) ∣ |\partial_H^+(L)| ∣ ∂ H + ( L ) ∣ equals the number of times P s , v P_{s,v} P s , v crosses from V ( H ) ∖ L V(H)\setminus L V ( H ) ∖ L back to L L L minus the number of times it crosses from L L L to V ( H ) ∖ L V(H)\setminus L V ( H ) ∖ L .
Since P s , v P_{s,v} P s , v starts at s ∈ L s\in L s ∈ L , if v ∉ L v\notin L v ∈ / L it crosses from L L L to V ( H ) ∖ L V(H)\setminus L V ( H ) ∖ L exactly one more time than it crosses back, so reversing its edges decreases ∣ ∂ H + ( L ) ∣ |\partial_H^+(L)| ∣ ∂ H + ( L ) ∣ by exactly one. If instead v ∈ L v\in L v ∈ L , the two kinds of crossings occur equally often, so ∣ ∂ H + ( L ) ∣ |\partial_H^+(L)| ∣ ∂ H + ( L ) ∣ remains unchanged. The same argument applies to vol H + ( L ) \operatorname{vol}_H^+(L) vol H + ( L ) , since a reversal never changes the number of edges with both endpoints in L L L .
The following two lemmas establish the correctness of Algorithm 3 in the incremental setting. They are analogous to [FNYSY20, Lemmas A.4 and A.5], but since we do not require a ( 1 + ε ) (1+\varepsilon) ( 1 + ε ) -approximation of the cut size, our proofs are simpler and give a better bound on the volume.
Lemma 32. Suppose that Algorithm 3 (after any number of edge insertions) outputs L L L . Then L ≠ V ( G ) L\ne V(G) L = V ( G ) , ∣ ∂ G + ( L ) ∣ ≤ κ |\partial_G^+(L)|\leq\kappa ∣ ∂ G + ( L ) ∣ ≤ κ , and vol G + ( L ) ≤ 3 ν κ \operatorname{vol}_G^+(L)\leq3\nu\kappa vol G + ( L ) ≤ 3 ν κ .
Proof. We first show that L ≠ V ( G ) L \ne V(G) L = V ( G ) . Since Algorithm 3 only outputs a set L L L inside the while loop on line 7, we have ∣ E L ∣ < 2 ν κ |E_L| < 2\nu\kappa ∣ E L ∣ < 2 ν κ . Therefore, in the current iteration of the outer for loop, the condition ∣ E L ∣ < 2 ν κ |E_L| < 2\nu\kappa ∣ E L ∣ < 2 ν κ was true in all calls to GrowReachabilityTree, so L L L is indeed the set of vertices reachable from s s s in H H H , and E L E_L E L contains all outgoing edges in H H H from L L L . In particular, ∣ ∂ H + ( L ) ∣ = 0 |\partial_H^+(L)| = 0 ∣ ∂ H + ( L ) ∣ = 0 and E L = E H ( L , L ) E_L = E_H(L,L) E L = E H ( L , L ) . This is true even in the presence of edge insertions: if the inserted edge ( u , v ) (u,v) ( u , v ) has u ∉ L u \notin L u ∈ / L , then it cannot be reached from s s s , and if u ∈ L u \in L u ∈ L , then we call GrowReachabilityTree({ ( u , v ) } \{(u,v)\} {( u , v )} ), which visits any newly reachable vertices and edges. Note that the check T ( u ) ≠ ⊥ T(u) \ne\perp T ( u ) = ⊥ in Algorithm 3 is equivalent to u ∈ L u \in L u ∈ L .
Since H H H is obtained from G G G by reversing edges, which preserves their endpoints, ∣ E G ( L , L ) ∣ = ∣ E H ( L , L ) ∣ = ∣ E L ∣ < 2 ν κ ≤ m |E_G(L,L)| = |E_H(L,L)| = |E_L| < 2\nu\kappa\le m ∣ E G ( L , L ) ∣ = ∣ E H ( L , L ) ∣ = ∣ E L ∣ < 2 ν κ ≤ m , using ν ≤ m 2 κ \nu\le\frac{m}{2\kappa} ν ≤ 2 κ m . In particular, we cannot have L = V ( G ) L = V(G) L = V ( G ) , as this would imply ∣ E G ( L , L ) ∣ = ∣ E ( G ) ∣ = m |E_G(L,L)| = |E(G)| = m ∣ E G ( L , L ) ∣ = ∣ E ( G ) ∣ = m . This shows L ≠ V ( G ) L \ne V(G) L = V ( G ) .
Consider D : = ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ D := |\partial_G^+(L)| - |\partial_H^+(L)| D := ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ over the execution. Initially H = G H = G H = G , so D D D starts out at 0; an edge insertion adds its edge to G G G and H H H in the same orientation and leaves D D D unchanged; and by Lemma 31, reversing an augmenting path P s , u P_{s,u} P s , u keeps ∣ ∂ G + ( L ) ∣ |\partial_G^+(L)| ∣ ∂ G + ( L ) ∣ fixed while decreasing ∣ ∂ H + ( L ) ∣ |\partial_H^+(L)| ∣ ∂ H + ( L ) ∣ by at most one, so it increases D D D by at most one. As there are at most κ \kappa κ augmentations, D = ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ ≤ κ D = |\partial_G^+(L)| - |\partial_H^+(L)| \le\kappa D = ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ ≤ κ . Since ∣ ∂ H + ( L ) ∣ = 0 |\partial_H^+(L)| = 0 ∣ ∂ H + ( L ) ∣ = 0 at the end of the search, we obtain ∣ ∂ G + ( L ) ∣ ≤ κ |\partial_G^+(L)| \le\kappa ∣ ∂ G + ( L ) ∣ ≤ κ .
Finally, vol G + ( L ) \operatorname{vol}_G^+(L) vol G + ( L ) counts the original edges with tail in L L L , namely those within L L L together with those leaving L L L , so
vol G + ( L ) = ∣ E G ( L , L ) ∣ + ∣ ∂ G + ( L ) ∣ = ∣ E L ∣ + ∣ ∂ G + ( L ) ∣ ≤ 2 ν κ + κ ≤ 3 ν κ , \operatorname{vol}_G^+(L) = |E_G(L,L)| + |\partial_G^+(L)| = |E_L| + |\partial_G^+(L)| \le2\nu\kappa+ \kappa\le3\nu\kappa, vol G + ( L ) = ∣ E G ( L , L ) ∣ + ∣ ∂ G + ( L ) ∣ = ∣ E L ∣ + ∣ ∂ G + ( L ) ∣ ≤ 2 ν κ + κ ≤ 3 ν κ ,
using ν ≥ 1 \nu\ge1 ν ≥ 1 .
Lemma 33. Let ( L , V ( G ) ∖ L ) (L, V(G) \setminus L) ( L , V ( G ) ∖ L ) be one particular s s s -rooted ( κ , ≤ ν ) (\kappa, \le\nu) ( κ , ≤ ν ) -edge cut in G G G . Then, with probability ≥ 1 2 \ge\frac{1}{2} ≥ 2 1 , Algorithm 3 run on the graph G G G with edge insertions supplied by a randomness-adaptive adversary A A A only outputs ⊥ \perp ⊥ once ( L , V ( G ) ∖ L ) (L, V(G) \setminus L) ( L , V ( G ) ∖ L ) is no longer a valid s s s -rooted ( κ , ≤ ν ) (\kappa, \le\nu) ( κ , ≤ ν ) -edge cut.
Proof. For the outer for loop of Algorithm 3, we say that the i i i ’th iteration succeeds if the tail of the sampled edge lies outside of L L L . We denote the event of this happening by E i E_i E i , and the good event that the first κ \kappa κ iterations all succeed by E E E .
First we show that, if E E E happens, then the ( κ + 1 ) (\kappa+ 1) ( κ + 1 ) ’st iteration of the outer for loop does not terminate while ( L , V ( G ) ∖ L ) (L, V(G) \setminus L) ( L , V ( G ) ∖ L ) is still a valid s s s -rooted ( κ , ≤ ν ) (\kappa, \le\nu) ( κ , ≤ ν ) -edge cut in G G G ; so in particular, Algorithm 3 cannot output ⊥ \perp ⊥ during this time. Suppose that ( L , V ( G ) ∖ L ) (L, V(G) \setminus L) ( L , V ( G ) ∖ L ) is currently a valid s s s -rooted ( κ , ≤ ν ) (\kappa, \le\nu) ( κ , ≤ ν ) -edge cut in G G G . By Lemma 31, whenever an iteration of the outer for loop of Algorithm 3 succeeds, the quantity ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ |\partial_G^+(L)| - |\partial_H^+(L)| ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ increases by one. Furthermore, edge insertions do not change this quantity. Since ( L , V ( G ) ∖ L ) (L, V(G) \setminus L) ( L , V ( G ) ∖ L ) is valid, we have ∣ ∂ G + ( L ) ∣ ≤ κ |\partial_G^+(L)| \le\kappa ∣ ∂ G + ( L ) ∣ ≤ κ , and if E E E happens, then the first κ \kappa κ iterations all succeeded. Hence we have ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ = κ ≥ ∣ ∂ G + ( L ) ∣ |\partial_G^+(L)| - |\partial_H^+(L)| = \kappa\ge|\partial_G^+(L)| ∣ ∂ G + ( L ) ∣ − ∣ ∂ H + ( L ) ∣ = κ ≥ ∣ ∂ G + ( L ) ∣ , forcing ∣ ∂ H + ( L ) ∣ = 0 |\partial_H^+(L)| = 0 ∣ ∂ H + ( L ) ∣ = 0 . Therefore, in the κ + 1 \kappa+ 1 κ + 1 ’st iteration, there are no edges in H H H from L L L to V ( G ) ∖ L V(G) \setminus L V ( G ) ∖ L . Thus, the tree T T T is always contained in L L L , and at most vol H + ( L ) \operatorname{vol}_H^+(L) vol H + ( L ) edges can get added to E L E_L E L . Also, since ( L , V ( G ) ∖ L ) (L, V(G) \setminus L) ( L , V ( G ) ∖ L ) is valid, vol H + ( L ) ≤ vol G + ( L ) ≤ ν \operatorname{vol}_H^+(L) \le\operatorname{vol}_G^+(L) \le\nu vol H + ( L ) ≤ vol G + ( L ) ≤ ν . Hence, in the κ + 1 \kappa+ 1 κ + 1 ’st iteration of the outer for loop, the while loop on line 7 cannot terminate while ( L , V ( G ) ∖ L ) (L, V(G) \setminus L) ( L , V ( G ) ∖ L ) is a valid s s s -rooted ( κ , ≤ ν ) (\kappa, \le\nu) ( κ , ≤ ν ) -edge cut in G G G .
What remains is to analyze the probability that E E E happens. To bound Pr [ E i ] \Pr[E_i] Pr [ E i ] , let E L E_L E L be the set of edges we sample from in iteration i i i , and let A = { ( u , v ) ∈ E L ∣ u ∈ L } A = \{(u,v) \in E_L \mid u \in L\} A = {( u , v ) ∈ E L ∣ u ∈ L } be the subset of those edges whose tail lies in L L L . Observe that Pr [ E i ] = 1 − ∣ A ∣ ∣ E L ∣ \Pr[E_i] = 1 - \frac{|A|}{|E_L|} Pr [ E i ] = 1 − ∣ E L ∣ ∣ A ∣ . Every edge in A A A is an out-edge of L L L in H H H , so ∣ A ∣ ≤ vol H + ( L ) ≤ vol G + ( L ) |A| \le\operatorname{vol}_H^+(L) \le\operatorname{vol}_G^+(L) ∣ A ∣ ≤ vol H + ( L ) ≤ vol G + ( L ) , where the second inequality holds because, by Lemma 31, each augmentation only decreases vol H + ( L ) \operatorname{vol}_H^+(L) vol H + ( L ) . Moreover, ∣ E L ∣ ≥ 2 ν κ |E_L| \ge2\nu\kappa ∣ E L ∣ ≥ 2 ν κ due to the while loop on line 7. Therefore, we have
1 − Pr [ E i ] = ∣ A ∣ ∣ E L ∣ ≤ vol G + ( L ) ∣ E L ∣ ≤ ν 2 ν κ = 1 2 κ . 1-\Pr[\mathcal{E}_i]=\frac{|A|}{|E_L|}\leq\frac{\operatorname{vol}_{G}^{+}(L)}{|E_L|}\leq\frac{\nu}{2\nu\kappa}=\frac{1}{2\kappa}. 1 − Pr [ E i ] = ∣ E L ∣ ∣ A ∣ ≤ ∣ E L ∣ vol G + ( L ) ≤ 2 ν κ ν = 2 κ 1 .
Note that the event E i \mathcal{E}_i E i only depends on the current state of the graph H H H at the time of the sampling, and not on what future edge insertions happen. Thus, this holds even if the adversary A \mathcal{A} A is randomness-adaptive. Finally, by the union bound, we have
Pr [ E ] = Pr [ E 1 ∩ ⋯ ∩ E κ ] ≥ 1 − ∑ i = 1 κ ( 1 − Pr [ E i ] ) ≥ 1 − κ 2 κ = 1 2 . \Pr[\mathcal{E}]=\Pr[\mathcal{E}_1\cap\cdots\cap\mathcal{E}_\kappa]\geq1-\sum_{i=1}^{\kappa}(1-\Pr[\mathcal{E}_i])\geq1-\frac{\kappa}{2\kappa}=\frac{1}{2}. Pr [ E ] = Pr [ E 1 ∩ ⋯ ∩ E κ ] ≥ 1 − i = 1 ∑ κ ( 1 − Pr [ E i ]) ≥ 1 − 2 κ κ = 2 1 .
Next, we analyze the running time of Algorithm 3 in the incremental setting.
Lemma 34. Running Algorithm 3 for ℓ \ell ℓ edge insertions takes O ( ν κ 2 + ℓ ) O(\nu\kappa^2+\ell) O ( ν κ 2 + ℓ ) total time.
Proof. We assume that G G G is provided as doubly linked adjacency lists, and that H H H is not an actual copy of G G G but G G G itself, with edges reversed in place. This way, an edge reversal can be performed in O ( 1 ) O(1) O ( 1 ) time, and by keeping track of the pointer changes during an edge reversal, we can undo each edge reversal in O ( 1 ) O(1) O ( 1 ) time as well.
Similarly, we assume that the array T T T is pre-initialized, that is T ( v ) ← ⊥ T(v)\leftarrow\perp T ( v ) ←⊥ for all v ∈ V ( G ) v\in V(G) v ∈ V ( G ) , and we will restore T T T to this state at the end of each iteration of the outer for loop. Also, whenever GrowReachabilityTree sets T ( v ) ← u T(v)\leftarrow u T ( v ) ← u , we additionally store a pointer to the corresponding edge ( u , v ) (u,v) ( u , v ) in T ( v ) T(v) T ( v ) ’s adjacency list. This allows us to find the edge ( T ( v ) , v ) (T(v),v) ( T ( v ) , v ) to be reversed in O ( 1 ) O(1) O ( 1 ) time.
Furthermore, we do not output the vertices of L L L one by one; instead, we output a pointer to the linked list storing L L L , in O ( 1 ) O(1) O ( 1 ) time.
Consider one iteration of the outer for loop. Across this iteration, GrowReachabilityTree runs in O ( ∣ E L ∣ ) O(|E_L|) O ( ∣ E L ∣ ) total time: each iteration of its for loop takes O ( 1 ) O(1) O ( 1 ) time, adding one edge to E L E_L E L , and possibly adding one vertex to L L L as well as updating its entry in T T T . Resetting T T T , L L L , and E L E_L E L at the end of the iteration therefore also takes O ( ∣ E L ∣ ) O(|E_L|) O ( ∣ E L ∣ ) time, as does sampling an edge ( u , v ) ∈ E L (u,v)\in E_L ( u , v ) ∈ E L and reversing the tree path P s , u P_{s,u} P s , u . Since ∣ E L ∣ ≤ 2 ν κ |E_L|\leq2\nu\kappa ∣ E L ∣ ≤ 2 ν κ , one iteration takes O ( ν κ ) O(\nu\kappa) O ( ν κ ) time, so the κ + 1 \kappa+1 κ + 1 iterations take O ( ν κ 2 ) O(\nu\kappa^2) O ( ν κ 2 ) time in total. These iterations reverse O ( ν κ 2 ) O(\nu\kappa^2) O ( ν κ 2 ) edges overall, so undoing all reversals at the end takes O ( ν κ 2 ) O(\nu\kappa^2) O ( ν κ 2 ) time as well. Finally, per edge insertion the algorithm spends only O ( 1 ) O(1) O ( 1 ) time, to check whether T ( u ) ≠ ⊥ T(u)\neq\perp T ( u ) = ⊥ and to add the new edge to G G G and H H H , which sums up to O ( ℓ ) O(\ell) O ( ℓ ) time over all ℓ \ell ℓ insertions. Altogether, the running time is O ( ν κ 2 + ℓ ) O(\nu\kappa^2+\ell) O ( ν κ 2 + ℓ ) .
We are now ready to prove Theorem 30:
Theorem 30 (IncrementalRootedEC). Given a directed graph G G G with m m m edges and two positive integers κ , ν \kappa,\nu κ , ν with ν ≤ m 2 κ \nu\leq\frac{m}{2\kappa} ν ≤ 2 κ m , as well as a vertex s ∈ V ( G ) s\in V(G) s ∈ V ( G ) , there is a data structure that maintains G G G under ℓ \ell ℓ edge insertions supplied by a randomness-adaptive adversary A \mathcal{A} A . After every insertion, the data structure reports either an s s s -rooted ( κ , ≤ 3 ν κ ) (\kappa,\leq3\nu\kappa) ( κ , ≤ 3 ν κ ) -edge cut or the symbol ⊥ \perp ⊥ . Let ( L , V ( G ) ∖ L ) (L,V(G)\setminus L) ( L , V ( G ) ∖ L ) be one particular s s s -rooted ( κ , ≤ ν ) (\kappa,\leq\nu) ( κ , ≤ ν ) -edge cut in G G G . With probability ≥ 1 2 \geq\frac{1}{2} ≥ 2 1 , the data structure only outputs ⊥ \perp ⊥ once ( L , V ( G ) ∖ L ) (L,V(G)\setminus L) ( L , V ( G ) ∖ L ) is no longer a valid s s s -rooted ( κ , ≤ ν ) (\kappa,\leq\nu) ( κ , ≤ ν ) -edge cut. The total running time is O ( ν κ 2 + ℓ ) O(\nu\kappa^2+\ell) O ( ν κ 2 + ℓ ) .
Proof. By Lemma 32, if Algorithm 3 outputs a set L L L then ( L , V ( G ) ∖ L ) (L,V(G)\setminus L) ( L , V ( G ) ∖ L ) is an s s s -rooted ( κ , ≤ 3 ν κ ) (\kappa,\leq3\nu\kappa) ( κ , ≤ 3 ν κ ) -edge cut. By Lemma 33, with probability at least 1 2 \frac{1}{2} 2 1 , the algorithm only outputs ⊥ \perp ⊥ once one particular s s s -rooted ( κ , ≤ ν ) (\kappa,\leq\nu) ( κ , ≤ ν ) -edge cut is no longer valid, even if the adversary is randomness-adaptive. By Lemma 34, the total running time of Algorithm 3 is O ( ν κ 2 + ℓ ) O(\nu\kappa^2+\ell) O ( ν κ 2 + ℓ ) .
Vertex Cuts
We now use Theorem 30 to prove Theorem 3. Let G G G be a directed graph with n n n vertices and m m m edges, and let s ∈ V ( G ) s \in V(G) s ∈ V ( G ) . We define the split graph G ′ G' G ′ of G G G with respect to s s s as follows. Every vertex v ∈ V ( G ) ∖ { s } v \in V(G) \setminus\{s\} v ∈ V ( G ) ∖ { s } is split into an in-vertex v − v^{-} v − and an out-vertex v + v^{+} v + joined by an internal edge ( v − , v + ) (v^{-},v^{+}) ( v − , v + ) ; every edge entering v v v in G G G now enters v − v^{-} v − , and every edge leaving v v v now leaves v + v^{+} v + . Formally,
V ( G ′ ) = { v − , v + ∣ v ∈ V ( G ) ∖ { s } } ∪ { s } V(G') = \{v^{-},v^{+} \mid v \in V(G) \setminus\{s\}\} \cup\{s\} V ( G ′ ) = { v − , v + ∣ v ∈ V ( G ) ∖ { s }} ∪ { s }
and
E ( G ′ ) = { ( u + , v − ) ∣ ( u , v ) ∈ E ( G ) } ∪ { ( v − , v + ) ∣ v ∈ V ( G ) ∖ { s } } , E(G') = \{(u^{+},v^{-}) \mid(u,v) \in E(G)\} \cup\{(v^{-},v^{+}) \mid v \in V(G) \setminus\{s\}\}, E ( G ′ ) = {( u + , v − ) ∣ ( u , v ) ∈ E ( G )} ∪ {( v − , v + ) ∣ v ∈ V ( G ) ∖ { s }} ,
where for convenience we write s − = s + = s s^{-}=s^{+}=s s − = s + = s . Observe that G ′ G' G ′ has n ′ = 2 n − 1 n'=2n-1 n ′ = 2 n − 1 vertices and m ′ = m + n − 1 m'=m+n-1 m ′ = m + n − 1 edges.
The following two lemmas relate G G G and G ′ G' G ′ , reducing the problem of finding a vertex cut in G G G to that of finding an edge cut in G ′ G' G ′ . Their proofs are similar to those of [FNYSY20, Lemmas 4.4 and 4.5], but improve the constants in the volume bounds.
Lemma 35. For a directed graph G G G , a vertex s ∈ V ( G ) s \in V(G) s ∈ V ( G ) , and two positive integers κ , ν \kappa,\nu κ , ν with δ + ( G ) > κ \delta^{+}(G)>\kappa δ + ( G ) > κ , let ( L , S , R ) (L,S,R) ( L , S , R ) be an s s s -rooted ( κ , ≤ ν ) (\kappa,\leq\nu) ( κ , ≤ ν ) -separation triple in G G G , and let G ′ G' G ′ be the split graph of G G G with respect to s s s . Put L ′ = { v − , v + ∣ v ∈ L } ∪ { v − ∣ v ∈ S } L'=\{v^{-},v^{+}\mid v\in L\}\cup\{v^{-}\mid v\in S\} L ′ = { v − , v + ∣ v ∈ L } ∪ { v − ∣ v ∈ S } . Then ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) is an s s s -rooted ( κ , ≤ 2 ν ) (\kappa,\leq2\nu) ( κ , ≤ 2 ν ) -edge cut in G ′ G' G ′ .
Proof. We first show that ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) is an s s s -rooted κ \kappa κ -edge cut in G ′ G' G ′ . Since ( L , S , R ) (L,S,R) ( L , S , R ) is a separation triple, L L L has no edges to R R R , so every out-edge of L L L ends in L ∪ S L\cup S L ∪ S ; as the in-copies of L L L and S S S both lie in L ′ L' L ′ , no edge of G ′ G' G ′ corresponding to an out-edge of L L L in G G G crosses the edge cut. The only edges in ∂ G ′ ( L ′ ) \partial_{G'}(L') ∂ G ′ ( L ′ ) are therefore the internal edges ( v − , v + ) (v^{-},v^{+}) ( v − , v + ) with v ∈ S v\in S v ∈ S , of which there are exactly ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ . Hence ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) is a κ \kappa κ -edge cut, and s ∈ L ′ s\in L' s ∈ L ′ since s ∈ L s\in L s ∈ L .
Next we bound vol G ′ + ( L ′ ) \operatorname{vol}^{+}_{G'}(L') vol G ′ + ( L ′ ) . Splitting L ′ L' L ′ into its three parts,
vol G ′ + ( L ′ ) = ∑ v ∈ L deg G ′ + ( v + ) + ∑ v ∈ L ∖ { s } deg G ′ + ( v − ) + ∑ v ∈ S deg G ′ + ( v − ) . \operatorname{vol}^{+}_{G'}(L')=\sum_{v\in L}\deg^{+}_{G'}(v^{+})+\sum_{v\in L\setminus\{s\}}\deg^{+}_{G'}(v^{-})+\sum_{v\in S}\deg^{+}_{G'}(v^{-}). vol G ′ + ( L ′ ) = v ∈ L ∑ deg G ′ + ( v + ) + v ∈ L ∖ { s } ∑ deg G ′ + ( v − ) + v ∈ S ∑ deg G ′ + ( v − ) .
The sum A A A counts the out-edges of the vertices { v + ∣ v ∈ L } \{v^{+}\mid v\in L\} { v + ∣ v ∈ L } , which are in bijection with the out-edges of the vertices of L L L in G G G ; hence A = vol G + ( L ) A=\operatorname{vol}^{+}_{G}(L) A = vol G + ( L ) . The sums B B B and C C C count internal edges. Each in-vertex v − v^{-} v − has out-degree 1 1 1 , so B = ∣ L ∣ − 1 B=|L|-1 B = ∣ L ∣ − 1 and C = ∣ S ∣ C=|S| C = ∣ S ∣ . Using vol G + ( L ) ≤ ν \operatorname{vol}^{+}_{G}(L)\leq\nu vol G + ( L ) ≤ ν and ∣ S ∣ = κ |S|=\kappa ∣ S ∣ = κ ,
vol G ′ + ( L ′ ) = A + B + C = vol G + ( L ) + ( ∣ L ∣ − 1 ) + ∣ S ∣ ≤ ν + ∣ L ∣ + κ − 1. \operatorname{vol}^{+}_{G'}(L')=A+B+C=\operatorname{vol}^{+}_{G}(L)+(|L|-1)+|S|\leq\nu+|L|+\kappa-1. vol G ′ + ( L ′ ) = A + B + C = vol G + ( L ) + ( ∣ L ∣ − 1 ) + ∣ S ∣ ≤ ν + ∣ L ∣ + κ − 1.
Since ∣ L ∣ ≥ 1 |L|\geq1 ∣ L ∣ ≥ 1 and κ ≥ 1 \kappa\geq1 κ ≥ 1 , we have ( ∣ L ∣ − 1 ) ( κ − 1 ) ≥ 0 (|L|-1)(\kappa-1)\geq0 ( ∣ L ∣ − 1 ) ( κ − 1 ) ≥ 0 , that is, ∣ L ∣ + κ − 1 ≤ ∣ L ∣ κ |L|+\kappa-1\leq|L|\kappa ∣ L ∣ + κ − 1 ≤ ∣ L ∣ κ . Moreover, since every vertex of L L L has out-degree greater than κ \kappa κ , we have vol G + ( L ) = ∑ v ∈ L deg G + ( v ) ≥ ∣ L ∣ κ \operatorname{vol}^{+}_{G}(L)=\sum_{v\in L}\deg^{+}_{G}(v)\geq|L|\kappa vol G + ( L ) = ∑ v ∈ L deg G + ( v ) ≥ ∣ L ∣ κ , so that ∣ L ∣ κ ≤ vol G + ( L ) ≤ ν |L|\kappa\leq\operatorname{vol}^{+}_{G}(L)\leq\nu ∣ L ∣ κ ≤ vol G + ( L ) ≤ ν . Combining these two bounds yields
vol G ′ + ( L ′ ) ≤ ν + ∣ L ∣ + κ − 1 ≤ ν + ∣ L ∣ κ ≤ 2 ν , \operatorname{vol}^{+}_{G'}(L')\leq\nu+|L|+\kappa-1\leq\nu+|L|\kappa\leq2\nu, vol G ′ + ( L ′ ) ≤ ν + ∣ L ∣ + κ − 1 ≤ ν + ∣ L ∣ κ ≤ 2 ν ,
which shows that ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) is an s s s -rooted ( κ , ≤ 2 ν ) (\kappa,\leq2\nu) ( κ , ≤ 2 ν ) -edge cut in G ′ G' G ′ . □
Lemma 36. For a directed graph G G G , a vertex s ∈ V ( G ) s\in V(G) s ∈ V ( G ) , and two positive integers κ , ν \kappa,\nu κ , ν , let G ′ G' G ′ be the split graph of G G G with respect to s s s . Suppose that κ ≤ n ′ 2 \kappa\leq\frac{n'}{2} κ ≤ 2 n ′ , δ + ( G ) > κ \delta^{+}(G)>\kappa δ + ( G ) > κ , and ν ≤ m ′ 4 \nu\leq\frac{m'}{4} ν ≤ 4 m ′ , and let ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) be a s s s -rooted ( κ , ≤ ν ) (\kappa,\leq\nu) ( κ , ≤ ν ) -edge cut in G ′ G' G ′ . Let L = { v ∈ V ( G ) ∣ { v − , v + } ⊆ L ′ } L=\{v\in V(G)\mid\{v^{-},v^{+}\}\subseteq L'\} L = { v ∈ V ( G ) ∣ { v − , v + } ⊆ L ′ } . Then ( L , N G + ( L ) , V ( G ) ∖ ( L ∪ N G + ( L ) ) ) (L,N^{+}_{G}(L),V(G)\setminus(L\cup N^{+}_{G}(L))) ( L , N G + ( L ) , V ( G ) ∖ ( L ∪ N G + ( L ))) is an s s s -rooted ( κ , ≤ ν ) (\kappa,\leq\nu) ( κ , ≤ ν ) -separation triple in G G G .
Proof. Note that s ∈ L s\in L s ∈ L , since s ∈ L ′ s\in L' s ∈ L ′ and s − = s + = s s^{-}=s^{+}=s s − = s + = s . We first bound the cut size. Fix v ∈ N G + ( L ) v\in N^{+}_{G}(L) v ∈ N G + ( L ) together with an edge ( u , v ) ∈ ∂ G + ( L ) (u,v)\in\partial^{+}_{G}(L) ( u , v ) ∈ ∂ G + ( L ) ; since u ∈ L u\in L u ∈ L , we have { u − , u + } ⊆ L ′ \{u^{-},u^{+}\}\subseteq L' { u − , u + } ⊆ L ′ . If v − ∉ L ′ v^{-}\notin L' v − ∈ / L ′ , then ( u + , v − ) ∈ ∂ G ′ + ( L ′ ) (u^{+},v^{-})\in\partial^{+}_{G'}(L') ( u + , v − ) ∈ ∂ G ′ + ( L ′ ) , so v − ∈ N G ′ + ( L ′ ) v^{-}\in N^{+}_{G'}(L') v − ∈ N G ′ + ( L ′ ) . Otherwise v − ∈ L ′ v^{-}\in L' v − ∈ L ′ , and since v ∉ L v\notin L v ∈ / L we must have v + ∉ L ′ v^{+}\notin L' v + ∈ / L ′ ; then ( v − , v + ) ∈ ∂ G ′ + ( L ′ ) (v^{-},v^{+}) \in\partial^{+}_{G'}(L') ( v − , v + ) ∈ ∂ G ′ + ( L ′ ) , so v + ∈ N G ′ + ( L ′ ) v^{+} \in N^{+}_{G'}(L') v + ∈ N G ′ + ( L ′ ) . In either case at least one of v − , v + v^{-},v^{+} v − , v + lies in N G ′ + ( L ′ ) N^{+}_{G'}(L') N G ′ + ( L ′ ) , and these witnesses are distinct for different vertices v ∈ N G + ( L ) v \in N^{+}_{G}(L) v ∈ N G + ( L ) . Hence,
∣ N G + ( L ) ∣ ≤ ∣ N G ′ + ( L ′ ) ∣ ≤ ∣ ∂ G ′ + ( L ′ ) ∣ ≤ κ . \left|N^{+}_{G}(L)\right| \leq\left|N^{+}_{G'}(L')\right| \leq\left|\partial^{+}_{G'}(L')\right| \leq\kappa. N G + ( L ) ≤ N G ′ + ( L ′ ) ≤ ∂ G ′ + ( L ′ ) ≤ κ .
Next we bound the volume:
vol G + ( L ) = ∑ v ∈ L deg G + ( v ) = ( 1 ) ∑ v ∈ L deg G ′ + ( v + ) ≤ ( 2 ) vol G ′ + ( L ′ ) − ∣ L ∖ { s } ∣ . (1) \operatorname{vol}^{+}_{G}(L) = \sum_{v\in L}\deg^{+}_{G}(v) \mathrel{\mathop{=}^{(1)}} \sum_{v\in L}\deg^{+}_{G'}(v^{+}) \mathrel{\mathop{\leq}^{(2)}} \operatorname{vol}^{+}_{G'}(L') - |L \setminus\{s\}|. \tag*{(1)} vol G + ( L ) = v ∈ L ∑ deg G + ( v ) = ( 1 ) v ∈ L ∑ deg G ′ + ( v + ) ≤ ( 2 ) vol G ′ + ( L ′ ) − ∣ L ∖ { s } ∣. (1)
where (1) uses deg G ′ + ( v + ) = deg G + ( v ) \deg^{+}_{G'}(v^{+}) = \deg^{+}_{G}(v) deg G ′ + ( v + ) = deg G + ( v ) , and (2) holds because for each v ∈ L v \in L v ∈ L we have { v − , v + } ⊆ L ′ \{v^{-},v^{+}\} \subseteq L' { v − , v + } ⊆ L ′ with deg G ′ + ( v − ) = 1 \deg^{+}_{G'}(v^{-}) = 1 deg G ′ + ( v − ) = 1 for v ≠ s v \ne s v = s , so { v + ∣ v ∈ L } \{v^{+} \mid v \in L\} { v + ∣ v ∈ L } and { v − ∣ v ∈ L ∖ { s } } \{v^{-} \mid v \in L \setminus\{s\}\} { v − ∣ v ∈ L ∖ { s }} are disjoint subsets of L ′ L' L ′ . Since vol G ′ + ( L ′ ) ≤ ν \operatorname{vol}^{+}_{G'}(L') \leq\nu vol G ′ + ( L ′ ) ≤ ν , this shows vol G + ( L ) ≤ ν \operatorname{vol}^{+}_{G}(L) \leq\nu vol G + ( L ) ≤ ν .
It remains to show that the cut is valid, i.e., that V ( G ) ∖ ( L ∪ N G + ( L ) ) ≠ ∅ V(G) \setminus(L \cup N^{+}_{G}(L)) \ne\varnothing V ( G ) ∖ ( L ∪ N G + ( L )) = ∅ , or equivalently L ∪ N G + ( L ) ≠ V ( G ) L \cup N^{+}_{G}(L) \ne V(G) L ∪ N G + ( L ) = V ( G ) . Suppose for contradiction that L ∪ N G + ( L ) = V ( G ) L \cup N^{+}_{G}(L) = V(G) L ∪ N G + ( L ) = V ( G ) , and let k = ∣ N G + ( L ) ∣ k = |N^{+}_{G}(L)| k = ∣ N G + ( L ) ∣ ; since L L L and N G + ( L ) N^{+}_{G}(L) N G + ( L ) are disjoint, ∣ L ∣ = n − k |L| = n-k ∣ L ∣ = n − k . We distinguish two cases. If m ′ ≥ 2 n k m' \geq2nk m ′ ≥ 2 nk , then
m = vol G + ( L ) + vol G + ( N G + ( L ) ) . m = \operatorname{vol}^{+}_{G}(L) + \operatorname{vol}^{+}_{G}(N^{+}_{G}(L)). m = vol G + ( L ) + vol G + ( N G + ( L )) .
For the first term, ( ∗ ) (*) ( ∗ ) gives
vol G + ( L ) ≤ vol G ′ + ( L ′ ) − ∣ L ∖ { s } ∣ ≤ ν − ( n − k − 1 ) ≤ m ′ 4 − n + k + 1. \operatorname{vol}^{+}_{G}(L) \leq\operatorname{vol}^{+}_{G'}(L') - |L \setminus\{s\}| \leq\nu- (n-k-1) \leq\frac{m'}{4} - n + k + 1. vol G + ( L ) ≤ vol G ′ + ( L ′ ) − ∣ L ∖ { s } ∣ ≤ ν − ( n − k − 1 ) ≤ 4 m ′ − n + k + 1.
For the second term, since G G G is simple, each of the k k k vertices of N G + ( L ) N^{+}_{G}(L) N G + ( L ) has out-degree at most n − 1 n-1 n − 1 , so
vol G + ( N G + ( L ) ) ≤ k ( n − 1 ) = n k − k ≤ m ′ 2 − k . \operatorname{vol}^{+}_{G}(N^{+}_{G}(L)) \leq k(n-1) = nk-k \leq\frac{m'}{2}-k. vol G + ( N G + ( L )) ≤ k ( n − 1 ) = nk − k ≤ 2 m ′ − k .
Adding these yields
m ≤ m ′ 4 − n + k + 1 + m ′ 2 − k < m ′ − n + 1 = m , m \leq\frac{m'}{4} - n + k + 1 + \frac{m'}{2} - k < m' - n + 1 = m, m ≤ 4 m ′ − n + k + 1 + 2 m ′ − k < m ′ − n + 1 = m ,
a contradiction which shows that m ′ < 2 n k m' < 2nk m ′ < 2 nk . But then
ν ≥ vol G + ( L ) ≥ ( 3 ) ∣ L ∣ ⋅ k = ( n − k ) ⋅ k ≥ ( 4 ) n 2 ⋅ k = n k 2 > ( 5 ) m ′ 4 ≥ ν , \nu\geq\operatorname{vol}^{+}_{G}(L) \mathrel{\mathop{\geq}^{(3)}} |L| \cdot k = (n-k)\cdot k \mathrel{\mathop{\geq}^{(4)}} \frac{n}{2}\cdot k = \frac{nk}{2} \mathrel{\mathop{>}^{(5)}} \frac{m'}{4} \geq\nu, ν ≥ vol G + ( L ) ≥ ( 3 ) ∣ L ∣ ⋅ k = ( n − k ) ⋅ k ≥ ( 4 ) 2 n ⋅ k = 2 nk > ( 5 ) 4 m ′ ≥ ν ,
where (3) holds because every v ∈ L v \in L v ∈ L has deg G + ( v ) > κ ≥ k \deg^{+}_{G}(v) > \kappa\geq k deg G + ( v ) > κ ≥ k , (4) uses k ≤ κ ≤ n 2 k \leq\kappa\leq\frac{n}{2} k ≤ κ ≤ 2 n , and (5) uses m ′ < 2 n k m' < 2nk m ′ < 2 nk . This is again a contradiction; therefore, L ∪ N G + ( L ) ≠ V ( G ) L \cup N^{+}_{G}(L) \ne V(G) L ∪ N G + ( L ) = V ( G ) .
We now combine this reduction with our incremental edge-cut data structure (Theorem 30) to prove Theorem 3. Besides a copy of G G G , our IncrementalRootedVC data structure will require a copy of the split graph G ′ G' G ′ as doubly linked adjacency lists, in which every vertex (including s s s ) is split; that is, V ( G ′ ) = { v − , v + ∣ v ∈ V ( G ) } V(G') = \{v^{-},v^{+} \mid v \in V(G)\} V ( G ′ ) = { v − , v + ∣ v ∈ V ( G )} and E ( G ′ ) = { ( u + , v − ) ∣ ( u , v ) ∈ E ( G ) } ∪ { ( v − , v + ) ∣ v ∈ V ( G ) } E(G') = \{(u^{+},v^{-}) \mid(u,v) \in E(G)\} \cup\{(v^{-},v^{+}) \mid v \in V(G)\} E ( G ′ ) = {( u + , v − ) ∣ ( u , v ) ∈ E ( G )} ∪ {( v − , v + ) ∣ v ∈ V ( G )} . This modification makes G ′ G' G ′ independent of s s s , so a single copy of G ′ G' G ′ can be reused for all invocations of IncrementalRootedVC in Algorithm 1, even if these instances use different source vertices s s s : during an invocation, some edges of G ′ G' G ′ might get reversed, but Algorithm 3 undoes all these reversals before returning, leaving G ′ G' G ′ in its original state for the next invocation.
This copy of G ′ G' G ′ can be maintained with constant overhead per edge insertion: Whenever an edge ( u , v ) (u,v) ( u , v ) gets inserted into G G G , we insert the edge ( u + , v − ) (u^{+},v^{-}) ( u + , v − ) into G ′ G' G ′ . Finally, we note that, although s s s is split in G ′ G' G ′ , the adjacency list of G ′ G' G ′ encodes all the information necessary for us to run Algorithm 3 on the split graph where the vertex s s s is not split. Indeed, the out-neighbors of the unsplit vertex s s s are precisely the out-neighbors of the split vertex s + s^{+} s + , and we can interpret any edge leading to the split vertex s − s^{-} s − as an edge leading to s s s instead.
Theorem 3 (IncrementalRootedVC). Given a graph G G G with m m m edges and two positive integers κ , ν \kappa,\nu κ , ν with κ ≤ n 2 \kappa\le\frac{n}{2} κ ≤ 2 n , ν ≤ m 2 κ \nu\le\frac{m}{2\kappa} ν ≤ 2 κ m , and δ + ( G ) > κ \delta^{+}(G) > \kappa δ + ( G ) > κ , as well as a vertex s ∈ V ( G ) s \in V(G) s ∈ V ( G ) , there is a data structure that maintains G G G under ℓ \ell ℓ edge insertions supplied by a randomness-adaptive adversary A A A . After every insertion, the data structure reports either the vertex cut S S S of some s s s -rooted ( κ , ≤ 6 ν κ ) (\kappa,\le6\nu\kappa) ( κ , ≤ 6 ν κ ) -separation triple or the symbol ⊥ \perp ⊥ . Let ( L , S , R ) (L,S,R) ( L , S , R ) be one particular s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple in G G G . With probability ≥ 1 2 \ge\frac{1}{2} ≥ 2 1 , the data structure only outputs ⊥ \perp ⊥ once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer a valid s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple. The total running time is O ( ν κ 2 + ℓ ) O(\nu\kappa^{2}+\ell) O ( ν κ 2 + ℓ ) .
Proof. Our data structure is given G G G together with the split graph G ′ G' G ′ in which every vertex, including s s s , is split, as described above. For the analysis we instead regard G ′ G' G ′ as the split graph of G G G with s s s left unsplit, exactly as in Lemmas 35 and 36; then G ′ G' G ′ has n ′ = 2 n − 1 n'=2n-1 n ′ = 2 n − 1 vertices and m ′ = m + n − 1 m'=m+n-1 m ′ = m + n − 1 edges. We defer the explanation of how the algorithm operates on the fully split graph it actually receives to the implementation details below.
Our data structure runs IncrementalRootedEC (Theorem 30) on G ′ G' G ′ with parameters κ ′ = κ \kappa'=\kappa κ ′ = κ , ν ′ = 2 ν \nu'=2\nu ν ′ = 2 ν , and source s s s . Each edge ( u , v ) (u,v) ( u , v ) inserted into G G G is passed on as the edge ( u + , v − ) (u^{+},v^{-}) ( u + , v − ) inserted into G ′ G' G ′ . Whenever IncrementalRootedEC reports an edge cut ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) , we implicitly form L = { v ∈ V ( G ) ∣ { v − , v + } ⊆ L ′ } L=\{v\in V(G)\mid\{v^{-},v^{+}\}\subseteq L'\} L = { v ∈ V ( G ) ∣ { v − , v + } ⊆ L ′ } and output the separator S = N G + ( L ) S=N_{G}^{+}(L) S = N G + ( L ) ; whenever it reports ⊥ \perp ⊥ , we output ⊥ \perp ⊥ . In the implementation details below, we explain how to compute S S S efficiently.
Correctness. We first check that IncrementalRootedEC is invoked with valid parameters: κ ′ \kappa' κ ′ and ν ′ \nu' ν ′ are positive, and Theorem 30 requires ν ′ ≤ m ′ 2 κ ′ \nu'\le\frac{m'}{2\kappa'} ν ′ ≤ 2 κ ′ m ′ , which holds since ν ′ = 2 ν ≤ m 2 κ ≤ m ′ 2 κ ′ \nu'=2\nu\le\frac{m}{2\kappa}\le\frac{m'}{2\kappa'} ν ′ = 2 ν ≤ 2 κ m ≤ 2 κ ′ m ′ .
Suppose IncrementalRootedEC reports a cut ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) . By Theorem 30 this is a s s s -rooted ( κ , ≤ 3 ν ′ κ ) (\kappa,\le3\nu'\kappa) ( κ , ≤ 3 ν ′ κ ) -edge cut in G ′ G' G ′ , that is, a ( κ , ≤ 6 ν κ ) (\kappa,\le6\nu\kappa) ( κ , ≤ 6 ν κ ) -edge cut. Since 6 ν κ ≤ 6 ⋅ m 2 κ ⋅ κ = m ? ≤ m ′ ? 6\nu\kappa\le6\cdot\frac{m}{2\kappa}\cdot\kappa=\frac{m}{?}\le\frac{m'}{?} 6 ν κ ≤ 6 ⋅ 2 κ m ⋅ κ = ? m ≤ ? m ′ , and since κ ≤ n 2 \kappa\le\frac{n}{2} κ ≤ 2 n and δ + ( G ) > κ \delta^{+}(G)>\kappa δ + ( G ) > κ , Lemma 36 applies and shows that ( L , N G + ( L ) , V ( G ) ∖ ( L ∪ N G + ( L ) ) ) (L,N_{G}^{+}(L),V(G)\setminus(L\cup N_{G}^{+}(L))) ( L , N G + ( L ) , V ( G ) ∖ ( L ∪ N G + ( L ))) is an s s s -rooted ( κ , ≤ 6 ν κ ) (\kappa,\le6\nu\kappa) ( κ , ≤ 6 ν κ ) -separation triple in G G G . Hence the vertex cut S = N G + ( L ) S=N_{G}^{+}(L) S = N G + ( L ) that we output belongs to a valid s s s -rooted ( κ , ≤ 6 ν κ ) (\kappa,\le6\nu\kappa) ( κ , ≤ 6 ν κ ) -separation triple.
It remains to show that we do not output ⊥ \perp ⊥ prematurely. For this, let ( L , S , R ) (L,S,R) ( L , S , R ) be the particular s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple from the statement of the theorem. By Lemma 35, the pair ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) with L ′ = { v − , v + ∣ v ∈ L } ∪ { v − ∣ v ∈ S } L'=\{v^{-},v^{+}\mid v\in L\}\cup\{v^{-}\mid v\in S\} L ′ = { v − , v + ∣ v ∈ L } ∪ { v − ∣ v ∈ S } is a s s s -rooted ( κ , ≤ 2 ν ) (\kappa,\le2\nu) ( κ , ≤ 2 ν ) -edge cut in G ′ G' G ′ ; applying the lemma to the current graph after each insertion, it remains valid for as long as ( L , S , R ) (L,S,R) ( L , S , R ) remains a valid s s s -rooted ( κ , ≤ ν ) (\kappa,\le\nu) ( κ , ≤ ν ) -separation triple. Since each insertion into G G G induces exactly one insertion into G ′ G' G ′ , a randomness-adaptive adversary against our data structure induces a randomness-adaptive adversary against IncrementalRootedEC. Thus, by Theorem 30 (with ν ′ = 2 ν \nu'=2\nu ν ′ = 2 ν ), with probability at least 1 2 \frac{1}{2} 2 1 , IncrementalRootedEC outputs ⊥ \perp ⊥ only once ( L ′ , V ( G ′ ) ∖ L ′ ) (L',V(G')\setminus L') ( L ′ , V ( G ′ ) ∖ L ′ ) is no longer valid; in that case our data structure outputs ⊥ \perp ⊥ only once ( L , S , R ) (L,S,R) ( L , S , R ) is no longer valid.
Implementation details. The algorithm is actually given the graph G ′ G' G ′ in which every vertex, including s s s , is split. To make it behave as on the single-copy split graph above, we run IncrementalRootedEC from the source s + s^{+} s + and, at the start of each of its outer iterations, additionally mark s − s^{-} s − as reached, adding it to L ′ L' L ′ . The only edge out of s − s^{-} s − is the internal edge ( s − , s + ) (s^{-},s^{+}) ( s − , s + ) , whose endpoints both lie in L ′ L' L ′ , so this reproduces the reachability from an unsplit s s s , at O ( 1 ) O(1) O ( 1 ) extra cost per iteration.
To maintain the vertex cut S S S efficiently, we first make a few observations. Recall that L = { v ∈ V ( G ) ∣ { v − , v + } ⊆ L ′ } L=\{v\in V(G)\mid\{v^{-},v^{+}\}\subseteq L'\} L = { v ∈ V ( G ) ∣ { v − , v + } ⊆ L ′ } and S = N G + ( L ) S=N_{G}^{+}(L) S = N G + ( L ) . A vertex v v v enters L L L exactly when both v − v^{-} v − and v + v^{+} v + have been added to L ′ L' L ′ . When this happens, S S S must be updated in two ways: since v v v is now in L L L , it leaves N G + ( L ) N_{G}^{+}(L) N G + ( L ) and must be removed from S S S if present; and every out-neighbor of v v v in G G G that is not already in L L L must be added to S S S .
We maintain L L L implicitly: for each vertex v ∈ V ( G ) v \in V(G) v ∈ V ( G ) we record whether v − ∈ L ′ v^{-} \in L' v − ∈ L ′ and whether v + ∈ L ′ v^{+} \in L' v + ∈ L ′ . This lets us test whether v ∈ L v \in L v ∈ L in O ( 1 ) O(1) O ( 1 ) time. We update this information in O ( 1 ) O(1) O ( 1 ) time whenever IncrementalRootedEC adds a vertex to L ′ L' L ′ . We maintain S S S explicitly as a doubly linked list together with, for each vertex u ∈ V ( G ) u \in V(G) u ∈ V ( G ) , a pointer to its position in S S S (or ⊥ \bot ⊥ if u ∉ S u \notin S u ∈ / S ). This way, a vertex can be added to or removed from S S S in O ( 1 ) O(1) O ( 1 ) time. Whenever IncrementalRootedEC adds the vertex v + v^{+} v + or v − v^{-} v − to L ′ L' L ′ , we test whether v v v should be added to L L L , and if so, update S S S as described above. Maintaining S S S this way takes O ( vol G + ( L ) ) O(\operatorname{vol}^{+}_{G}(L)) O ( vol G + ( L )) time per outer iteration of the for loop in Algorithm 3.
There is one technical complication here. The bound vol G + ( L ) ≤ vol G ′ + ( L ′ ) ≤ 6 ν κ \operatorname{vol}^{+}_{G}(L) \le\operatorname{vol}^{+}_{G'}(L') \le6\nu\kappa vol G + ( L ) ≤ vol G ′ + ( L ′ ) ≤ 6 ν κ from Lemma 32 and Lemma 36 only holds when IncrementalRootedEC outputs the set L ′ L' L ′ ; while L ′ L' L ′ is still growing, vol G + ( L ) \operatorname{vol}^{+}_{G}(L) vol G + ( L ) can be far larger, so updating S S S immediately after every change to L L L could take ≫ ν κ \gg\nu\kappa ≫ ν κ time. To avoid this, we record all changes to L L L in a linked list and apply them to S S S only once IncrementalRootedEC outputs L ′ L' L ′ , at which point vol G + ( L ) ≤ 6 ν κ \operatorname{vol}^{+}_{G}(L) \le6\nu\kappa vol G + ( L ) ≤ 6 ν κ . If Algorithm 3 instead exits the while loop and resets L L L to { s } \{s\} { s } , we discard this list and reset L L L and S S S .
Running time. By Theorem 30, IncrementalRootedEC on G ′ G' G ′ with parameters κ \kappa κ and 2 ν 2\nu 2 ν processes ℓ \ell ℓ insertions in O ( 2 ν κ 2 + ℓ ) = O ( ν κ 2 + ℓ ) O(2\nu\kappa^{2}+\ell)=O(\nu\kappa^{2}+\ell) O ( 2 ν κ 2 + ℓ ) = O ( ν κ 2 + ℓ ) time. Maintaining L L L adds a constant-factor overhead compared to how IncrementalRootedEC maintains L ′ L' L ′ . Maintaining S S S costs O ( ν κ ) O(\nu\kappa) O ( ν κ ) per iteration of the for loop in Algorithm 3; over the at most κ + 1 \kappa+1 κ + 1 such iterations, this sums to O ( ν κ 2 ) O(\nu\kappa^{2}) O ( ν κ 2 ) . Since G ′ G' G ′ is given as input and restored after use, no time is spent constructing it. In total, the data structure runs in O ( ν κ 2 + ℓ ) O(\nu\kappa^{2}+\ell) O ( ν κ 2 + ℓ ) time.
Auxiliary data structures
This section covers the existing data structures for incremental reachability and incremental max-flow from the literature that we use in Algorithm 1. For completeness, we describe how each of these structures works internally. We start by presenting a folklore data structure for maintaining single-source reachability.
Theorem 37 ([28 ] ). Given a graph G G G with n n n vertices and a source vertex u ∈ V ( G ) u \in V(G) u ∈ V ( G ) , there is a data structure that maintains G G G under edge insertions and, after every insertion, reports whether every vertex v ∈ V ( G ) v \in V(G) v ∈ V ( G ) is reachable from u u u in G G G . The total running time is O ( m ) O(m) O ( m ) , where m m m is the number of edges in G G G after all edge insertions.
Proof. The data structure maintains a set T T T of vertices reachable from u u u . Upon insertion of an edge ( v , w ) (v,w) ( v , w ) , we check whether v ∈ T v \in T v ∈ T . If so, and if w ∉ T w \notin T w ∈ / T , we add w w w to T T T and recurse on the outgoing edges of w w w . This process takes O ( m ) O(m) O ( m ) time in total over all edge insertions, as every edge is processed at most twice: when it is inserted and when its tail is added to T T T . Maintaining a counter for ∣ T ∣ |T| ∣ T ∣ , we can then answer whether all vertices are reachable from u u u in O ( 1 ) O(1) O ( 1 ) time by checking whether ∣ T ∣ = n |T|=n ∣ T ∣ = n .**
Next, we will use this data structure to maintain whether a given graph undergoing edge insertions is strongly connected. This is done by maintaining two copies of the data structure, on the graph and the reversed graph, respectively.
Lemma 7 (Incremental 1-connectivity). Given a graph G G G with n n n vertices, there is a data structure that maintains G G G under edge insertions and, after every insertion, reports whether the graph is strongly connected or not. The total running time is O ( m ) O(m) O ( m ) , where m m m is the number of edges in G G G after all insertions.
Proof. We fix an arbitrary vertex u ∈ V ( G ) u \in V(G) u ∈ V ( G ) and maintain the single-source reachability from u u u in both the graph G G G and the reversed graph G ← \overleftarrow{G} G with the incremental data structure from Theorem 37, where the total running time is O ( m ) O(m) O ( m ) . We show that G G G is strongly connected if and only if every vertex v ∈ V ( G ) v \in V(G) v ∈ V ( G ) is reachable from u u u both in G G G and in G ← \overleftarrow{G} G .
If there is a vertex v v v that is not reachable from u u u in G G G , then G G G is trivially not strongly connected. Similarly, if there is a vertex v v v that is not reachable from u u u in G ← \overleftarrow{G} G , then u u u is not reachable from v v v in G G G , so G G G is also not strongly connected.
Conversely, assume that every vertex is reachable from u u u in both G G G and G ← \overleftarrow{G} G . Now fix any two vertices v , w ∈ V ( G ) v,w \in V(G) v , w ∈ V ( G ) . Since v v v is reachable from u u u in G ← \overleftarrow{G} G , the vertex u u u is reachable from v v v in G G G ; and by assumption w w w is reachable from u u u in G G G . Concatenating these two paths shows that w w w is reachable from v v v . As v v v and w w w were chosen arbitrarily, G G G is strongly connected. □
Finally, we mention the data structure we use to maintain exact ( s , t ) (s,t) ( s , t ) -vertex cuts under edge insertions, using max-flow. The max-flow data structure of [19 ] internally uses the reachability structure introduced above to maintain a reachability tree in the residual graph, updating the flow and recomputing the tree whenever the flow value increases. Since we are only interested in vertex cuts of size κ \kappa κ , we can terminate this process once the flow becomes too big.
Theorem 6 (IncrementalMaxFlowVC [21 , 19 ] ). Given a graph G G G with m m m edges and an integer κ \kappa κ such that G G G is κ \kappa κ -connected, as well as two vertices s , t ∈ V ( G ) s,t \in V(G) s , t ∈ V ( G ) , there is a data structure that maintains G G G under ℓ \ell ℓ edge insertions and reports an ( s , t ) (s,t) ( s , t ) -vertex cut of size κ \kappa κ after every insertion, or the fact that no such cut exists. The total running time is O ( κ ( m + ℓ ) ) O(\kappa(m+\ell)) O ( κ ( m + ℓ )) .
Proof. The data structure maintains a maximum ( s , t ) (s,t) ( s , t ) -flow in a modified graph G ′ G' G ′ on 2 n 2n 2 n vertices and m + 2 n m+2n m + 2 n edges using the incremental max-flow data structure of [19 ] . The graph G ′ G' G ′ is obtained from G G G in the standard way by splitting each vertex v ∈ V ( G ) v \in V(G) v ∈ V ( G ) into two vertices v − , v + v^-,v^+ v − , v + , adding an edge ( v − , v + ) (v^-,v^+) ( v − , v + ) of capacity 1 1 1 , and an edge ( v + , v − ) (v^+,v^-) ( v + , v − ) of infinite capacity; and replacing each edge ( u , v ) ∈ E ( G ) (u,v) \in E(G) ( u , v ) ∈ E ( G ) with an edge ( u + , v − ) (u^+,v^-) ( u + , v − ) of infinite capacity. Then, a minimum ( s , t ) (s,t) ( s , t ) -vertex cut in G G G corresponds to a minimum ( s + , t − ) (s^+,t^-) ( s + , t − ) -edge cut in G ′ G' G ′ .
More precisely, if ( L ′ , R ′ ) (L',R') ( L ′ , R ′ ) is a minimum ( s + , t − ) (s^+,t^-) ( s + , t − ) -edge cut in G ′ G' G ′ , then S S S is a minimum ( s , t ) (s,t) ( s , t ) -vertex cut where S = { v ∈ V ( G ) ∣ v − ∈ L ′ ∧ v + ∈ R ′ } S = \{v \in V(G) \mid v^- \in L' \land v^+ \in R'\} S = { v ∈ V ( G ) ∣ v − ∈ L ′ ∧ v + ∈ R ′ } . The data structure of [19 ] maintains not only the current flow value, but also the set of vertices L ′ L' L ′ of some minimum ( s + , t − ) (s^+,t^-) ( s + , t − ) -edge cut ( L ′ , R ′ ) (L',R') ( L ′ , R ′ ) in G ′ G' G ′ . Thus, the structure can also maintain the set S S S of the corresponding ( s , t ) (s,t) ( s , t ) -vertex cut in G G G .
The total running time of the data structure of [19 ] for a sequence of ℓ \ell ℓ edge insertions is O ( f m + ℓ ) O(fm+\ell) O ( f m + ℓ ) where f f f is the final flow value. In our case, we will terminate the augmentation process once the flow value exceeds κ \kappa κ and report that no ( s , t ) (s,t) ( s , t ) -vertex cut of size κ \kappa κ exists, and so the runtime will be O ( κ m + ℓ ) O(\kappa m+\ell) O ( κm + ℓ ) . We also need an additional O ( κ ℓ ) O(\kappa\ell) O ( κ ℓ ) total time to output the set S S S after every edge insertion. Thus, the total running time is O ( κ ( m + ℓ ) ) O(\kappa(m+\ell)) O ( κ ( m + ℓ )) . □
Declaration of AI usage
All lemmas, theorems, algorithms, and results were obtained without the use of artificial intelligence. We used Gemini 3.1 Pro for creating and modifying the tikz source code of Fig. 1. In the final writing stages, we used large language models for spell-checking.