Manuscript Offprint
arXiv:2611.06478Beyond Gomory-Hu: All-Pairs All-Pairs Mincuts in Space
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Beyond Gomory-Hu: All-Pairs × All-Pairs Mincuts in Space
Koustav Bhanja*
Merav Parter†
Asaf Petruschka‡
Abstract
For over four decades, two classical structures have offered complementary views of minimum cuts. The Gomory–Hu tree gives a remarkably compact representation of minimum cuts in an undirected graph: using only space, it encodes one -mincut for every pair of vertices . Its limitation is that it retains only one mincut for each pair. In contrast, for a fixed terminal pair , the Picard–Queyranne representation admits an space ordering of vertices that can determine, for any additional pair , whether some -mincut separates and , and report such a cut whenever one exists. This raises a natural question: can these two complementary guarantees be achieved simultaneously while retaining the same space bound?
We show that they can. For every undirected weighted graph, we construct an space data structure that simultaneously encodes, for every choice of four vertices , an -mincut separating and whenever one exists. More precisely, given any terminal pair , the structure recovers in time the Picard–Queyranne ordering of vertices. After this update, any pair can be tested for separability in time, and a separating mincut can be reported in time. Thus, information concerning all choices of is represented using only space. This is essentially the strongest information of this form that can fit in space: if one additionally requires the separating mincut to place on the side of and on the side of , then space is necessary even for a fixed terminal pair .
As an immediate consequence, we obtain an space all-pairs mincuts sensitivity oracle for a single edge failure in undirected multigraphs, with worst-case optimal time for reporting a new mincut after the failure. This resolves an open question of Baswana and Pandey [SODA 2022], who asked whether subquadratic space and query time could be achieved simultaneously. Technically, our construction substantially generalizes the recent space nearest mincut hierarchy [SODA 2027], which reports only the nearest -mincut. Recovering instead the entire Picard–Queyranne ordering of vertices for an arbitrary terminal pair requires new structural properties of the Dinitz–Vainshtein [STOC 1994] connectivity carcass that extend its use beyond the Steiner mincuts it directly represents.
*Weizmann Institute of Science, Israel. Email: koustav.bhanja@weizmann.ac.il. Supported by the Koshland Prize fellowship, and Merav Parter's European Research Council (ERC) grant under the European Union's Horizon 2020 research and innovation programme, grant agreement No. 949083.
†Weizmann Institute of Science, Israel. Email: merav.parter@weizmann.ac.il. Supported partially by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme, grant agreement No. 949083.
†Weizmann Institute of Science, Israel. Email: asaf.petruschka@weizmann.ac.il. Supported by an Azrieli Foundation fellowship, and by Merav Parter's European Research Council (ERC) grant under the European Union's Horizon 2020 research and innovation programme, grant agreement No. 949083.
Contents 1 Introduction 1 2 Preliminaries 3 3 Technical Overview 4 3.1 The skeleton hierarchy and LCAs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.2 The strategy: building up with representative projections . . . . . . . . . . . . . . . . . . . 6 3.3 Defining the representatives: the α-components of the skeleton Hµ . . . . . . . . . . . . . . 7 3.4 Determining the x, y-units of representatives with augmented projections . . . . . . . . . . 8 3.5 Topologically ordering the x, y-units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4 Completing the Structural Analysis for x, y-Units 12 4.1 Atomicity and cyclic consitency for α-components . . . . . . . . . . . . . . . . . . . . . . 13 4.2 Determining the dichotomy with one tied α-component . . . . . . . . . . . . . . . . . . . . 14 5 Data Structure for Reporting x, y-Units 15 5.1 Construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2 Query algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6 Reporting a Topological Ordering of x, y-Units 20 6.1 Processing the LCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.2 Processing a node above the LCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 A Comparison with [BKP27] 31 B Missing Proofs 33 ii
Gomory-Hu Tree. Dating back to 1961, the Gomory-Hu (GH) tree [GH61] is arguably the most well-known mincuts representation. It is an space tree structure that encodes an -mincut for each of the possible vertex pairs , using only the cuts induced by its edges. However, while GH trees are extremely useful, they have an important limitation: a GH tree recovers only one of the possibly many -mincuts. This becomes important, for example, in sensitivity settings, where one wishes to determine whether a given edge belongs to some -mincut, say . Viewing as a multigraph with the multiplicity of , this is equivalent to asking if whether the deletion (or failure) of one copy of would cause a decrease in connectivity between and , measured by the -mincut value. If so, the witnessing cut remains a -mincut after the failure. However, any particular -mincut encoded by the GH tree may not contain , and therefore does not reveal the affect of its deletion on -mincuts.
Picard-Queyranne Representation. In 1980, Picard and Queyranne [PQ80] showed that, for a fixed terminal pair , the above sensitivity setting has an space representation: Given any edge , their structure reports an -mincut with crossing from to , or determines that such does not exist. We now briefly explain how the Picard-Queyranne (PQ) representation works. For , let iff every -mincuts keep and on the same side. The equivalence classes are called the -units. The PQ representation gives partial order on the -units, whose downward-closed sets bijectively correspond to all -mincuts. It is encoded by a DAG with edges. The space structure is a topological ordering of this DAG. Reporting an -mincut where edge participates amounts to finding a prefix of this ordering which separates (the -units of) and . Note that it is not actually needed that are the endpoints of some edge: for any vertex pair of interest, the space PQ ordering can report an -mincut separating from (if such exists).
To summarize, the GH tree encodes one -mincut for all terminal pairs , while the PQ representation fixes the terminal pair but encodes -mincuts separating all possible pairs of vertices . It is thus natural to ask whether the best of both representations can be achieved simultaneously:
Question 1.1. Is there a compact representation that, given any terminal pair and any vertex pair , encodes an -mincut separating from whenever such exists?
This idea of “marrying” different mincut representations has a long history. One exemplar is Dinitz and Vainshtein’s Connectivity Carcass [DV94, DV95, DV00, BP25]: an ingenious and far-reaching hybrid structure interpolating the PQ representation with the Cactus Representation of global mincuts [DKL76]. The carcass will play a crucial role in this paper. The specific combination of GH with PQ has also been studied. Gusfield and Naor [GN93] showed that augmenting each edge of the GH tree with the PQ DAG of enables the effective recovery of all PQ DAGs for all possible terminal pairs. While this is a natural and elegant strategy, the resulting representation has space, so it is not quite compact.
In this paper, we answer Question 1.1 in the affirmative by providing an optimally compact space representation, presented in the following Theorem 1.1.
Theorem 1.1. Let be an undirected graph with positive integer edge-weights. There is an space data structure that support the following two-stage query process:
-
(Update) Given any terminal pair , it can report all -units, and further determine a topological ordering of them, within time.
-
(Separation Query) After updating, given any query of , it can determine whether and are separated by some -mincut in time. If so, such a cut can be reported in time.
Remark. The second item follows immediately from the first, as the update here is not merely an time “black-box procedure”, but rather explicitly constructs the PQ representation for the terminal pair .
The compactness of our structure is optimal in a very strong sense. Suppose that instead of encoding an -mincut separating and , we wished to encode such an -mincut with on the side of and on the side of , whenever such exists. This directed version of separability by mincuts admits an worst-case lower bound even with the terminal pair is fixed.¹
Technically, our structure substantially generalizes the framework laid by the first and last authors with Kenneth-Mordoch in [BPP27], confirming their conjecture that such generalization is achievable. The structure of [BPP27] uses space and takes time to report the nearest -mincut Near for any given query of . Near is usually defined as the unique inclusion-minimal -mincut, but an equivalent definition is simply the -unit containing . Thus, our structure gives a strict generalization, as it uses the same space and time bounds to recover all -units. From a sensitivity perspective, encoding the nearest mincuts corresponds to edge insertions: inserting a new edge causes the -mincut value to increase if and only if goes from Near to Near. As discussed before reporting, determining the -units naturally corresponds to the harder sensitivity setting of edge deletions.
Mincut Sensitivity Oracles. The study of mincut sensitivity oracles in various settings has recently received considerable attention [BGK22, BP22, BBP23, BB24, Bha24, BBR25, Bha25, ACP26, BPP27]. The discussion below concerns the setting of undirected multigraphs with one edge insertion/failure. Previous all-pairs oracles for the failure setting were given by Baswana and Pandey [BP22]. They showed an space that given any and can determine in just time if the failure of (one copy of) decreases the -mincut value, and can additionally report a new -mincut in time. They also showed a more compact space structure for the same task, albeit with larger query times. Their paper poses the following question:
“Does there exist a data structure for all-pairs mincuts sensitivity that occupies space and achieves query time?”
Theorem 1.1 gives a positive answer, with optimal space and worst-case optimal query time.
Focusing on optimally compact space oracles, Theorem 1.1 gives some satisfying closure. The edge insertion setting has followed the trajectory Fixed-Pair Single-Source All-Pairs, with [BGK22] providing the first arrow, and the aforementioned very recent work of [BKP27] the second one. Our work provides the second arrow of a similar trajectory for the edge failure setting, with the first one given very recently by the authors in [BPP27]. There are also “vertical” correspondences. In the single-source setting, the edge failure structure of [BPP27] builds on and substantially extends the corresponding edge insertion structure of [BGK22]. Analogously, in the all-pairs setting, our current work gives the edge failure counterpart to the edge insertion oracle of [BKP27] by building on and substantially extending it.
¹The lower bound was implicitly given in [BBP23, Bha25]. Consider an arbitrary bipartite graph with vertices on each side. Add two new vertices and . For each on the left (resp., on the right), connect to (resp., to ) by an edge of weight (resp., ), and call the resulting graph . It can be easily verified that has an -mincut keeping with and with iff does not have the edge . But encoding an arbitrary by bipartite graph requires space.

Figure 1: The connectivity carcass. Graph edges without weight-labels have weight 1; terminals are black and non-terminals are gray; dashed lines are S-mincuts, color-coded by their representing canonical cuts.
2 Preliminaries
Let be a weighted undirected connected graph, and denote , . For , its capacity is with the sum over all going between and . Let be a given terminal set. If and , then is an -cut. An -cut of the smallest capacity is an -mincut, or Steiner mincut for . When , we write -(min)cut, and so on (where we define ). An -(min)cut s.t. , is called an -(min)cut.
-units. are -equivalent if no -mincut separates them (i.e., no -minuct has , ). The equivalence classes are called -units. The terminal -units are those intersecting , and their number is (for , ). Let map vertices to identifiers of their -units.
Valid partitions. A partition of is valid if it is induced by some -mincut , meaning for some . Vertex is distinguished by if there are two different -mincuts inducing , where keeps with , but keeps with . A vertex is called stretched (w.r.t. ) if it is distinguished by at least one valid partition.
The Connectivity Carcass. We succinctly describe Dinitz and Vainshtein's Connectivity Carcass [DV94, DV95, DV00], closely following [BPP27]. The carcass is a highly complex, and we recommend its detailed presentation in [BP25]. See Figure 1 for an illustration. Let be a terminal set.
Definition 2.1 (Cactus). In this paper, a cactus is an undirected connected graph where no two cycles share a node. Edges/nodes in cycles are called cycle-edges/nodes; the rest are tree-edges/nodes. A canonical cut is either one tree-edge or a pair of non-adjacent cycle-edges from the same cycle; removing from leaves two connected components called its sides. A proper path is a simple path with at most one edge from each cycle; it can be specified by its endpoints as the unique proper path connecting them.
Theorem 2.2 (Skeleton). There exists a cactus called the skeleton of , with the following properties.
-
has nonempty (or terminal) tree-nodes, representing the sets terminal -unit}.
-
may further have empty nodes, each of degree at least 3, and exactly 3 for cycle-nodes.
-
Canonical cuts of bijectively correspond to valid partitions of : are the terminals from one side of , and are those from the other side. An -mincut is said to be represented by if it induces . A vertex is said to be distinguished by if it is distinguished by .
Theorem 2.3 (Projections). Each vertex has a projection in such that:
-
If is stretched, is a proper path that starts and ends by tree-edges. A canonical cut distinguishes iff has endpoints in both sides of (i.e., iff has some edge of ).
-
If is non-stretched, is a tree-node. If , is the terminal node containing .
-
The following holds: Let be a canonical cut corresponding to valid partition . If keeps entirely on the side of , then every -mincut inducing keeps on the side of .
Theorem 2.4 (“Distinctness” property). Let , and let be a canonical cut of that distinguishes or (or both). If there is no -mincut represented by that separates from , then .
Submodularity. It is well-known that is sub/posimodular: and for every . Another inequality of similar flavor [Lov93, Problem 6.48(iii)] is that, for every ,
The next lemmas summarize implications of these facts on mincuts, whose variants are widely observed (specifically, Theorem 2.5 slightly extends [BKP27, Lemmas 2.1 and 4.2]). The proofs appear in Appendix B.
Lemma 2.5. Let , and suppose is an -mincut and is a -mincut.
-
(“Submodularity”) If one of and is an -cut and the other is a -cut, then the former is an -mincut, and the latter is a -mincut.
-
(“Posimodularity”) If one of and is an -cut and the other is a -cut, then the former is an -mincut, and the latter is a -mincut.
-
(“Hybrid”) If, among the four cuts , two are -cuts and the other two are -cuts, then the former two are -mincuts and the latter two are -mincuts.
Furthermore, one of the above cases must hold.
Lemma 2.6 (Four Components Lemma). Let . Suppose is an -mincut, is a -mincut, and is a -mincut. Consider the four sets , , and . If among them, three distinct sets form an -cut, a -cut and a -cut, then the fourth set must be empty.
3 Technical Overview
This section presents the central ideas behind the data structure. Our exposition aims to give not only high-level concepts but also sufficient technical detail to grasp them. It assumes only the preliminary tools from Section 2 as black boxes. We include several (short) proofs, which we regard as most insightful for demonstrating the techniques; nevertheless, they may be skipped if one wishes to focus on the big picture.
Our approach builds on the framework recently introduced by the first and last authors with Kenneth-Mordoch [BKP27], who showed an space structure for all-pairs nearest mincuts. Our structure strictly generalizes it in a highly white-box manner. Almost every aspect requires non-trivial generalizations, and several new key insights and ingredients are introduced. We do not rely on familiarity with [BKP27], and explain everything from scratch. A detailed comparison with [BKP27] is provided in Appendix A.
We focus the more detailed discussion on showing how to design a data structure with just space that, given a query of , recovers the partition of into -units. This constitutes the major part of the overview, in Sections 3.1 to 3.4. We then outline the broad strokes of how this structure is extended further to also provide a topological ordering of the -units, in Section 3.5.
3.1 The skeleton hierarchy and LCAs
Our starting point is the skeleton hierarchy tree . Its nodes are subsets of . The root is . There are leaves, one for (the singleton of) each vertex. Each non-leaf has children , and stores its skeleton (so 's children are 's nonempty nodes). Thus, has at most nodes and edges. As , the skeleton hierarchy only requires space.
For a given query , the hierarchy alone already provides non-trivial information on the -units. Consider the lowest common ancestor , and its children with and .
Definition 3.1 (-components). Two nodes in are -equivalent if they are on the same side of every canonical cut separating from . The -components are the equivalence classes with a nonempty node.
Without causing ambiguity, we identify an -component with the set of terminals within it, so the -components partition . Their structure is illustrated in Figure 2. Let be the cactus-path of tree-edges and cycles between and in . Each -component intersects at exactly one node, and the only nodes of not included in any -component are the entry and exit point of cycles.

Figure 2: The -components in (Def. 3.1). Thin dashed gray lines are all canonical cuts separating from . Some projections in are shown: is contained in one -components, and the other projections are not.
Since is the LCA of in , we see that -mincuts are -mincuts. Further, they are precisely those -mincuts represented by canonical cuts of which separate from . We therefore have:
Observation 3.2. Every -component is contained in one -unit without any other -components.
Projections in the LCA. However, our goal is to recover the entire partition of into -units, rather than just the LCA. This will require utilizing the carcass beyond just skeletons. To warm up, we show a simple space solution: For each and non-leaf node , store its projection into , augmented with the -unit identifier . Recall that a projection is specified by its two endpoints, so storing it takes space. Using Theorem 2.3, we find a dichotomy relating projections to -components:
Lemma 3.3 (Dichotomy in LCA). Let , with children and containing and respectively. Then, for every vertex , the following holds:
• (“Merged”) If is contained within one -component , then is with in the same -unit.
To be accurate, there is a corner case where a cycle on has its entry and exit nodes connected directly by one cycle-edge. In this case, the stated Theorem 3.1 includes the entry and exit nodes in -components that intersect in their other neighbors of entry and exit nodes from the cycle. We fix this case -components by explicitly excluding the empty entry and exit nodes of the cycle from participating in -components.
• (“Split”) Else, the x, y-unit of v does not intersect .
Proof. Let be some -component. If is contained in , then each canonical cut separating from keeps and on the same side. As -mincuts are represented by such canonical cuts, they cannot separate from by Theorem 2.3. Conversely, if is not contained in , then by definition of -components, some canonical cut which separates from keeps on one side and an endpoint of on the other. So, by Theorem 2.3, represents some -mincut which separates from .
Applying the dichotomy to every vertex, we recover all of the -units that contain -components, i.e., that intersect . To recover the rest, containing the “split” vertices, we utilize distinctness (Theorem 2.4):
Lemma 3.4 (Distinctness in LCA). Let , with children and containing and respectively. Let be vertices whose -units do not intersect . Then iff . That is, and are in the same -unit iff they are in the same -unit.
Proof. ('If') Follows since and belong to different -units, so every -mincut is also a -mincut.
('Only if') Let be a canonical cut separating from that has an edge of . Such must exists: otherwise, is contained in one -component, so 's -unit would intersect by Theorem 3.3. By Theorem 2.3, is distinguished by . Every -mincut represented by is an -mincut, so it does not separate from by . Thus, Theorem 2.4 yields that .
3.2 The strategy: building up with representative projections
We now discuss the high-level strategy for recovering the x, y-units using only space.
Consider the path from to the root (Figure 3): . We call it the query path for . The idea is to construct the -units in a bottom-up fashion. Initially, we find the partition of the into -units. Then, we work our way up: Step gets the partition of , and extends it to . The main challenge of course is implementing the steps. This relies mainly on the notion of representative projections.
For every child-parent pair in , we carefully define (at preprocessing) a small-on-average subset of , called the -representatives of . For each representative , we store its projection into the child's skeleton . These projections are augmented with additional information. For example, we augment with the -unit identifier , and more sophisticated augmentations are discussed later.
The representative projections have three key properties:
Figure 3: The query path.

• Informative: The augmented projections of within , along with the already-known partition of into -units, allow us to also understand how is partitioned.
• Representing: It is enough to understand how is partitioned into -units in order to fully determine the partition of the parent .
• Succinct: The total number of representatives, summed over all child-parent pairs in , is only .
Thus, to implement a step and extend the known partition by -units from to , we first exploit the Informative property to classify the representatives into their -units, and then apply the Representing property to further determine all of . The succinct property ensures that storing information per representative uses total space.
In Section 3.3, we discuss how to define the representatives so that they are indeed Representing but also Succinct. Then, Section 3.4 deals with the Informative property: how can we augment (at preprocessing) and use (at query time) the stored projections in a given node on the query path, so that we can use them to classify the projected vertices to their x, y-units.
3.3 Defining the representatives: the -components of the skeleton
Finding the atoms for -units above the LCA. Let be a child-parent pair in . Recall that the purpose of defining , the -representatives in , is to support any (yet-unknown) query pair . We thus focus our attention at the tree-node as a “focal point” within .
Consider one tree-edge adjacent to . Let be the connected component of containing . We call the sub-skeleton rooted by in direction , and without causing ambiguity we may identify with its terminals. In many cases, we can prove that is an atom: it lies completely within one -unit. To demonstrate why this is useful, let us imagine that sub-skeletons are always atoms. With this simplifying assumption, we can take as one terminal from each sub-skeleton.
• Representing: If we know how the -units partition , we can extend it to all of by including each sub-skeleton in the -unit containing its representative.
• Succinct: We took representatives in . So, summing over all child-parent pairs,
We now present the actual atoms, called -components. They play an analogous role to the -components in the LCA from Theorem 3.1. However, there is an important distinction: different -components can get merged into the same x, y-unit. The formal definition of -components (Theorem 3.5 below) is rather technical, essentially tailored to ensure atomicity: for , no x, y-mincut can split an -component. This is proved in Theorem 4.1, and we will use atomicity repeatedly (and implicitly) from now on. See Figure 4 for an illustration.
Definition 3.5 ( -components). Let be a tree-edge of emanating from , and H be the sub-skeleton of g in direction . Then H gives rise to the following -components:
Type-1. If (i) for some , intersects only at , or (ii) , then is an -component.
Type-2. Else, if is a tree-node s.t. , let and be its other two adjacent edges. For , the sub-skeleton rooted by in direction is an -component.
Type-3. Else, there is a cycle with . For every , let be the unique tree-edge of . The sub-skeleton rooted at in direction is an -component.

Figure 4: The -components in (Def. 3.5). Some projections in are illustrated. causes the sub-skeletons it touches to become Type-1(i).
Overcoming the space challenge from skeleton cycles.
By atomicity, taking one representative from each -component ensures the Representing property: Once we classify these representatives, we understand which -components get merged to the same -unit. However, this definition does not ensure the Succinct property required to keep the space at only . Note that there are at most Type-1/2 -components. So, the problem is with Type-3: just one cycle may give rise to many different -components .
We tackle this challenge by a structural insight, showing that are strongly correlated: Either are all in the same -unit, or each is in a unique -unit without other vertices from . We refer to this property as cyclic consistency, formally proved in Theorem 4.2. Thus, it suffices for us to take representatives only from and , but not from the -components at the middle part of the cycle (i.e. with ). With this modification, we still ensure the Representing property, since determining the -units of and lets us further determine the -units of through the cyclic dichotomy. But now, we now have that , so the Succinct property (Equation (2)) goes through.
Conceptual insight: utilizing the carcass beyond Steiner mincuts. Let us briefly take a step back and discuss the bigger picture. Intuitively, the LCA was quite straightforward to deal with because -mincuts were exactly those Steiner mincuts by which the -components of its skeleton were defined. Above the LCA, however, it is much less clear that -components have anything to do with -mincuts. The -components correspond to sides of valid partitions induced by -mincuts, but now and are two terminals from , so they are not separated by any Steiner mincut. The key conceptual insight from the above discussion is that the “centered view” at of the skeleton in Figure 4, which contracts large chunks as -components, does in fact relate to -mincuts in intricate ways, like the atomicity and cyclic consistency properties. In the following section, we extend this insight further beyond just the skeleton . We show that, by delicate structural analysis and some clever augmentations, projections in can be utilized to shed light not only on -mincuts, but also on -mincuts for terminal pairs not separated by any Steiner mincut.
3.4 Determining the -units of representatives with augmented projections
We turn to discuss the Informative property described in Section 3.2, which is the most challenging and intricate one. The setting is the following:
• We already know the partition of some node on the query path by the -units.
• We have a set of vertices whose augmented projections in are known to us.
• The goal is to extend the partition by -units from to .
The idea is that contains the representatives from the parent of , and their assignment into -units will then be used to extend the partition to all of 's parent (as just explained in Section 3.3). These aspects are now abstracted away: we think of as having arbitrary vertices with known augmented projections in .
For we already saw in Section 3.1 how the LCA dichotomy and distinctness (Theorems 3.3 and 3.4) achieve our goal (there we considered , but the same arguments work for any ). We now focus on a node above . As before, we denote by the child of such that .
Generalizing the dichotomy above the LCA. At the LCA, the dichotomy hinged on the interaction of a given projection with the -components. We now show that an analogous but more involved dichotomy also holds above the LCA, based on the interaction of a projection with the -components in . This interaction is formalized by the simple notion of -components tied to in Theorem 3.6 below, expressed mainly through Theorem 3.7 following it (which is immediate by the projection theorem, Theorem 2.3).
Definition 3.6 (Tied -component). An -component is said to be tied to vertex if intersects .
Observation 3.7. Let be a nonempty node of with . If an -component is tied to vertex , then there exists a -mincut with and . All vertices which are not tied to , and in particular, the terminals , are in the complement .
The tied-component dichotomy in is the following:
Lemma 3.8 (Tied component dichotomy). Let be a nonempty node of with . If is an -component tied to vertex , then (exactly) one of the following holds:
• (“Merged”) The same x, y-unit contains both v and T.
• (“Split”) The -unit of does not contain any , nor any who is not tied to .
Proof. Say and are not in the same -unit, so there is an -mincut with and . (The illustration shows w.l.o.g. .) Let be the -mincut of Theorem 3.7: . Then is a -cut (separates from ), and is an -cut. By posimodularity (Theorem 2.5), is an -mincut, and note that . Now, let be from the -unit of , i.e., and are on the same side of every -mincut. Thus, . As , we have . Also, as , it must be tied to by Theorem 3.7.

Observe that, by the definition of -components (Theorem 3.5) and the structural properties of projections in from Theorem 2.3, every vertex has at most two tied -components. Furthermore, has no tied -components iff , i.e., is projected to just the node with . In this overview, we will ignore this last corner-case and assume that every given has some tied component. In a nutshell, to handle the corner case, we will store the projection of such at some node further below , and “solve it there”. This is discussed in depth and formally in Sections 5.1 and 5.2.
Deciding on the dichotomy. Note that there is a major difference between the LCA dichotomy in Theorem 3.3 and the one of Theorem 3.8. In the LCA, the projection of allowed us to also decide between the “merged” and “split” cases. In contrast, Theorem 3.8 merely states the two possible options, but does not provide a way to distinguish between them. We now discuss this challenge.
To gain intuition, let us first consider the simplest case: is completely contained in the -component . Intuitively, this is analogous to having the projection completely inside an -component of the LCA, and thus and should be merged into the same -unit. This is indeed true:
Lemma 3.9. Let be a nonempty node of with . If is contained in an -component , then and are in the same -unit.
Proof. Seeking contradiction, let be an -mincut with and . Let be the -mincut of Theorem 3.7: . Then is an -cut, and is a -cut. By posimodularity (Theorem 2.5), is a -mincut separating from . But is contained in , so this contradicts Theorem 2.3.

Next, consider the case where has two tied -components and . Carrying over intuition from the LCA, if and are not in the same -unit, then “goes between different -units” in , so should be split from . Conversely, if and are merged, then “stays in one -unit” in and thus should be merged with them. Again, it can indeed be formalized by utilizing Theorem 3.7.
Lemma 3.10. Let be a nonempty node of with . If vertex has two tied -components and , then is merged to the same -unit as its tied -components iff and are in the same -unit.

Figure 5: Vertex has one tied -component and . For the query pair , and are merged to the same -unit. But for the query pair , they are split into different -units.
Proof. The ‘only if’ is by Theorem 3.8, as is either merged to all of its tied -components, or split from all of them. For the ‘if’, suppose towards contradiction that and are in the same -unit, but is not with them. Let be an -mincut with , so . By Theorem 3.7, there are -mincuts with , and , for . Then and are -cuts (separating and ) and is an -cut. So, by Theorem 2.6, , a contradiction.

We now turn to the more complicated case, where has just one tied -component , but is not contained in . It turns out that if is contained in one sub-skeleton emanating out of (which contains ), then we can generalize Theorem 3.9 and still determine that should be merged with ; this is proved in Theorem 4.4. Thus, the remaining and most challenging case is when has as an endpoint. In fact, in this case both the “merged” and “split” options are possible: see such an example in Figure 5. So, to decide between them, we must further augment . Since is one of the two endpoints of , at preprocessing, we may augment with information depending on and on (which is determined as the -component with the other endpoint of , and does not depend on ). We will call this augmentation the maximizer augmentation for , presented next.
Augmenting with maximizers. Consider the cut family
The reason for focusing on is simple: and are split by the -units iff has an -mincut. However, we cannot afford to store all pairs with an -mincut in . One key insight to “compress” is the following: while the cuts in may cross in arbitrary ways, this family is closed under unions, and thus admits a maximizer, i.e., a unique that contains every (or is empty). This is proved in Theorem 4.5. Let be such that is a -mincut (). The maximizer augmentation stores , and the canonical cut representing in (or a flag indicating is empty). The second key insight is that this information is enough for us to determine at query time if has an -mincut.
To get a feeling for how this is done, let us ask: are and in the same -unit? Note that , so we can indeed check this. If the answer is yes, then we argue that must be merged to the same -unit with them: otherwise, there would be some -mincut with and , but then and , contradicting 's maximality. When the answer is no, we prove (Theorem 4.6) that and are merged iff . If , then we can find by using in the skeleton of . Otherwise, we can in fact prove that (Theorem 4.8).

Figure 6: Deciding on the dichotomy case from Theorem 3.8. (If we reach the "use maximizer" arrow but no maximizer exists, we return MERGED.)
This concludes our discussion on deciding the dichotomy: For each , given with the maximizer augmentation, we can decide between the “merged” and “split” cases for and its tied -component(s) from Theorem 3.8. Figure 6 shows a schematic flowchart of the decision process.
Deciding the -units of “split” vertices via a new distinctness lemma. As was the case in the LCA, after merging all those vertices from that should be merged with their tied components into the -units that intersect , we are now left with the classification of the remaining “split” vertices from . By Theorem 3.8, these cannot be merged with any existing -unit that intersects . However, two “split” vertices might still belong to the same -unit. In the LCA, deciding this was done by simply comparing the -unit identifiers , exploiting the distinctness property of the carcass from Theorem 2.4. While the argument using Theorem 2.4 no longer applies (again, since -mincuts are not Steiner mincuts), we prove that the same strategy remains valid, which fits into the general theme. Thus, the following Theorem 3.11 can be seen as a new distinctness lemma which goes beyond classical carcass distinctness to handle -mincuts when are two terminals that are not separated by a Steiner mincut.
Lemma 3.11 (Extended Distinctness). Let be a nonempty node of with . Let be vertices whose -units do not intersect , such that at least one of has some tied -component. Then iff . That is, are in the same -unit iff they are in the same -unit.
Proof. ('Only if') We prove the contrapositive. Suppose a -mincut separates from . As are terminals from the same node of , they are not separated by . Choose the sides such that , and without loss of generality say and (otherwise swap in the following). Fix some . Because 's -unit does not intersect , there is an -mincut such that and . If we are done. Otherwise, note that is an -cut, and that is a -cut (separating from ). Thus, by submodularity (Theorem 2.5), is an -mincut, separating from as needed.

('If') By symmetry, suppose has a tied -component . By Theorem 3.7, there is a -mincut with . As , also . Seeking contradiction, let be an -mincut with and . Then and are both -cuts. If there exists , then is a -cut (separating from one of ), so by submodularity (Theorem 2.5) it is a -mincut, and it has inside and outside. Else, there must be some , so is a -cut (separating from one of ), thus by posimodularity (Theorem 2.5) it is a -mincut, and has inside and outside. So, in both cases, we got a contradiction to . This concludes the proof.

Thus, we finally achieved our goal of extending the known partition by -units from to , and showed how to obtain the Informative property from Section 3.2. This gives the final brick for implementing the bottom-up strategy presented there, thus yielding the desired space structure for recovering the -units of any given query pair .
All missing structural lemmas mentioned in this overview (e.g., atomicity, cyclic consistency, maximizer existence) appear in Section 4. Section 5 then gives the details for an space structure that reports the -units within time, treating also the corner case of representative projections equal to , which we have ignored here for the sake of clarity.
3.5 Topologically ordering the -units
We now give a high-level outline of how we further recover a topological ordering of the -units, so that the union of every nonempty proper prefix is an -mincut. We follow the same bottom-up construction along the query path, maintaining an ordering as the known partition grows. “Merged” vertices inherit the position of their existing unit; our task is to position the newly created units.
At the LCA, we first order the -components along the cactus path from to . The projections then guide the placement of the “split” representatives: each is assigned to a bucket immediately before its rightmost -component, as determined by its projection along . Choosing one representative from each new unit, this gives a placement of the new units between the already ordered components, while leaving the internal order of each bucket undetermined.
Above the LCA, newly introduced cycle components can be placed in their cycle order between the two boundary components. Placing split representatives requires a further structural insight: a split vertex is comparable to each of its tied -components in the -mincuts partial order. If there are two tied components, must appear between them. If there is just one tied component , the maximizer augmentation from Section 3.4 also determines on which side of to place . We can therefore again assign each new unit to a bucket immediately beside the unit containing an appropriate component. In both cases, we prove that the placement creates no conflicts between different buckets or with the existing ordering.
It remains to order the new units within each bucket. Here, the geometry of projections again provides most of the information we need. After grouping vertices by their associated component, vertices whose projections reach deeper into the same component can be placed closer to in the ordering. When the relevant endpoints coincide, we use a precomputed ordering associated with the Steiner mincuts represented by their common last tree-edge. This requires only additional information for each stored projection, preserving the total space. The full construction and its analysis appear in Section 6.
AI methodology
The scientific content, including the ideas, results, statements, and proofs, was developed entirely by the authors without use of AI. The authors used ChatGPT-5.6 & 6 Astra and Claude Opus 5.5 as an assistive tools during the preparation of this manuscript, restricted to refining the exposition and organization, polishing language, detecting minor gaps and typos, and assisting with the development of figures and visual illustrations.
4 Completing the Structural Analysis for -Units
This section complements Sections 3.3 and 3.4 from the overview, and provides the more involved missing proofs that were only mentioned there.
4.1 Atomicity and cyclic consistency for -components
Lemma 4.1 (Atomicity). If , then no -mincut can split an -component. Namely, each -component is fully contained in one -unit.
Proof. Let be an -component within a sub-skeleton , where is rooted at tree-edge , and let . We prove that no -mincut can separate .
For the canonical cut defined by , by Theorem 2.2, there is a -mincut with and . We now fork into cases: In each, we choose a vertex such that every -mincut that separates from must keep and on the same side.
• Suppose is of Type 1(i). Then we select as the promised vertex whose projection intersects only in the node . Thus, by Theorem 2.3, we may choose the -cut so that . As , any -mincut separating them is represented by a canonical cut within . In each such canonical cut, is on the side of , and hence must also be on the side of by Theorem 2.3.
• Suppose is of Type 1(ii). Then is a tree-node with at least three incident tree-edges inside . Thus, we can find one tree-edge among them, such that does not lead to nor to . Let be the connected component of with . We select any terminal from as . Now, as , any -mincut separating them is represented by a canonical cut within , and such a canonical cut keeps all of on the side of .
• Suppose is of Type-2 or Type-3. Then there exists at least one other -component within . We select any terminal from as . Since , every -mincut separating them must be represented by a canonical cut within , and such a canonical cut keeps all of on the side of .
Now, seeking contradiction, suppose is an -mincut which separates . Without loss of generality, say and . As , we have that and are -cuts. Also, and are -cuts, as they both separate from . By sub/posimodularity (Theorem 2.5), the latter are -mincuts. Both of them keep outside, so by the property of , they must also keep outside. Thus , a contradiction.
Lemma 4.2 (Cyclic consistency). Let be the Type-3 -components in , arising from a cycle within sub-skeleton (recall Theorem 3.5). Let . Then, (exactly) one of the following holds:
• (“Merged”) All of are in one x, y-unit.
• (“Split”) For every , the -unit of does not contain any vertex who is not tied to .
Proof. The heavy lifting of the proof is in showing the following:
Claim 4.3. The following conditions are equivalent:
(1) There exist such that and are in different x, y-units.
(2) For every it holds that and are in different x, y-units.
Before proving Theorem 4.3, let us use it to obtain the lemma. Suppose are not all in one -unit, so by Theorem 4.3, are in distinct -units. Let be a vertex not tied to . If is tied to some with , then by Theorem 3.8 it either be in the -unit of , or in an -unit that does not intersect at all; in any case, cannot be in the -unit of .
Otherwise, since a projection cannot be contained within the cycle (see Theorem 2.3), cannot be contained in . Thus, by Theorem 2.3, there is a -mincut with and . Now, take some s.t. , and let be an -mincut with and . Then is a -cut (separating from ), and is an -cut. By submodularity (Theorem 2.5), is an -mincut. One of or must separate and (if it is , and if it is ), as needed.
Proof of Theorem 4.3. Let us define a third condition: (3) and are separated by some -mincut. We prove that , and is trivial.
(1) (3): Let be an -mincut separating from , . Suppose towards a contradiction that and are on the same side of . Without loss of generality say and . Take as a -mincut represented by the canonical cut of , with sides chosen so that and . As , we see that is an -cut. As and , we see that is a -cut. Thus, by submodularity (Theorem 2.5), is a -mincut. Now, observe that in the skeleton , any canonical cut which keeps and on the same side and on the other side must keep with and . However, keeps inside and outside. Thus, this -mincut cannot be represented by any canonical cut of the skeleton , a contradiction to Theorem 2.2.
(3) (2): Let be an -mincut separating from . Fix and for ; we should show an -mincut separating them. If is such, we are done. Otherwise, without loss of generality, suppose that and , and that . Consider the canonical cut of defined by the two cycle-edges and on (these two edges are non-adjacent since ). Let be a -mincut represented by this canonical cut. Note that keeps on the one side, and keeps with on the other side; we may choose the sides so that . Then is a -cut: it keeps inside and outside. Also, is an -cut, as and . Thus, by posimodularity (Theorem 2.5), is an -mincut, with inside and outside, as required.
4.2 Determining the dichotomy with one tied -component
Lemma 4.4. Let . If vertex has one tied -component and , then is merged with to the same -unit.
Proof. Let be the sub-skeleton containing rooted at the tree-edge . Since can either be a tree-node or a proper path starting and ending in tree-edges (Theorem 2.3), there are two possibilities: (i) is contained in , or (ii) is of Type-2 or Type-3. In both, is contained in . Let be a -mincut represented by with , so by Theorem 2.3.
Seeking contradiction, suppose is an -mincut with and . As , we have: , , , . By submodularity (Theorem 2.5), we now see that is a -mincut, keeping inside and outside. In case (i), this is already a contradiction to Theorem 2.3. In case (ii), Theorem 2.3 implies that must be represented by the rooting edge of , so . Then considering some other -component within , we have . Now, applying posimodularity (Theorem 2.5) on and , we obtain that is a -mincut, keeping inside and outside. But now, we again invoke Theorem 2.3 which implies that . This is a contradiction since are terminals, but they are not in .
Lemma 4.5 (Maximizer). Let T be an -component tied to vertex v, and consider the family of cuts
If the family is nonempty, then it has unique maximal element with respect to containment: i.e., there exists a unique such for every .
Proof. Seeking contradiction, suppose and are two different maximal elements in , where each is an -cut for . By Theorem 2.5, one of its three cases holds for and . It cannot be “submodularity” or “hybrid”: Indeed, then would be an -mincut for some , with and , so , contradicting the maximality of and . Thus, the “posimodularity” case holds: one of is an -mincut and the other is an -mincut. Let be the -mincut of Theorem 3.7: and . As are terminals within the node , which is not in , we obtain that and form an -cut and a -cut. Also, forms a -cut (separating from ). Thus, by Theorem 2.6 we obtain , a contradiction.
Lemma 4.6. Let be an -component tied to vertex . Let be the maximizer of from Theorem 4.5, and let be such that is a -mincut (so , ). Then, for every ,
and are in different -units and are in different -units, and .
Proof. ( ) Let be an -mincut with and . Then , hence . As , this means that separates from . Also, contains one of , so .
() Let be an -mincut with and . If we are done, so suppose . Note that keeps inside, outside, and contains . Thus, it cannot be an -mincut for any , as this would contradict the maximality of in . This eliminates the posimodularity and hybrid cases of Theorem 2.5 for the cuts and , hence the submodularity case must hold. Without loss of generality, say and . If , then submodularity implies that is an -mincut, which keeps inside and outside, so we are done. We show that this must indeed occur: Otherwise, for submodularity to hold, must be a -mincut, hence , so , a contradiction.
Claim 4.7. For , if then are not separated by any -mincut.
Proof. Say (otherwise swap and ). Then any -mincut must keep on the opposite side to , and thus . Thus, we have that .
Seeking contradiction, suppose an -mincut separates , say , (otherwise, swap and in the following argument). Take an -mincut . Then is an -cut, and is an -cut. By submodularity (Theorem 2.5), is an -mincut. But , so it is also an -cut. Hence, , a contradiction.
Lemma 4.8. In the conditions of Theorem 4.6, if and are in different , -units and , then and are in different , -units.
Proof. Repeat the proof of direction ( ) in Theorem 4.6 with the last sentence (“Otherwise, …”) changed as follows: Otherwise, for submodularity to hold, must be a -mincut, so . Thus separates from , so Theorem 4.7 gives , a contradiction.
5 Data Structure for Reporting x, y-Units
In this section we give the formal details for the space data structure that, given query , reports all of the -units within time, which was outlined in Sections 3.1 to 3.4 of the technical overview.
5.1 Construction
How we store projections. As mentioned in the overview, there is one corner case which creates some complications: for a given child-parent pair , a representative vertex which is projected into might have no tied -components. This occurs precisely when , i.e., 's projection in is just the nonempty node . From now on, call a projection trivial if it is just one nonempty node. Our problem thus stems from the possibility of trivial projections.
The key observation is that trivial projections can be stored implicitly by using the hierarchy . This frees up space for us to store more information for v if it happens to be trivially projected as .
Specifically, we will be able to find the projection of “further down” towards of the given query , and classify its -unit already there, instead of at the higher node . This is formally shown in Section 5.2 on the query algorithm for recovering the -units.
We now explain the details of how we store projections. Suppose that, during preprocessing, we wish to store the projection of some vertex in the skeleton of node . This request triggers Algorithm 1: starting at node , check if the projection of is trivial in the skeleton of the current node, and if so continue to its child which is this projection. The process halts at some descendant of such that is non-trivially projected in (or is a leaf of ). Finally, we store the tuple , with interpreted as a sentinel value when is a leaf.
Algorithm 1 STORE-PROJECTION
1:
2: while is not a leaf of and is trivial (i.e., a nonempty node in ) do
3:
4: Store
If , the trivial projection of in is implicitly stored, as the child of which is the ancestor of . In a similar fashion, we can in fact determine the projection of in all of the skeletons on the -path between and . We call an explicitly stored projection.
Augmenting the explicit projections. As described in the technical overview (Section 3.4), we not only store projections, but also augment them with some additional information. Formally, each explicitly stored projection is augmented by storing (next to it) the following information:
• Store the -unit identifier .
• If is not a single node, then for each endpoint of which is nonempty:
– Let be the -component with the other endpoint of .
- Let be the -mincut with which is the maximizer of from Theorem 4.5. If the maximizer does not exist, i.e., , just store a flag indicating this situation. When exists, store the ordered pair and the canonical cut representing in .
The main structure. We are now ready to formally describe our main structure, built on the notion of representatives described in Section 3.3. Recall that for every child-parent pair , we defined the -components in Theorem 3.5. For each -component , we choose an arbitrary terminal . The set of -representatives in , denoted , contains the following vertices:
• For each -component of Type-1 or Type-2, we include in .
• For each cycle not within a Type-1/2 -component, and is adjacent to through tree-edge , there are corresponding -components of Type-3 (see Theorem 3.5). We take and into .
To construct our main structure, we construct the skeleton hierarchy using space. Then, we invoke the procedure STORE-PROJECTION (Algorithm 1) for every child-parent pair and every . Each such invocation allocates more space (a tuple with an augmented explicit projection). As , the short calculation in Equation (2) shows this sums to space overall.
Auxiliary data structures. For query efficiency, we further augment the hierarchy tree and every skeleton with standard auxiliary data structures. These do not add any new conceptual component. They are used only to support the operations required by our query algorithm in constant time.
These auxiliary structures are essentially the standard optimal structures for LCA and level-ancestor queries on trees:
Fact 5.1 ([HT84, BFC04]). For any rooted tree T on N nodes, there is an -space data structure supporting the following operations in time:
• LCA: Given two nodes , report ;
- Level-ancestor: Given a node and integer , report the ancestor of u at depth d.
We apply Fact 5.1 to the hierarchy tree itself. Also, for every skeleton stored by the hierarchy, we apply Fact 5.1 to the tree obtained by contracting each cycle of into a node (storing also the cyclic order in which its incident edges appeared as the edges emanating out of the cycle). This is the essential data structure for working with cactus graphs, appearing e.g. in [BP22, BP25, BPP27]. For each oriented tree-edge with nonempty, we also store which case of Theorem 3.5 applies to the sub-skeleton rooted by in direction . Using this basic structure, it is straightforward to implement an space data structure that supports all “skeleton operations” we need in constant time. For example:
• Given (the endpoints of) and a nonempty node , identify the tied -components of v.
• Given canonical cut in and , determine whether and are on the same side of .
• Given a Type-3 -component , identify the cycle adjacent to that gave rise to , and the location of along this cycle.
As , these auxiliary structures only require additional space.
5.2 Query algorithm
Given a query , we define the query path as the path from to the root of .
Assigning representatives on the path. As a preliminary step, we assign every representative vertex to a node on the query path such that:
-
is between and (i.e., ).
-
The augmented projection of in is known.
-
If is above (i.e., if ), then has at least one tied -component in . We denote the set of representatives assigned to by . The point of this assignment process is precisely to ensure the last condition, allowing us to classify into -units when we process , since, when , it must have some tied -component there.
Let us explain how is assigned. Recall that by invoking STORE-PROJECTION , we have stored the resulting tuple . We take .
• As is a common ancestor of and , and is their lowest common ancestor, we have item (1).
• If , then we have explicitly stored the augmented projection , which is non-trivial. Thus, when , must have some tied -component. So, we have items (2) and (3) in this case.
• Otherwise, is a strict ancestor of . Then has trivial projection in determined as , where is the child of on the way to . By Theorem 2.3, every -mincut keeps with , so we can determine as equal to of every . (At preprocessing, for each non-root node , we also store for some arbitrary .) As is a node, is the only augmentation required for this projection. Crucially, when , we have (as otherwise would be a lower common ancestor of and than ). So, has a tied -component (the one with ). Thus, we have items (2) and (3) also in this case.
Note that assigning and finding its augmented projection in the assigned node takes only time (invoking one LCA and possibly one level-ancestor query on ).
Constructing the -units. We now describe the main query procedure which recovers the -units. The procedure maintains a family of disjoint subsets of , which gradually grows to become the full partition of into -units. It works by processing the nodes on the query path in their order from towards . The following two invariants are maintained:
(I1) At all times, forms the partition of by the -units, where is the union of all .
(I2) Immediately after is processed, it holds that , where .
The algorithm for processing the LCA is Algorithm 2, and the one for processing a higher node is given in Algorithm 3, with the helper procedure ISMERGED given in Algorithm 4.
Algorithm 2 Processing node
1: Let and be the nodes of with
2: Initialize as the family of -components in Theorem 3.2
3: for each do
4: if is contained in -component then insert to the s.t. Theorem 3.3
5: else mark as split
6: Let be the partition of the split vertices from by their values
7: Theorems 3.3 and 3.4
Algorithm 3 Processing node s.t.
1: Denote and .
2: for each -component s.t. do
3: Insert all vertices in to the s.t. Theorem 4.1
4: for each -component s.t. do is Type-3 from the middle of the cycle
5: Let be the cycle such that for some .
6: if and are in the same then insert all vertices of to this Theorem 4.2
7: else Theorem 4.2
8: for each do has some tied -component as it is assigned to
9: if IsMERGED() then
10: Let be an -component tied to
11: Insert to s.t. Theorem 3.8
12: else mark as split
13: Let be the partition of the split vertices from by their values
14: Theorems 3.8 and 3.11
Algorithm 4 Determining the dichotomy of Theorem 3.8 (see the flowchart in Figure 6)
1: procedure IsMERGED(v, , , )
2: if v has two tied -components contained in same then return TRUE
Theorem 3.10
3: if v has one tied -component and then return TRUE Theorem 4.4
4: if v has one tied -component and then is an endpoint of by Theorem 3.5
5: if there is no maximizer for v w.r.t. then return TRUE in same x, y-unit as
6: else let and be the maximizer augmentation of v w.r.t.
7: if z and T are contained in same then return TRUE Theorem 4.6
8: else if at least one of x, y is not in then return FALSE Theorem 4.8
9: else if both x, y are on side with z of in then return TRUE Theorem 4.6
10: return FALSE
Correctness. For processing the LCA , the maintenance of (I1) is justified by the lemmas in the comments on each line of pseudocode updating . After processing , (I2) clearly holds.
Consider some higher with . In the following discussion, we use and to match the given pseudocodes. When we start processing , it holds that by (I2), and . This means that we can indeed execute lines 1-7, which insert into the different -components, i.e., all vertices in . Thus, after lines 2-7 have been completed, we have . This shows that we can indeed execute the following lines 8-14, including the calls to IsMERGED(), as every -component is found within . Lines 8-14 insert all vertices in into , so indeed (I2) holds when we finish processing .
We now discuss why (I1) is preserved, assuming the correctness of the IsMERGED() procedure for determining the tied component dichotomy of Theorem 3.8 (which we discuss afterwards). The justifying lemmas for every update of appear as comments in the corresponding lines of the pseudocode. There are two types of updates: adding vertices to existing sets such that intersects (lines 3, 6 and 11), or creating entirely new sets in (lines 7 and 14). While the correctness of the first-type updates (namely, the “merged” cases) is immediate from the justifying lemmas, the second-type updates (the “split” cases) might be trickier to see. The delicate point to notice is that contains only vertices such that , and hence no vertex in is tied to any -component. This is proved as follows.
Claim 5.2. If , then
Proof. Since , it must belong to for some . Let be the node where the explicit projection of is stored via STORE-PROJECTION. As for some , we have , so is an ancestor of . As , this means that the path from to goes through and . So this path implicitly determines that (as explained after STORE-PROJECTION (Algorithm 1) is presented).
With this observation, we justify (I1) for the second-type updates (the “split” cases) as follows.
-
Line 7: This line corresponds to the “split” case of Theorem 4.2, asserting that the -unit of does not contain any who is not tied to . Consider the state of immediately before executing Line 7, so (since is a Type-3 -component from the middle of the cycle and has no stored representative). Fix . If , then it is not in , so is a nonempty node in outside of . Else, , so by Theorem 5.2. In any case, is not tied to . So, by Theorem 4.2, adding as a new set in indeed preserves (I1).
-
Line 14: When this line is reached, consists only of sets such that or . This is because the only vertices from previously inserted to sets in were the “merged” ones, and they went into sets containing their tied -components (and hence intersecting ). By Theorem 3.8, each “split” vertex , which is tied to some -component , lies in an -unit that neither intersects nor contains any vertex that is not tied to . Thus, no vertex from the current can be in 's -unit. We have that forms the partition of the “split” vertices in by the -units, according to Theorem 3.11. Thus, the update indeed maintains (I1).
Finally, we explain the correctness of the IsMERGED procedure. Note that when this procedure is called, we already have that , hence correctly determines the partition of by the -units from (I1). Thus, the correctness of most lines is immediately justified by the lemmas in the comments. The only line that requires some attention is line 8. For it, we have the following:
Observation 5.3.
Proof. Denote , so . If , then any cut separating from is a -cut, and hence . If , then the leaf of in is not in the subtree rooted by , but does belong to that subtree. Thus, is a strict ancestor of , so .
Thus, iff one of does not belong to . This shows that Theorem 4.8 indeed applies when the condition of line 8 is met. This concludes the correctness discussion.
Query time. Assigning the representatives to the sets takes time per representative as previously explained, hence time overall.
Processing takes time, and processing a higher takes time, by using the standard auxiliary skeleton data structures for finding tied -components, locating -components along cycles, determining sides of canonical cuts, and so forth. (The term is for lines 2-7 in Algorithm 3, and is for lines 8-14. Similarly, the term is for line 2 in Algorithm 2, and is for lines 3-7.) As for each , and the sets are disjoint, we get total query time of the order of
6 Reporting a Topological Ordering of -Units
In this section, we extend the data structure of Section 5 to also yield a topological order of the -units. We start by presenting some general definitions and terminology regarding such orderings.
Definition 6.1. The notations and are defined as follows.
• Write if every -mincut with on the side of also has on the side of .
• Denote if but .
• We call and comparable w.r.t. if or , incomparable otherwise.
-
When are “atomic” sets, namely, each is contained within one -unit, we extend the notations and in the obvious way.
-
When is a collection of sets forming the partition of into -units, a topological ordering of is an ordered list of all sets in , such that for every it holds that .
Whenever and are clear from context, we omit the subscript from the notation, and the “w.r.t. ”, for ease of readability. Note that we (arbitrarily) fixed the directionality between and ; intuitively, one may think of as being “on the pointy side” of , while is “on the open side”. We next summarize some trivial observations, which will be used implicitly.
Observation 6.2. We have the following:
• The relation is reflexive and transitive, i.e., it is a preorder.
• and iff and are in the same -unit, i.e. .
• iff in every x, y-mincut with u on the side of y, v is also on the side of y.
• iff there exists some x, y-mincut with v on the side of x and u on the side of y.
Directionality augmentations. The construction of the data structure is precisely as in Section 5.1, only we augment each explicitly stored projection with additional information regarding “directionality properties” of -mincuts that correspond to it. This information comes from the following lemma, which is well-known in the “carcass world” (e.g. [BP22, BPP27]). For completeness, we give the proof in Section B.
Lemma 6.3. Let be a tree-edge in the skeleton , let be an endpoint of , and let be the sub-skeleton rooted by in direction . There is a numbering such that, for every two vertices with , the following hold:
• implies that there is a -mincut with , and .
• if and only if .
Whenever we explicitly store a projection which is a proper path, we add the following augmentation to the previous ones: For each node which is one of the two endpoints of , let be the tree-edge adjacent to , and store .
New invariant: maintaining a topological ordering. We closely follow the algorithm for reporting the units from Section 5.2, but add a third invariant:
(I3) Immediately after is processed, we have a topological ordering of U.
We maintain the ordered collection using a standard linear-space order-maintenance data structure [BCD 02] supporting precedence queries in time and insertion at a specified position in amortized time.
6.1 Processing the LCA
Ordering the -components. Let and let be its children so that and . We traverse the cactus path in the direction from to , and report the -components in the order they are encountered. Whenever this traversal enters a cycle with entry node and exit node , we first report the components on one of the two semi-cycles in the order from to , then report the components on the other semi-cycle in the same manner. Denote the resulting list by . By inspecting Figure 2, it is not hard to see that this is a valid topological order:
Lemma 6.4. The list is a topological order of the -components.
Proof. Let and with . If there is some tree-edge of between and , then any -mincut represented by it is an -mincut keeping with and with , so . Otherwise, and are from the same cycle . If they are from the same semi-cycle, then take an -mincut represented by a canonical cut with one cycle-edge between and in their semi-cycle, and the other cycle-edge from the other semi-cycle. As before, this cut shows that . Finally, it could be that and are from two different semi-cycles of . In this case, we consider the canonical cut consisting of the cycle-edge immediately after in its semi-cycle, and the one immediately before in the other semi-cycle, and again arrive at .
Handling : clean-up and strategy. We now come to handle the vertices in . As in Algorithm 2, we merge every whose projection is contained in one -component into , resulting in an extended topological ordering where each contains and the -vertices merged with it. We are then left with the “split” vertices. Again, as in Algorithm 2, these are grouped into new -units according to their values. The goal is to extend the current topological ordering to also include these new units. For each new unit consisting of split vertices from , choose one arbitrary vertex; denote the set of chosen split vertices by , so every two vertices in have different values.
Thus, our goal is to extend the topological ordering to include not only , but also each vertex from , with each extended afterwards to a set including all s.t. . The vertices will be placed “in between” the sets of the already known ordering , as follows:
• We open a new bucket to the left of every .
- We first place within the buckets, with each bucket still internally unordered, so that no violations are created between the buckets and the existing sets, nor between the different buckets.
• Finally, we create an internal valid topological order inside each bucket.
Placing in the buckets. Fix some . As is a “split” vertex, its projection must be a proper path that intersects the cactus path . We orient this intersection in the direction from to (and this orientation is well-defined since a proper path cannot go through two different semi-cycles of the same cycle). If the intersection ends inside some -component , we call the rightmost component of and denote . Else, the intersection ends in an entry node of some cycle on . In this case, we take to be the first -component from by order of appearance in . (Note that is never .) By the projection theorem Theorem 2.3, we have the following:
Observation 6.5. For , let be the canonical cut corresponding to the valid partition of into (containing ) and (containing ). Suppose . Then:
• distinguishes v.
• Whenever , keeps all of on the side with .
We place v in the bucket such that .
Lemma 6.6. The placement of vertices from in the buckets corresponding to their rightmost -components does not violate the topological ordering.
Proof. Let with . As distinguishes , we get two -mincuts represented by , one keeping with on the side of , and the other keeping it with on the side of . This shows that when then (and hence ), and when then (and hence ). So, it remains to check the comparability between and vertices placed in different buckets with . If , then we take a -mincut corresponding to such that and , which exists by Theorem 6.5. If , then take a -mincut corresponding to such that and , again by Theorem 6.5. This shows that indeed when , and when .
Internally ordering each bucket. Fix a bucket , and denote , so is the rightmost -component of every . If intersects , then denote by the endpoint of within . Else, ends at the entry node of the cycle with being the first -component on one of its semi-cycles. In this case, the endpoint is this entry node to . Denote by the tree-edge of adjacent to .
Since is the rightmost -component of every vertex in , and these are “split” vertices, we have the following:
• If is the first -component on one of the semi-cycles of some cycle , all projections of vertices in must share the tree-edge of preceding .
• Else, all projections of vertices in must share the last edge from before (again, viewing as oriented from to ).
Thus, the edge is uniquely determined from (as the tree-edge adjacent to on the unique proper path going from the common edge from to ). Namely, two vertices have iff .
The following lemma allows us to determine some valid ordering between any two vertices .
Lemma 6.7 (Internal bucket order in the LCA). Let .
(i) If , then .
(ii) Suppose and . If then .
Proof. Item (i): In this case, must lie inside ; otherwise, could only be a common tree-edge from preceding , but then does not contain this common edge, a contradiction. Let be the sub-skelton of in direction , so . Note that cannot intersect : otherwise, in order to leave and go outside of , must go through , but . Thus, by Theorem 2.3, there exists a -mincut with , and (with because and are not in ).
Now, let be an -mincut with ; such a cut exists by the first item of Theorem 6.5, since is the rightmost -component of . Then is a -cut (separating from ), and is an -cut. By posimodularity (Theorem 2.5), is an -mincut, with in and out, so .
Item (ii): If is contained within , then define as in the previous item. Now, as , there exists a -mincut with , and . Continue as in Item (i) to obtain .
Otherwise, is a tree-edge of , with being its endpoint closer to . As , there is a -mincut represented by that keeps on the side of and on the side of , so again .
We now explain how we can get a valid ordering for the entire bucket . Let be the node in which intersects . Consider the tree obtained by starting with , contracting all cycles within it, and rooting at . For every node , let be its depth in this rooted tree (or, if was a cycle node, the depth of the supernode to which it was contracted). Note that almost every for is indeed a node in ; the only exception is that might be the entry node of the cycle with being the first -component in one of its semicycles; in this case we define . Since the projections of vertices in are proper paths ending at tree-edges and that pass or end at the entry node of the cycle containing as a first node in one semi-cycle, we have that if and , then . Thus, to order the bucket , we first group the vertices by their endpoints (and hence also their last edges), report the groups in increasing order of depth, where the vertices within each group are reported in decreasing order of (where and are the common endpoint and its adjacent tree-edge of every vertex in the group). Theorem 6.7 ensures that this is indeed a valid topological ordering.
Once every bucket is internally ordered, we obtain a valid topological order on the partition of all of by the x, y-units, hence ensuring (I3) as required.
Running time. The main implementation details regarding the running time concern the way we create the internal order within each bucket. Let be a bucket associated with , and let be the set in containing and all vertices from merged to . First, we mark all endpoints of within . Then, we execute a BFS search in the tree obtained from by contracting cycles. The order in which the marked nodes are found sorts them by . (If there is an extra node which is the entry cycle node, so , we place it before the rest). The internal sorting of vertices with projection ending at the same tree-edge and marked endpoint according to can be computed during preprocessing and attached to (each stored projection is attached to the lists at its two endpoints, so the space remains bounded by ). Thus when a marked node is reached by the BFS, we scan its sorted list and report the vertices from there in (reverse) order of appearance. The marking plus BFS takes time, so summed over all , this is at most . As for scanning the pre-sorted lists at each endpoint: this takes a total of time where denotes the set of projections explicitly stored at , since each such projection is visited at most twice in this scanning process. Thus, the total running time for processing is .
6.2 Processing a node above the LCA
Let with be a node on the query path above the LCA, and denote by its child with . By the maintained invariants (I1-3), when we start processing , the known collection correctly defines the partition of by -units, and is ordered in a valid topological ordering .
Extending the ordering to . As in Algorithm 3, we first merge each -component with into the set containing . We then treat the Type-3 -components coming from the middle of a cycle . Again, if the boundary components of were merged to the same , then we merge all of the -components originating from to this . Otherwise, denote the cycle components originating from by in order of their appearance on , such that the boundary component precedes in the known ordering . As before, we should insert for as new sets in , but now we have to place them in between the known sets while maintaining a valid topological ordering. The following lemma shows that we can place , in this order, anywhere between and .
Lemma 6.8 (Comparability of cycle components). Let be a tree-edge adjacent to , with on cycle . Denote the corresponding Type-3 -components, according to the cycle order in , by . Suppose that . Then the following hold.
(i) For every it holds that .
(ii) Let v be a vertex which is not tied to any of and let .
• If then .
• If then .
Proof. Item (i): Let and be -mincuts with and . Such and exist, as they partition corresponding to canonical cuts of either two non-adjacent cycle-edges from , or one tree-edge leaving . Observe that . We use and in steps as follows.
Let be an -mincut with and . Then is a -cut (separating from ), and is an -cut. By submodularity (Theorem 2.5), is an -mincut with and . Now, is a -cut (separating from ), and is an -cut. By posimodularity (Theorem 2.5), is an -mincut, with and , as needed.
Item (ii): We show the first sub-item (the second is symmetric). The proof is essentially identical to the ‘otherwise’ case in Theorem 4.2. Let be the sub-skeleton rooted by in direction . As cannot be contained within the cycle (by Theorem 2.3), it must have an endpoint outside . Thus, by Theorem 2.3, there is a -mincut with and , and note that as is not in . Now, let be an -mincut with and . Then is a -cut (separating from ), and is an -cut. By submodularity (Theorem 2.5), is an -mincut, keeping with and with .
From this point on, we use to denote the resulting topological ordering on all of , and our task is thus to extend it to also include .
Handling : clean-up and strategy. We now come to handle the vertices in . As before, using the procedure IsMERGED, we determine the “merged” or “split” dichotomy for each , the first kind being merged to existing sets in containing their tied -components, and the latter partition by their values to form new sets that are now inserted to . Our task is therefore to extend the by placing these new sets in between the sets in this ordering.
For each such new set of “split” vertices with the same value, choose one vertex, and collect all chosen vertices as , so every two vertices in have different values. The vertices will be placed “in between” the sets of the already known ordering , as follows:
• We open two new buckets for every , placed to its left and to its right.
• We first place within the buckets, with each bucket still internally unordered, so that no violations are created between the buckets and the existing sets, nor between the different buckets. So now, between a consecutive pair in the current ordering, there are two new buckets: the right bucket of , and the left bucket of , with the former appearing before the latter.
• The bucketing scheme for a given “split” representative is the following:
– If has two tied -components and , with appearing before in the current ordering, we place in the left bucket next to .
– If has one tied -component , and the vertex from the maximizer is found to the right (resp., left) of , then we place in the bucket to the right (resp., left) of .
• Finally, we create an internal valid topological order inside each bucket.
Determining comparability with tied -components. Let , and be an -component tied to . Our first insight is that and are comparable:
Lemma 6.9 (Tied component is comparable). If an -component T is tied to v, then T and v are comparable.
Proof. If not, then there are -mincut and -mincut such that and . Since is tied to , there is also a -mincut with and (Theorem 3.7). Then and are -cuts, while is a -cut (separating from, say, ). So, by Theorem 2.6, , a contradiction.
We now turn to determining the correct order between v and T.
Lemma 6.10 (Comparability with two tied components). If is tied to two -components and , then either and are all in the same -unit, or , or .
Proof. Suppose are not all in one -unit, so by Theorem 3.10, they are in three different units. As is comparable to both and (Theorem 6.9), we should rule out the possibility that or that . Seeking contradiction, suppose one of them holds, say (the other is symmetric, by swapping and ). Then, there are two -mincuts with and , for . By submodularity (Theorem 2.5), is an -mincut with and . As is tied to and , by Theorem 3.7 there are two -mincuts with and , for . Then is an -cut, while and are -cuts (both separating and ). So, by Theorem 2.6, , a contradiction.
Lemma 6.11 (Comparability with one tied component). Suppose vertex has exactly one tied -component , and that and are in different -units. Let be the -mincut for which is the maximizer of from Theorem 4.5. If (resp., ), then (resp., ).
Proof. (The ‘respectively’ part is proved by swapping .) Let be an -mincut with and . If then we are done. Otherwise, as and are not in the same -unit, by Theorem 4.6. Now we proceed exactly as in direction () of Theorem 4.6 to deduce that must be an -mincut, keeping with and with . (The only difference is that here, and is enforced by using , while in the proof of Theorem 4.6() this was assumed without loss of generality).
Placing into buckets. As explained in the strategy, if has two tied -components and , with appearing before in the current ordering, we place in the left bucket created for the set containing in the current ordering. If has one tied -component , then we place it in the bucket next to the set containing which is in the direction towards the location of in the current order.
Thus, by the above lemmas, our bucketing strategy indeed places on the correct side of its tied -component(s). Furthermore, the two buckets to the left and to the right of each set do not create any conflict, because if is in the left bucket and in the right one, then so in particular .
It remains to show that a bucket associated with some known does not create conflicts (i) with another , nor with (ii) the buckets of . These correspond precisely to items (i) and (ii) of the following lemma.
Lemma 6.12. Let v be a vertex tied to -component T, and u be a vertex which is not tied to T.
(i) If (respectively, ), then (respectively, ).
(ii) If is tied to -component and (respectively, ), then (respectively, ).
Proof. (The ‘respectively’ part is proved by swapping .) Since is tied to and is not, there is a -mincut with (Theorem 3.7). We will use to prove both items.
(i) Let be an -mincut with , . Then is a -cut (separating from ), and is an -cut. By submodularity (Theorem 2.5), is an -mincut with as needed.
(ii) By Item (i) (with replaced by ), there is an -mincut with . Since is tied to , there is a -mincut with . Note that and are -cuts (both separate and ), so by posimodularity (Theorem 2.5), is a -mincut with . Now, is a -cut (separating from ), and is an -cut. By posimodularity again, is an -mincut with inside and outside, as needed.
For (i), note that must contain some vertex , so is not tied to any -component contained in : If this is clear, and if this is by Theorem 5.2.
For (ii), note that a vertex from a bucket of and a vertex from a bucket of cannot agree on their tied -components. Indeed, if they agreed, then both would have a tied component in and in , but this means we would place them in the same bucket (namely, the left bucket of rightmost set among ), a contradiction.
This concludes the validity argument for our bucketing strategy.
Subdividing the buckets by tied -components. We now focus on determining a valid internal ordering within each bucket. Let be a bucket of some known set in the ordering. Note that could contain several different -components. However, a vertex can be tied to only one of these -components; otherwise, it would have two tied -components merged to the same -unit, so it would be merged with them into , a contradiction. We first observe that if have different tied -components within , then and are incomparable.
Lemma 6.13. Let be an -unit which contains two different -components and . Let be tied to , and be tied to . If (respectively, ), then are incomparable w.r.t. .
Proof. (The ‘respectively’ part is proved by swapping .) We will show that , and is symmetric. Let be an -mincut with , . By Theorem 3.7, there is a -mincut with , , . Note that cannot be tied to , because then we would have by Theorem 3.10. Thus, it must be that by Theorem 2.3. Now, is a -cut (separating from ), and is an -cut. By posimodularity (Theorem 2.5), is an -mincut, keeping inside and outside.
Thus, we can divide into sub-buckets according to the corresponding -components within , and order these sub-buckets arbitrarily without creating conflict. We therefore have to focus on the internal order within each sub-bucket. To simplify the notation, from here on we will use the letter for one arbitrary sub-bucket associated with an -component within .
Internally ordering a sub-bucket. Because every is tied to but not merged with it, the projection must be a proper path which goes through the rooting tree-edge of , then continues inside . Denote by the endpoint within , and by the tree-edge of adjacent to it. Note that is uniquely determined from because there is a unique proper path from the rooting edge of to . Namely, for two vertices , we have iff .
The following lemma allows us to determine a valid order for every two vertices of the sub-bucket , essentially in the same manner as we did when processing the LCA (Theorem 6.7).
Lemma 6.14 (Comparability with shared tied component). Let and be two vertices tied to -component such that (resp., ). Let denote an endpoint of within , and denote the tree-edge of adjacent to . Denote and analogously.
(i) If , then (resp., ). Symmetrically, if , then (resp., ).
(ii) Suppose and . If then (resp., ). Symmetrically, if , then (resp., ).
Proof. (The ‘symmetrically’ parts are proved by swapping , and the ‘respectively’ by swapping )
In both items, we will show a -mincut with , and . Note that (as is not in ). This will yield the conclusion as follows: Let be an -mincut with , (which exists since ). Then is a -cut (separating from ), and is an -cut. By posimodularity (Theorem 2.5), is an -mincut, keeping with and with .
Item (i): Because , Theorem 3.9 implies that must also have endpoints outside . Thus, the sub-skeleton rooted by in direction is contained within . Note that cannot intersect : otherwise, in order to leave and go outside of , must go through , contradicting our assumption. Then, by Theorem 2.3, there exists a -mincut with , and .
Item (ii): Define as in Item (i). Then by Theorem 6.3, implies a -mincut with , and .
We can now employ the same strategy from the LCA (which is now even a bit simpler, as every vertex in indeed has an endpoint of its projection within ). Let denote the depth of node in the tree obtained from by contracting each cycle within , and rooting it (as one would expect) at the endpoint of 's rooting edge that lies in . Again, for , if and , then . Thus, to order the sub-bucket , we act as follows. Suppose the sub-bucket is placed to the left of (if it is to the right, swap “increasing” and “decreasing” in the following). We first group the vertices in by their endpoints (and hence also their last edges), then report the groups in increasing order of depth, where each group is reported in decreasing order of (where and are the common endpoint and its adjacent tree-edge of every vertex in the group). Theorem 6.14 ensures that this is indeed a valid topological ordering of the sub-bucket .
Once every sub-bucket is internally ordered, we obtain a valid topological order on the partition of all of by the -units, hence ensuring (I3) as required.
Running time. Similarly to the LCA case, the main implementation details concern the internal ordering within (sub-)buckets. As the internal ordering procedures in LCA or above it are essentially identical, the same arguments as in the LCA show that apart from scanning the pre-sorted lists of projections associated with each possible ending tree-edge within , ordering each sub-bucket takes time. Summing this over all sub-buckets counts each term twice, since the -component has at most two sub-buckets associated with it, so this amounts to time. Scanning the pre-sorted lists again takes time with being the set of explicitly stored projections at , as each is visited a constant number of times by these scans. So, the running time for processing is .
Finally, adding the cost of processing summing over all , the total running time calculation is as in Equation (3), but adding a term of . Ince the data structure stores projection records in total, . This concludes the proof of the first item of Theorem 1.1; the second item follows immediately as noted in the introduction.
References
[ACP 26] Mridul Ahi, Keerti Choudhary, Shlok Pande, Pushpraj, and Lakshay Saggi. Maximum-flow and minimum-cut sensitivity oracles for directed graphs. In Shubhangi Saraf, editor, 17th Innovations in Theoretical Computer Science Conference, ITCS 2026, Bocconi University, Milan, Italy, January 27-30, 2026, volume 362 of LIPIcs, pages 5:1–5:24. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026. URL: https://doi.org/10.4230/LIPIcs.ITCS.2026.5. doi:10.4230/LIPICS.ITCS.2026.5.
[AKT22] Amir Abboud, Robert Krauthgamer, and Ohad Trabelsi. Friendly cut sparsifiers and faster gomory-hu trees. In Joseph (Seffi) Naor and Niv Buchbinder, editors, Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, Virtual Conference / Alexandria, VA, USA, January 9 - 12, 2022, pages 3630–3649. SIAM, 2022. doi:10.1137/1.9781611977073.143.
[BB24] Surender Baswana and Koustav Bhanja. Vital edges for (s, t)-mincut: Efficient algorithms, compact structures, & optimal sensitivity oracles. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, Tallinn, Estonia, July 8-12, 2024, volume 297 of LIPIcs, pages 17:1–17:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024. URL: https://doi.org/10.4230/LIPIcs.ICALP.2024.17, doi:10.4230/LIPICS.ICALP.2024.17.
[BBP23] Surender Baswana, Koustav Bhanja, and Abhyuday Pandey. Minimum+1 (s, t)-cuts and dual-edge sensitivity oracle. ACM Trans. Algorithms, 19(4):38:1–38:41, 2023. doi:10.1145/3623271.
[BBR25] Surender Baswana, Koustav Bhanja, and Anupam Roy. Faster algorithm for second (s, t)-mincut and breaking quadratic barrier for dual edge sensitivity for (s, t)-mincut. In Anne Benoit, Haim Kaplan, Sebastian Wild, and Grzegorz Herman, editors, 33rd Annual European Symposium on Algorithms, ESA 2025, September 15-17, 2025, Warsaw, Poland, volume 351 of LIPIcs, pages 68:1–68:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. URL: https://doi.org/10.4230/LIPIcs.ESA.2025.68, doi:10.4230/LIPICS.ESA.2025.68.
[BCD 02] Michael A. Bender, Richard Cole, Erik D. Demaine, Martin Farach-Colton, and Jack Zito. Two simplified algorithms for maintaining order in a list. In Rolf H. Möhring and Rajeev Raman, editors, Algorithms - ESA 2002, 10th Annual European Symposium, Rome, Italy, September 17-21, 2002, Proceedings, volume 2461 of Lecture Notes in Computer Science, pages 152–164. Springer, 2002. doi:10.1007/3-540-45749-6_17.
[BFC04] M. A. Bender and M. Farach-Colton. The level ancestor problem simplified. Theoretical Computer Science, 321(1):5–12, 2004.
[BGK22] Surender Baswana, Shiv Kumar Gupta, and Till Knollmann. Mincut sensitivity data structures for the insertion of an edge. Algorithmica, 84(9):2702–2734, 2022. URL: https://doi.org/10.1007/s00453-022-00978-0, doi:10.1007/S00453-022-00978-0.
[Bha24] Koustav Bhanja. Optimal sensitivity oracle for steiner mincut. In Julián Mestre and Anthony Wirth, editors, 35th International Symposium on Algorithms and Computation, ISAAC 2024, Sydney, Australia, December 8-11, 2024, volume 322 of LIPIcs, pages 10:1–10:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024. URL: https://doi.org/10.4230/LIPIcs.ISAAC.2024.10, doi:10.4230/LIPICS.ISAAC.2024.10.
[Bha25] Koustav Bhanja. Minimum+1 steiner cut and dual edge sensitivity oracle: Bridging gap between global and (s, t)-cut. In Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, July 8-11, 2025, Aarhus, Denmark, volume 334 of LIPIcs, pages 27:1–27:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. URL: https://doi.org/10.4230/LIPIcs.ICALP.2025.27, doi:10.4230/LIPICS.ICALP.2025.27.
[BKP27] Koustav Bhanja, Yotam Kenneth-Mordoch, and Asaf Petruschka. An optimal structure for all-pairs nearest mincuts and sensitivity oracles for the edge insertions. To appear in SODA 2027, 2027. URL: https://arxiv.org/abs/2609.31290.
[BP22] Surender Baswana and Abhyuday Pandey. Sensitivity oracles for all-pairs mincuts. In Joseph (Seffi) Naor and Niv Buchbinder, editors, Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, Virtual Conference / Alexandria, VA, USA, January 9 - 12, 2022, pages 581–609. SIAM, 2022. doi:10.1137/1.9781611977073.27.
[BP25] Surender Baswana and Abhyuday Pandey. The connectivity carcass of a vertex subset in a graph: both odd and even case. In Ioana Oriana Bercea and Rasmus Pagh, editors, 2025 Symposium on Simplicity in Algorithms, SOSA 2025, New Orleans, LA, USA, January 13-15, 2025, pages 385–422. SIAM, 2025. doi:10.1137/1.9781611978315.30.
[BPP27] Koustav Bhanja, Merav Parter, and Asaf Petruschka. Space-optimal sensitivity oracles for single-source mincuts. To appear in SODA 2027, 2027. URL: https://doi.org/10.48550/arXiv.2607.00894.
[CLP22] Ruoxu Cen, Jason Li, and Debmalya Panigrahi. Augmenting edge connectivity via isolating cuts. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3237–3252. SIAM, 2022.
[DKL76] Efim A Dinitz, Alexander V Karzanov, and Michael V Lomonosov. On the structure of the system of minimum edge cuts in a graph. Issledovaniya po Diskretnoi Optimizatsii, pages 290–306, 1976.
[DN95] Yefim Dinitz and Zeev Nutov. A 2-level cactus model for the system of minimum and minimum+1 edge-cuts in a graph and its incremental maintenance. In Proceedings 27th ACM Symposium on Theory of Computing (STOC), pages 509–518, 1995.
[DV94] Yefim Dinitz and Alek Vainshtein. The connectivity carcass of a vertex subset in a graph and its incremental maintenance. In Frank Thomson Leighton and Michael T. Goodrich, editors, Proceedings of the Twenty-Sixth Annual ACM Symposium on Theory of Computing, 23-25 May 1994, Montréal, Québec, Canada, pages 716–725. ACM, 1994. doi:10.1145/195058.195442.
[DV95] Yefim Dinitz and Alek Vainshtein. Locally orientable graphs, cell structures, and a new algorithm for the incremental maintenance of connectivity carcasses. In Kenneth L. Clarkson, editor, Proceedings of the Sixth Annual ACM-SIAM Symposium on Discrete Algorithms, 22-24 January 1995. San Francisco, California, USA, pages 302–311. ACM/SIAM, 1995. URL: http://dl.acm.org/citation.cfm?id=313651.313711.
[DV00] Yefim Dinitz and Alek Vainshtein. The general structure of edge-connectivity of a vertex subset in a graph and its incremental maintenance. odd case. SIAM J. Comput., 30(3):753–808, 2000. doi:10.1137/S0097539797330045.
[GH61] R. E. Gomory and T. C. Hu. Multi-terminal network flows. Journal of the Society for Industrial and Applied Mathematics, 9, 1961.
[GN93] Dan Gusfield and Dalit Naor. Extracting maximal information about sets of minimum cuts. Algorithmica, 10(1):64–89, 1993. doi:10.1007/BF01908632.
[HT84] D. Harel and R. E. Tarjan. Fast algorithms for finding nearest common ancestors. SIAM J. Comput., 13(2):338–355, 1984.
[Kar00] D. R. Karger. Minimum cuts in near-linear time. J. ACM, 47(1):46–76, 2000.
[KK26] Yotam Kenneth-Mordoch and Robert Krauthgamer. Faster all-pairs minimum cut: Bypassing exact max-flow. to appear in 58th Annual ACM Symposium on Theory of Computing (STOC), 2026. URL: https://doi.org/10.48550/arXiv.2511.10036.
[KT19] Ken-ichi Kawarabayashi and Mikkel Thorup. Deterministic edge connectivity in near-linear time. J. ACM, 66(1):4:1–4:50, 2019. doi:10.1145/3274663.
[Lov93] László Lovász. Combinatorial problems and exercises (2. ed.). North-Holland, 1993.
[NGM97] Dalit Naor, Dan Gusfield, and Charles Martel. A fast algorithm for optimally increasing the edge connectivity. SIAM Journal on Computing, 26(4):1139–1165, 1997.
[NI92] Hiroshi Nagamochi and Toshihide Ibaraki. A linear-time algorithm for finding a sparse k-connected spanning subgraph of a k-connected graph. Algorithmica, 7(5&6):583–596, 1992.
[PQ80] Jean-Claude Picard and Maurice Queyranne. On the structure of all minimum cuts in a network and applications. In Rayward-Smith V.J. (eds) Combinatorial Optimization II. Mathematical Programming Studies, 13(1):8–16, 1980. doi:10.1007/BFb0120902.
A Comparison with [BKP27]
Our construction builds on the nearest mincut hierarchy of Bhanja, Kenneth-Mordoch, and Petruschka [BKP27], which occupies space and reports the nearest -mincut in time for any ordered pair . Thus, their structure recovers one distinguished -unit: the one containing . In our work, we recover the entire partition into -units, together with an ordering whose nonempty proper prefixes are -mincuts. This allows us to report an -mincut separating any additional pair of vertices whenever one exists. Although both constructions use a skeleton hierarchy and proceed upward from , the stronger task requires new structural tools already at this starting point.
The starting point: the LCA. Let , and let be its children containing , respectively. At this level, -mincuts are precisely the -mincuts represented by canonical cuts of separating from . For the nearest-mincut query of [BKP27], it suffices to consider the canonical cut closest to in the direction of in the simplified tree skeleton. The vertices whose projections lie entirely on its -side are exactly those belonging to . Thus, the task is to identify the vertices confined to one prescribed region of the skeleton. Our query must instead recover the distinctions induced by all canonical cuts separating from in the full cactus skeleton. These cuts partition into -components, each contained in a different -unit.
The handling of projections is also significantly different. In [BKP27], the classification is binary: a vertex belongs to Near if its projection lies entirely on the -side of the canonical cut closest to , and lies outside otherwise. Our classification requires two separate steps. First, we determine whether a vertex belongs to the -unit of some -component. This happens exactly when is contained in that component; otherwise, its unit does not intersect . Second, for the vertices not merged with any -component, we must determine which of them belong to the same -unit. Thus, being classified as outside the nearest mincut concludes the earlier task, whereas our query must further identify the units of these vertices.
Differences above the LCA. At a strict ancestor of , let be the child containing both and . The differences between our construction and that of [BKP27] extend to the decomposition of the skeleton, the interpretation of projections, and the information needed to classify representatives.
- From skeleton subtrees to -components. Crucially exploiting properties of nearest mincuts, BKP show that each sub-skeleton of lies entirely inside or entirely outside the nearest -mincut. However, an arbitrary -mincut may partition such a sub-skeleton. Thus, vertices in one subskeleton that behave identically with respect to nearest-mincut membership need not belong to the same -unit. Furthermore, the construction of [BKP27] uses simplified tree skeletons, which is sufficient for representing nearest mincuts. However, we need to work with the full cactus skeleton and introduce a finer decomposition of subskeletons into -components in a way that they are atomic, i.e., each such contained in one -unit for every .
This refinement also changes the space analysis. In [BKP27], one representative per subtree suffices, and the number of subtrees is bounded by . Our decomposition may have many more components because a neighboring cycle can contribute several of them. We therefore cannot afford to store a representative from every component. We establish new structural insights about these components, namely, the cyclic consistency property, such that it restores the degree-based bound on the number of representatives and preserves total space.
-
From projection membership to assignment among units. In [BKP27], the subtrees intersected by a vertex's projection serve as anchors for deciding its nearest-mincut membership. Their inside/outside classification allows the known portion of the nearest mincut to be extended upward through the hierarchy. Here, several -components may be merged into one x, y-unit or belong to different units. We must characterize how a projected vertex relates to these components in each case. We introduce the concept of tied -components as anchors and provide characterizations that determine whether the vertex joins their unit or creates new. These characterizations allow us to grow individual units from the LCA upward through the hierarchy.
-
From chain maximizers to maxima of crossing cut families. One of the main tools developed in [BKP27] is the chain maximizer. For an appropriate subtree T having one endpoint of the projection of a vertex v, they consider the family
where Near denotes the nearest -mincut. They prove that this family forms a chain under containment and summarize it by its largest member. Our corresponding family replaces nearest mincuts by arbitrary mincuts. In this family, the mincuts may cross; see Theorem 4.5. Thus, the chain property used in the earlier construction no longer holds. Nevertheless, we prove that this family is closed under unions. Whenever nonempty, it consequently has a unique maximum containing every member of the family. In [BKP27], the witness vertices alone suffice, since the maximum is uniquely determined as the nearest -mincut. Our maximum need not be the nearest -mincut, so the witness pair alone does not identify it. We additionally store its canonical cut in the skeleton at . This constant-size augmentation lets us decide whether joins the unit containing .
The following two paragraphs are entirely new and have no counterpart in [BKP27].
Distinguishing vertices that do not join existing units. Once a vertex is classified using its projection as outside the nearest mincut, its classification in [BKP27] is complete. In our construction, determining that a vertex belongs to no unit intersecting completes only the first step. We must still decide whether it belongs to the same unit as another such vertex.
At the LCA, classical carcass distinctness supplies the required criterion. Above the LCA, lie in the same terminal node , and their mincuts are not -mincuts. We prove an extended distinctness lemma: for vertices whose -units avoid , provided at least one has a tied -component,
Storing -unit identifiers with the projections therefore allows us to group these vertices into their respective x, y-units. This extended distinctness can be viewed as a new carcass tool, which is of independent interest.
Reporting a topological order. Recovering all -units determines exactly which pairs of vertices can be separated by an -mincut, but it does not by itself provide such a cut. To report a separating mincut, we further need an ordering of the units whose nonempty proper prefixes are -mincuts. Thus, unlike in [BKP27], where identifying the nearest -unit completes the query, here recovering the units is only part of the task: we must additionally understand how all these units are ordered with respect to one another.
This introduces new challenges already at the LCA. We must order all the -components along the full cactus skeleton. Cycles make this substantially more delicate: in particular, empty cycle-nodes do not themselves correspond to -units, yet they affect the relative placement of the surrounding components and of vertices whose projections interact with the cycle. Thus, even after the -units at the LCA have been identified, obtaining an ordering consistent with all -mincuts requires additional structural arguments.
The difficulty only increases above the LCA. We extend the ordering incrementally along the query path. At each ancestor, once the -units inside the child have already been ordered, we show that the following steps must be executed in order. First, we order the tied -components consistently with the -mincut relation that are arising from a cycle, that is Type-3. Second, for every newly created unit, we determine where it should be inserted relative to the already ordered -units. The tied components identify the relevant existing unit, while the structural dichotomy, and in the one-tied-component case the maximizer information, determines on which side of that unit the new unit must appear. Finally, several new units may be assigned to the same position. At this point, the distinctness arguments used to identify these units no longer provide any information about their relative order. Determining this order requires finer structural information, obtained from their tied components, the positions of their projections, and additional ordering information stored in the structure.
B Missing Proofs
Proof of Theorem 2.5. We first prove the correctness of each case:
- (Submodularity) The -cut must have capacity at least , and the -cut must have capacity at least . Summing both these inequalities, we obtain that . But, by submodularity, the latter must hold with equality, and hence also the two original inequalities.
• (Posimodularity) Symmetric to submodularity.
- (Hybrid) In a similar manner to the sub/posimodularity cases, now we have four inequalities, and summing them yields . But now, by applying submodularity and posimodularity together, the latter must hold with equality, and hence also the four original inequalities.
We now prove that one of the cases must hold. Choose s.t. , , , .
If each of intersects : Then, as these four sets are disjoint, each contains exactly one vertex of . Those with and with give two different -cuts, and those with and give the two -cuts.
Otherwise, one of the four sets has empty intersections with . If , then and , so the former is an -cut and the latter is a -cut, hence we get the posimodularity case. If , then and , and again we get the posimodularity case. If , then and , so we get the submodularity case. Finally, if , then and , so again we get the submodularity case.
Proof of Theorem 2.6. The -cut must have capacity at least . Similarly, the -cut and -cut has capacities at least and . Subtracting from both sides of Equation (1) and applying these observations, we see that the fourth set has non-positive capacity. In a connected graph, there are only two such sets: and . But is ruled out, as the other three sets are disjoint from the fourth and non-empty.
Proof of Theorem 6.3. We omit the subscript for readability. Let be a directed graph with vertex set , such that the directed edge exists if and only if every -mincut such that and also has . Contract each SCC (strongly connected component) of , and find a topological ordering of the resulting DAG: is the place of 's SCC in this ordering. Observe that is transitively closed, i.e., if it has edges and , it also has an edge : Indeed, if is a -mincut with and , then by we have , and now by we get .
Now, let with , so the canonical cut defined by distinguishes both and by Theorem 2.3. By Theorem 2.4, it holds that iff no -mincut with (i.e., a -mincut represented by ) separates from . But this happens iff both and are edges in by its definition, which is equivalent to being in the same SCC as is transitively closed, and this happens iff . This proves the second item. For the first item, means is not an edge in (as it would violate the topological order), so there is a -mincut s.t. and .