Cut-Preserving Vertex Sparsifiers for Planar and Quasi-Bipartite Graphs
Abstract
We study vertex sparsification for preserving cuts. Given a graph with a subset of its vertices called terminals, a quality- cut sparsifier is a graph that contains , such that, for any partition of into non-empty subsets, the value of the min-cut in separating from is within factor from the value of the min-cut in separating from . The construction of cut sparsifiers with good (small) quality and size has been a central problem in graph compression for years.
Planar graphs and quasi-bipartite graphs are two important special families studied in this research direction. The main results in this paper are new cut sparsifier constructions for them in the high-quality regime (where or for small ).
We first show that every planar graph admits a planar quality- cut sparsifier of size , which is in sharp contrast with the lower bound of for the quality- case.
We then show that every quasi-bipartite graph admits a quality- cut sparsifier of size . This is the second to improve over the doubly-exponential bound for general graphs (previously only planar graphs have been shown to have single-exponential size quality- cut sparsifiers).
Lastly, we show that contraction, a common approach for constructing cut sparsifiers adopted in most previous works, does not always give optimal bounds for cut sparsifiers. We demonstrate this by showing that the optimal size bound for quality- contraction-based cut sparsifiers for quasi-bipartite graphs lies in the range , while in previous work an upper bound of was achieved via a non-contraction approach.
Keywords and phrases:
Termianl Cut, Graph SparsificationCategory:
Track A: Algorithms, Complexity and Games2012 ACM Subject Classification:
Theory of computation Sparsification and spannersEditors:
Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele PuppisSeries and Publisher:

1 Introduction
Given a graph and a set of its vertices called terminals, a cut sparsifier of with respect to is a graph with , such that for every partition of into non-empty subsets, the size of the minimum cut separating from in and the size of the minimum cut separating from in are within some small multiplicative factor , which is also called the quality of the sparsifier.
Karger [20, 21] first considered the special case where and is required to be a subgraph of , and he used sampling approaches to construct quality- cut sparsifiers with edges. Such sparsifiers are called edge sparsifiers, since we are only allowed to sparsify the edges (not the vertices) and the goal is to minimize . In this paper, we allow to have a different set of vertices, and such graphs are known as vertex sparsifiers. Constructing cut-preserving vertex sparsifiers with small quality and size (measured by the number of vertices in ) has been a central problem in graph compression.
Cut-preserving vertex sparsifiers were first studied in the special case where is only allowed to contain terminals (that is, ). Moitra [33] first showed that every -terminal graph has a cut sparsifier with quality . Then Charikar, Leighton, Li and Moitra [6] showed that such sparsifiers can be computed efficiently. The best quality lower bound in this case is [32, 6], leaving a small gap to be closed. Therefore, the natural next question, which has been a central question on cut/flow sparsifiers over the past decade, is:
Can better quality sparsifiers be achieved by allowing a small number of Steiner vertices?
For exact cut sparsifiers (), it has been shown that every -terminal graph admits an exact cut sparsifier of size at most [18, 24], while the strongest lower bound is [24, 22], leaving an exponential gap yet to be closed. Since then the research on cut sparsifiers was diverted into two directions. The first direction focuses on proving better size upper bounds for special families of graphs. For example, for planar graphs, Krauthgamer and Rika [28, 29] showed that vertices are sufficient for an exact cut sparsifier, and then Karpov, Philipzcuk and Zych-Pawlewicz [22] proved a lower bound of , showing that the single exponential upper bound is almost tight. Another example is graphs where each terminal has degree exactly . For these graphs, Chuzhoy [11] showed the construction for -quality sparsifiers of size by contracting expanders, and Kratsch and Wahlstrom [26] constructed quality- sparsifiers of size via a matroid-based approach. The second direction focuses on constructing cut sparsifiers with a slightly worse quality of for small . Andoni, Gupta, and Krauthgamer [1] initiated the study of quality- flow sparsifiers 111Flow sparsifiers are concretely related to cut sparsifiers. We review the previous work and discuss the connection between them in Section 1.3. (which are stronger versions of cut sparsifiers), established a framework of constructing flow sparsifiers via contractions with a doubly exponential upper bound. However, the only family that they managed to obtain a better-than- upper bound for is the family of quasi-bipartite graphs, graphs where every edge is incident to some terminal. They showed an upper bound of , via a sampling-based approach. For quality- cut sparsifiers on quasi-bipartite graphs, the bound was improved to by Jambulapati, Lee, Liu and Sidford [19], also via a sampling-based approach.
Among the above algorithmic results, the most common approach for constructing cut sparsifiers is contraction. Specifically, we compute a partition of the vertices of into disjoint subsets, and then contract each subset of into a supernode. The resulting graph is called a contraction-based cut sparsifier. Contraction-based cut sparsifiers may only increase the value of every terminal min-cut, which partly explains why contraction is a commonly adopted approach, as to analyze its quality it suffices to show that the min-cuts are not increased by too much. For general graphs, a lower bound of (almost matching the upper bound of ) was proved [22] for contraction-based cut sparsifiers. It is therefore natural to ask whether or not better bounds can be achieved for special graphs. Moreover, all the previous constructions of cut sparsifiers with Steiner nodes, except for the ones using matroid-based/sampling-based approaches, are contraction-based. Therefore, it is natural to explore if contraction can give optimal constructions for cut sparsifiers.
1.1 Our Results
In this paper, we make progress on the above questions. Our first results, summarized as Theorem 1 and Theorem 2, are new size upper bounds on exact or quality- sparsifiers for special families of graphs.
Theorem 1.
For every integer and real number , every planar graph with terminals admits a quality- cut sparsifier on vertices, which is also a planar graph.
For planar graphs, our near-linear size bound is in sharp contrast with the single-exponential bound [28, 29, 22] for exact cut sparsifiers. In other words, Theorem 1 shows that, for preserving cuts in planar graphs, we can trade a small loss in quality for a significant improvement in size.
Theorem 2.
For every integer , every quasi-bipartite graph with terminals admits an exact (quality-) contraction-based cut sparsifier of size , and there exists a quasi-bipartite graph with terminals whose exact contraction-based cut sparsifier must contain vertices.
Theorem 2 shows that, similar to planar graphs, the family of quasi-bipartite graphs also admit a single-exponential upper bound (even achievable by contraction-based sparsifiers), better than the doubly-exponential bound for general graphs [18, 24, 22].
Next we turn to study contraction-based sparsifiers. Our next result shows that contraction-based sparsifiers are not optimal constructions, as they give worse bounds for quasi-bipartite graphs.
Theorem 3.
For every integer and real number , there exists a quasi-bipartite graph with terminals, whose quality- contraction-based cut sparsifier must contain vertices.
Compared with the previous bounds [1] and [19] (both obtained by sampling-based and therefore not contraction-based approaches), Theorem 3 shows that contraction-based sparsifiers are sometimes provably suboptimal.
We then proceed to study the size upper bound for quality- contraction-based cut sparsifiers of quasi-bipartite graphs. Our last result shows that when is a constant, quasi-bipartite graphs have -sized contraction-based cut sparsifiers, complementing the lower bound in Theorem 3, in contrast with the lower bound for exact sparsifiers in Theorem 2.
Theorem 4.
For every integer and real number , every quasi-bipartite graph with terminals admits a quality- contraction-based cut sparsifier of size , where is a function that only depends on .
We summarize our results and provide some comparison with previous work in Table 1.
1.2 Technical Overview
Planar cut sparsifiers
Our construction of planar cut sparsifiers follows a similar framework as the planar distance emulator construction in [5], based on the intuition that, if we take the dual graph, then min-cuts become min-length partitioning cycles and therefore can be approximated by distance-based approaches. The algorithm consists of three steps:
-
1.
reduce general planar graphs to -face instances (where terminals lie on faces in the planar embedding of the graph);
-
2.
reduce -face instances to -face instances (where all terminals lie on the boundary of a single face; such graphs are also known as Okamura-Seymour instances); and
-
3.
construct quality- planar cut sparsifiers for -face instances.
Step and Step are implemented in a similar way as [5]. Step requires several new ideas. The goal is to preserve the min-cuts for all terminal partitions. As terminals may lie on faces, for different terminal partitions, the dual partitioning cycle corresponding to the min-cuts may go around these faces in different ways, and therefore it is not enough to just preserve pairwise shortest paths in the dual graph. Indeed, as observed by [29], we need to preserve, for each pair of terminals, and for each pattern (how a path going around the faces, e.g., on the left side of face , on the right side of face , etc), the shortest path following the pattern and connecting the terminal pair. We call such a sparsifier a pattern distance emulator, which a generalization of the standard distance emulators. As there are faces, there are different patterns (left/right for each face). We manage to construct a near-linear size pattern emulator, incurring an unharmful factor loss in its size.
We believe that the notion of pattern emulators is of independent interest, and should play a role in solving other algorithmic problems on planar graphs.
Upper bounds for quasi-bipartite graphs
For exact (quality-) contraction-based cut sparsifiers, a central notion in previous constructions and lower bound proofs is the profiles of vertices. Specifically, the profile of a vertex specifies, for each terminal partition , on which side of the cut lies the vertex . Vertices of the same profile can be safely contracted together, and the number of different profiles is therefore an upper bound on the size of exact cut sparsifiers. For general graphs, a doubly-exponential upper bound of [18] on the number of distinct profiles was established, and this was later improved to [24]. For quasi-bipartite graphs, we will utilize its structure to proved a better (single-exponential) upper bound.
By the definition of quasi-bipartite graphs, there are no edge between non-terminal vertices, so non-terminal vertices form separate stars with terminals, and therefore contribute to terminal min-cuts independently. For example, in a star centered at with edges connecting to terminal , respectively. The profile of vertex only depends on the weights of the edges : for the terminal partition ,
This gives us some power to reveal properties of profiles in quasi-bipartite graphs. For example, if we consider subsets being , then cannot lie on the side for all these terminal min-cuts. Since otherwise, letting , we get , , , and , a contradiction. This means that there are some “configurations” in the family of terminal subsets that are simply not realizable by any vertex profiles in quasi-bipartite graphs. We implement this idea through the notion of VC-dimension, realizing “configurations” by “set systems” and “not realizable” by “non-shatterable”, and obtain a bound of on the number of profiles in quasi-bipartite graphs.
For quality- cut sparsifiers, since we allow a small multiplicative error in accuracy, we are not restricted to contracting vertices with the same profile, but are allowed to moderately manipulate vertex profiles so as to reduce their number. We implement this idea by “projections onto -size stars”. On the one hand, consider for example a full star centered at (that is, a star containing edges for all ) with uniform edge weights, and a subset with , so lies on the side of . If we uniformly at random sample edges from it and obtain a “mimicking substar” , then by central limit theorem, with high probability contains at most edges to and at least edges to . Therefore, even if fails in mimicking the behavior of the full star on the cut , in that it mistakenly selects more edges to than to and therefore place on the side of rather than the side, it only causes an error of in the min-cut size, which is allowed.
On the other hand, we have shown in the exact case that the number of profiles for stars on a fixed -size terminal set is (replacing with in the bound). Since the number of -size terminal subsets is , we can bound the total number of profiles produced by -size starts by , obtaining a size bound of for quality- contraction-based cut sparsifiers for quasi-bipartite graphs.
Lower bounds for quasi-bipartite graphs
As shown in [10, 9], contraction-based sparsifiers are closely related to the Steiner node version of the classic -Extension problem [23]. Specifically, [10] showed that the best quality achievable by contraction-based flow sparsifiers is bounded by the integrality gap of the semi-metric LP relaxation. For cut sparsifiers, we observe that the best achievable quality is controlled by an even more restricted case of the -Extension with Steiner Nodes problem, where the underlying graph is a boolean hypercube. We focus on this special case, construct a hard hypercube-instance which is also a quasi-bipartite graph, and prove a size lower bound for its -approximation, leading to a same size lower bound for quality- contraction-based cut sparsifiers for quasi-bipartite graphs.
Concurrent Work
Independent of work, Das, Kumar, and Vaz, showed in their work [12] that quasi-bipartite graphs admit exact non-contraction-based cut sparsifiers of size and exact contraction-based cut sparsifiers of size . Our Theorem 2 gives a size bound for exact contraction-based cut sparsifiers, which is slightly stronger than their bound, and slightly weaker than their bound. They also have some results on flow sparsifiers. For example, quasi-bipartite graphs admit exact flow sparsifiers of size , and treewidth- graphs admit quality- flow sparsifiers of size .
1.3 Related Work
Edge sparsifiers
After Karger’s result [21] on cut-preserving edge sparsifiers, there are other work using sampling-based approaches. Benzcur and Karger [3] sampled edges based on inverse edge-strengths, and obtained a sparsifier of edges. Fung and Harvey [14] sampled edges according to their inverse edge-connectivity, and also obtained the bound of . Spielman and Srivastava [36] sampled edges based on their inverse effective-resistance to obtain a spectral sparsifier (a generalization of cut sparsifiers) with size . This bound was later improved by Batson, Spielman, and Srivastava [2] to .
Other work on cut sparsifiers
There are some work on (i) constructing better cut sparsifiers for special families of graphs, for example trees [16] and planar graphs with all terminals lying on the same face [15], and graphs with bounded treewidth [1]; (ii) preserving terminal min-cut values up to some threshold value [4, 31]; and (iii) dynamic cut/flow sparsifiers and their utilization in dynamic graph algorithms [13, 7, 17].
Flow sparsifiers
Flow sparsifiers are highly correlated with cut sparsifiers. Given a graph and a set of terminals, a graph is a flow sparsifier of with respect to with quality , iff every -feasible multicommodity flow on can be routed in , and every -feasible multicommodity flow on can be routed in if the capacities of edges in are increased by factor . Flow sparsifiers are stronger than cut sparsifiers, in the sense that quality- flow sparsifiers are automatically quality- cut sparsifiers, but the other direction is not true in general.
When no Steiner nodes are allowed, Leighton and Moitra [30] showed the existence of quality- flow sparsifiers. On the lower bound side, the first quality lower bound in [30] is , and this was later improved to by Makarychev and Makarychev [32].
In the setting where Steiner nodes are allowed, Chuzhoy [11] showed -quality contraction-based flow sparsifiers with size exist, where is the total capacity of all edges incident to terminals (assuming that all edges have capacity at least ). On the lower bound side, Krauthgamer and Mosenzon [27] showed that there exist -terminal graphs whose quality- flow sparsifiers must have an arbitrarily large size (i.e., the size bound cannot depend only on and ). Chen and Tan [10] showed that there exists -terminal graphs whose quality- contraction-based flow sparsifiers must have an arbitrarily large size.
1.4 Organization
The rest of the paper is organized as follows. We start with some preliminaries and formal definitions in Section 2. We provide the construction of planar cut sparsifier in Section 3, proving Theorem 1. We then show the construction of contraction-based exact cut sparsifiers for quasi-bipartite graphs in Section 4, proving Theorem 2. We defer the proofs of all other results to the full version [8].
2 Preliminaries
By default, all logarithms are to the base of . All graphs are undirected and simple.
Let be an edge-weighted graph, where each edge has weight . In this paper, weights can be either representing capacities (in the context of cut values) or lengths (in the context of shortest-path distances). For a vertex , we denote by the degree of in . For a pair of vertices in , we use (or ) to denote the shortest-path distance between and in , viewing edge weights as lengths. We may omit the subscript in the above notations when the graph is clear from the context.
Cut sparsifiers, contraction-based sparsifiers
Let be a graph and let be a subset of its vertices called terminals. Let be a graph with . We say that is a cut sparsifier of with respect to with quality , iff for any partition of into two non-empty subsets ,
We will use the following observation, which is immediate from the definition of cut sparsifiers.
Observation 5.
If is a quality- cut sparsifier of , and is a quality- cut sparsifier of , then is a quality- cut sparsifier of .
We say that a graph is a contraction-based sparsifier of with respect to , iff there exists a partition of vertices in into subsets where different terminals in lie in different subsets in , and is obtained from by contracting, for each , vertices in into a supernode , keeping parallel edges and discarding self-loops.
3 Proof of Theorem 1
In this section we provide the proof of Theorem 1. We will use a similar algorithmic framework as [5], by first considering the case where all terminals lie on the boundary of one face and then generalizing the arguments to the -face case and eventually to the general case.
Let be planar graphs with . Let be the set of faces in the planar drawing of that contain all terminals, and we define similarly for . We say instances are aligned, iff there is a one-to-one correspondence between sets and , such that for each face , the set of terminals in lying on is exactly the set of terminals in lying on , its corresponding face in , and the circular ordering in which these terminals appear on and are also identical. We say is a -face instance. Throughout this section, all the cut sparsifiers that we will ever construct for the input instance or any subinstance generated from it are aligned.
3.1 Preparation: removing separator terminals, and dual graphs
We start with the following divide and conquer lemma, whose proof is deferred to the full version of the paper.
Lemma 6.
Let be a planar instance and let be a collection of subgraphs of such that the edge sets partition . For each graph , we denote by the set that contains all vertices in and all vertices of that appear in some other graph in . If for each we are given a quality- aligned cut sparsifier , then we can efficiently obtain a quality- planar cut sparsifier of with .
We say a vertex is a separator iff is disconnected. Denote its connected components by . For each , let be the subgraph of induced by . We say graphs are obtained by splitting at . We use the following lemma from [5].
Claim 7 (Claim 4.3 in [5]).
Let be an instance. Let be the set of separators in . Let be the set of graphs obtained by splitting at all vertices in (that is, we first split at a vertex in , and then repeatedly split each of the obtained graph at one of its separator terminal, until no resulting graph contains any separator terminal). Then .
With Lemma 6, we will assume that no terminal in is a separator in , and so if we go around the boundary of a face in , we will visit each terminal that lies on this face exactly once. This is since we can split at all its separator terminals, compute quality- cut sparsifiers for them separately, and then combine them in the way of Lemma 6, paying only an factor in the total size, as guaranteed by Claim 7.
Dual graphs
Cuts in planar graphs are cycles in their dual graphs. We will exploit this property in a similar way as [29] and transform the cut-preserving tasks to distance-preserving tasks. For technical reasons, in order to handle graphs with terminals, our definition of dual graphs are slightly different from the standard planar dual graphs.
Let be the input instance and let be the faces that contains all terminals. Assume each face is a simple cycle. For each , add an auxiliary vertex , and connect it to every terminal via a new edge, such that these edges are drawn in an internally disjoint way within face , so that they separates face into subfaces, which we call special subfaces. Then we take the standard planar dual of the modified graph. Here each special face correspond to a node, which we call dual terminals. We then remove all edges in the dual graph connecting a pair of dual terminals. We denote the resulting graph by , and denote by the set of dual terminals. See Figure 1 for an illustration. Note that when graph does not have the property that each face is a simple cycle, as long as we are guaranteed that no terminal is a separator, we can still define dual graphs similarly. It is also easy to verify that the dual of the dual graph is the original graph itself. Sometimes we say that we reverse to obtain . Finally, as both and are planar graphs, and each non-terminal vertex in corresponds to a face in , the number of vertices in and are within factor from each other.
Observation 8.
is a -face instance iff is a -face instance.
We denote by the faces in that contain all dual terminals. It is easy to see that there exists a natural one-to-one correspondence between and .
3.2 Warm-up: the one-face case
In this subsection we prove Theorem 1 for the special case where all terminals lie on the boundary of the outer face in the planar embedding of .
Lemma 9.
Let be a one-face instance. Then for any partition of the terminals into non-empty subsets, for any min-cut in separating from , the corresponding edge set in the dual graph is the union of several edge-disjoint shortest paths connecting dual terminals.
Proof.
For every non-terminal vertex in , we say that it is a -node iff in graph , lies in the same connected component with some terminal in , and we define -nodes similarly.
Observation 10.
Every non-terminal in is either a -node or a -node, but not both, and every edge in connects a -node to a -node.
Denote , where the terminals are indexed according to the order that they appear on the boundary of the outer face. An interval is a subsequence , such that all terminals lies in the same connected component in that does not contain . We say that an interval is a -interval (-interval, resp.) if all its terminals lie in (, resp.).
Observation 11.
There is an interval , such that in , is separated from .
Consider an interval and let be the connected component in that contains . Assume without loss of generality that . Let be the edges in with exactly one endpoint in , so clearly .
Claim 12.
is the min-cut in separating from .
Claim 12 implies that, in the dual graph , the dual edges of edges in form a shortest path connecting a pair of terminals in . In other words, we have managed to extract part of the cut that is a shortest path in . We now recursively extract other parts using the following claim from the rest of .
Claim 13.
is a min-cut in separating from .
According to Claim 13, we are able to repeatedly extract subsets of edges in that correspond to shortest paths in , using Observation 11 and Claim 12, until becomes empty. This completes the proof of Lemma 9.
We are now ready to prove Theorem 1 for one-face instances using Theorem 1. We first construct the dual graph , and use the result in [5] to construct a quality- planar distance emulator with size , and then reverse it to get . From our definition of dual graphs and their reverse, contains all terminals and . It remains to show that is a quality- cut sparsifier for .
Let be a partition of . On the one hand, the min-cut in separating from consists of several edge-disjoint dual terminal shortest paths in , and as is a aligned distance emulator for , we can find, for each such dual terminal shortest path in , a shortest path in connecting its corresponding dual terminals, with at most times the length. By taking the union of the edges in all these paths in (note however that these paths are not necessarily edge-disjoint in ), we obtain an edge set in separating from whose value is at most times the value of . On the other hand, we apply the same analysis, starting with a min-cut in separating from . As is also a aligned distance emulator for , we can derive similarly that .
3.3 The -face case
In this subsection we prove the following lemma.
Lemma 14.
There exists a universal constant , such that for any real number , every -face instance has an aligned -face instance as its quality- cut sparsifier, with .
Terminal-separating min-cuts in dual-terminal shortest paths in our graph . Therefore, from now on we focus on preserving dual-terminal shortest paths in . Recall that is the collection of faces in that contains all dual terminals. The following notion is central in our algorithm.
Pattern-shortest paths, pattern distances, and pattern emulators
For a pair of dual terminals in graph , there are more than one way for them to be connected by a path, depending on how the path goes around other faces in , called patterns, A rigorous way of defining patterns was given in [29], which we describe below.
Fix a point in the plane. Let be a closed curve (not necessarily simple). A vertex is said to be inside iff any simple curve connecting to crosses an odd number of times, otherwise it is said to be outside . For a pair of dual terminals in , we denote by the shortest path connecting them in . For every face , we place a point inside its interior. Consider now a path in connecting . Note that the union of and is a closed curve. Now the pattern of is defined to be a -dimensional vector , where iff is inside the closed curve formed by the union of and and iff is outside.
Observation 15.
Between every pair of terminals there are different patterns.
Let be simple paths with same endpoints, the above definition of pattern implies that paths have the same pattern iff all points lie outside the closed curve . We will also consider paths with one common endpoint . Let be a path such that the other-endpoints of and both lie on . In this case we say that paths have the same pattern with respect to , iff all points lie ourside the closed curve formed by the union of , , and the subpath of between the other-endpoint of and the other-endpoint of .
For a pattern , the - -shortest path is defined to be the shortest path among all - paths with pattern . Its length is defined to be the -distance between , which we denote by . Let be aligned instances. We say that is a quality- pattern emulator of , iff for every pair of terminals and every pattern , the -distance between in is within factor from the -distance between in . We use the following result from [29].
Theorem 16 (Adaptation of Theorem 4.6 in [29]).
Let be aligned instances. If the dual instance is a quality- pattern emulator of the dual instance , then is a quality- cut sparsifier of .
3.4 Constructing pattern emulators
We will now prove the following lemma, which, combined with Theorem 16, implies Lemma 14.
Lemma 17.
There exists a universal constant , such that for any , every -face instance admits a quality- pattern emulator with .
We prove Lemma 17 by induction on . The base case where has been proved in Section 3.2. Assume that we are given a -face instance . We will convert it into an -face instance and apply the inductive hypothesis. Throughout this subsection, we use the parameters and .
We first pick a pair of terminals that lie on distinct faces, denoted by , respectively, and compute the shortest path in connecting to , such that does not contain any terminal as inner vertices. Denote . Then we compute a set of vertices on that we call portals.
Portals on
We use the notion of -covers defined in [25, 37]. Let be a shortest path and let be a vertex that does not lie in . An -cover of in is a set of vertices, such that for any vertex , there exists some , such that It has been shown [25, 37] that for every , shortest path and vertex , there exists an -cover of in of size . As we want to construct pattern emulators, we will need to modify the definition of -covers into a “pattern version” accordingly, as follows.
Let be an -face instance, be a shortest path in that does not intersect any face internally, and be a vertex that does not lie in . Let be a path connecting to some vertex in , and let be its pattern. A -respecting -cover of in is a set of vertices, such that for any vertex , there exists some , such that the shortest - path with the same pattern as , concatenated with the - subpath of , is within factor in length with the shortest - path with the same pattern as . In other words (slightly abusing the notations),
We use the following lemma, whose proof is similar to the previous result of -cover and is deferred to the full version of the paper.
Lemma 18.
For any planar instance , shortest path in , vertex , and pattern , there exists a -respecting -cover of in of size .
We now define a set of vertices on as follows. For each terminal and for each pattern , let be the pattern-respecting -cover of in of size given by Lemma 18. We then let set . From Observation 15 and Lemma 18, .
We then slice the graph open along the path connecting faces . Specifically, we duplicate path into two copies and place them closely at two sides (which we call -side and -side, respectively) of its original image, such that the thin strip between them connect faces into a single face . All vertices on into their copies ( lies on and lies on ), including the terminals that now have copies and . All weights on edges remain the same. It is easy to verify that the obtained graph, which we denote by , is a -face instance. Let be the set that contains all copies of terminals and portals in . We then construct a quality- pattern emulator of with respect to , and then glue, for each portal , its copies back to their original vertex . The resulting graph is denoted by and is returned as the pattern emulator for . For a complete description of the cut and glue operations, please refer to Appendix B of [5]. See Figure 2 for an illustration.
It remains to complete the proof by induction. We first bound the size of graph .
Size of
Since graph is obtained from graph by gluing the portals on paths back to their original vertices, , so it suffices to bound the number of vertices in . Recall that is the set that contains all portals and terminals in , then
where we have used the previously set parameters and , and the fact that , as is large enough.
Quality of
Recall that we sliced open along to obtain , computed a pattern emulator for , and then glue back to obtain . For the purpose of analysis, image that we have also glued back to obtain . The analysis is complete by the following claims.
Claim 19.
is a quality- pattern emulator for .
Proof.
Consider any pair of terminals. Let be some pattern shortest path from to in . If contains some portal in , then we let be the portals appearing on in this order. Decompose into subpaths: between and ; for each , between and , and between and . Assume that for each , the path starts on the -side of the glued paths and ends on the -side of the glued paths, where . Define similarly for terminals . As portals are considered as terminals in instance and is a quality- pattern emulator for with respect to them, there exist in
-
a path connecting the copy of to the copy of with the same pattern as in , such that ;
-
for each , a path connecting the copy of to the copy of with the same pattern as in , such that ;
-
a path connecting the copy of to the copy of with the same pattern as in , such that .
For each , as the region surrounded by and contains no other face, and is in the same pattern with , the region surrounded by and contains no other face. Therefore, if we concatenate all these paths in , we obtain a path connecting to in with the same pattern as . Moreover,
The arguments for showing that for any pattern-shortest path from to in , there exists a path in with that has the same pattern with is symmetric. Altogether, the proof is complete.
Claim 20.
is a quality- pattern emulator for .
Proof.
Consider any pair of terminals. Let be some pattern shortest path from to in . If path is vertex-disjoint from , then the same path exists in , and it is easy to verify that it has the same pattern as in . We assume from now on that intersects , and assume without loss of generality that intersects at a vertex and leaves from the -side. Let be the pattern of the subpath of between and .
From the property of pattern-respecting -cover, there exists a vertex , such that
Consider the path in formed by the concatenation of (i) the -pattern shortest path connecting to ; (ii) the subpath of connecting to ; and (iii) the copy of the subpath of between and . From the inequality above, such a path has total length at most and has the same pattern with .
On the other hand, it is easy to observe that between every pair of terminals, any pattern shortest path only has greater length in . Altogether, the proof is complete.
3.5 Completing the proof of Theorem 1
In this section, we complete the proof of Theorem 1 using the results in previous subsections.
Structured -divisions
Let be a planar graph on vertices and let be its terminals. For any integer , a structured -division of is a collection of subgraphs of , such that
-
;
-
the edge sets partitions ;
-
for each , , , and if we call vertices in that appear in some other graph in its boundary vertices, then
-
–
the number of boundary vertices is ;
-
–
in the planar drawing of induced by the planar drawing of , all boundary vertices lie on faces.
-
–
We use the following lemma in [5] for computing structured -divisions.
Lemma 21 (Lemma 5.5 in [5]).
Given any planar instance and any integer , we can efficiently compute a structured -division.
We now prove Theorem 1. The algorithm is simply: compute a structured -division of the input graph , construct cut sparsifiers for graphs using Lemma 14, and then glue them together to obtain a cut sparsifier for . It turns out that we need to apply the algorithm several times in order to obtain a near-linear size cut sparsifier, each time with different parameters .
Lemma 22.
Given any planar instance and any , we can efficiently compute a quality- planar cut sparsifier with size , for some universal constant .
Proof.
Denote and . Let be a constant greater than the square of the product of the constant in Lemma 14 and all hidden constants in the definition of structured -divisions.
We first compute a structured -division for with using the algorithm from Lemma 21, and obtain a collection of subgraphs of , each being a -face instance. We then apply the algorithm from Lemma 14 to each and obtain a -cut sparsifier , and finally glue all of them together to obtain . From Lemma 14 (here note that and ),
From Lemma 6, the graph is a quality- planar cut sparsifier. This completes the proof.
We now complete the proof of Theorem 1 using Lemma 22. We start by applying the algorithm in [29] to obtain an exact cut sparsifier of with . Then the algorithm consists of two phases.
In the first phase, we set parameters and , and sequentially for each , we apply algorithm Lemma 22 to graph to obtain graph . We show that (applying the next lemma with ).
Claim 23.
For each , .
Proof.
We prove by induction on . The claim is true for . From Lemma 22,
In the second phase, we set parameters and , and sequentially for each , we apply algorithm Lemma 22 to graph to obtain graph .
Claim 24.
For each , .
Proof.
We prove by induction on . The claim is true for . From Lemma 22,
Applying , we get that (as is a universal constant).
On the other hand, from Observation 5, we get that instance is a cut sparsifier of instance with quality . The proof is complete.
4 Proof of Theorem 2
In this section, we provide the proof of Theorem 2.
We first prove the upper bound that every quasi-bipartite graph with terminals admits an exact contraction-based cut sparsifier on vertices. Let be a quasi-bipartite graph with a set of terminals. Throughout, we will assume that for every , there is a unique min-cut in separating from . This can be achieved by slightly perturbing the edge weights .
We use the definition of profiles studied in previous works [18, 24]. For a vertex , its profile is defined to be a -dimensional vector whose coordinates are indexed by proper subsets of . Specifically, for every , iff lies on the side of in the min-cut in , otherwise . Let be the collection of all distinct profiles of the vertices in . The following result was proved in [18].
Lemma 25.
Every graph admits a quality- contraction-based cut sparsifier of size .
Therefore, to prove Theorem 2, it is sufficient to prove the following lemma.
Lemma 26.
For any quasi-bipartite graph with terminals, .
To prove Lemma 26, we will show that , when viewed as a family of sets (instead of vectors), has bounded VC-dimension. Specifically, consider the ground set . Now each profile naturally defines a subset of the ground set : . Abusing the notation, we also write . We will show that the set family on the ground set has VC-dimension . Then from Sauer-Shelah lemma [35, 34],
Shattering sets and VC dimension
Let be a set family on the ground set . Let be a subset of . We say that the family shatters , iff for every subset , there exists some set , such that . The VC-dimension of the family is the maximum size of a set shattered by .
The remainder of this section is dedicated to the proof of the following claim.
Claim 27.
The VC-dimension of on the ground set is .
Proof.
For every subset , we denote by the total weight of all the edges between and the terminals in . Since is a quasi-bipartite graph, for every , the value of only depends on and . Specifically, for every , iff .
Recall that the ground set contains all proper subsets of as its elements. Here we consider the subsets of . We say that two subsets are similar, iff
-
are disjoint subsets of ;
-
; and
-
for every terminal , .
The proof of Claim 27 is completed by the following two observations.
Observation 28.
Let be a similar pair. Then any subset that contains both and is not shattered by .
Proof.
As and are similar, for every non-terminal , and must hold. If there exists a set with , then by definition, for all and for all . However, this means that
a contradiction.
Observation 29.
Every subset with admits a similar pair .
Proof.
Let be a subset of with . First, there are size- subsets of . Second, for such each such subset , if we define the -dimensional vector as , then there are a total of possible vectors .
This impies that, when , , and so there must exist a pair of distinct subsets of , such that and the vectors are identical. It is then easy to verify that are a similar pair, both contained in .
We now prove the lower bound that for every integer , there exists a quasi-bipartite graph with terminals whose exact contraction-based cut sparsifier must contain vertices.
We construct a graph as follows. The terminal set contains vertices and is denoted by . For every subset with even size, we add a new vertex and connect it to every vertex of . Every edge is given a capacity that is chosen uniformly at random from the interval . In this way we can guarantee that with high probability, sets of edges of have the same total weight iff . And clearly, is a quasi-bipartite graph with .
The proof of the size lower bound is completed by the following claims.
Claim 30.
Every pair of distinct vertices have different profiles.
Proof.
Consider a pair of vertices in . As is a quasi-bipartite graph, the profile of only depends on incident edges of . We will show that there always exists a subset of terminals, such that lie on different sides of the min-cut in .
Recall that are distinct subsets of with even size. Assume w.l.o.g. that . If is even, then we let contains exactly half of the elements in . Now if lies on the side of the min-cut in , then we are done, as lies on the size of the min-cut, then we are done we add to . Otherwise, we add all elements in , ensuring that lies on the side of the min-cut while lies on the side. Similarly, if is even, then we let contains elements in , and we can adjust similarly (by optionally adding to it all elements of ) to ensure that lie on different sides of the min-cut in .
Claim 31.
No pair of vertices can be contracted in an exact contraction-based cut sparsifier of .
Proof.
Assume for contradiction that vertices are contracted. We have shown in Claim 30 that there exists a subset of , such that vertices lie on different sides of the min-cut in . Therefore, if are merged in the sparsifier, then the set of edges constituting the min-cut in the cut sparsifier must be different from the set of edges constituting the min-cut in , and therefore they must have different total weight (meaning that cannot be an exact cut sparsifier for ), since we have assumed that sets of edges of have the same total weight iff .
References
- [1] Alexandr Andoni, Anupam Gupta, and Robert Krauthgamer. Towards (1+)-approximate flow sparsifiers. In Proceedings of the twenty-fifth annual ACM-SIAM symposium on Discrete algorithms, pages 279–293. SIAM, 2014.
- [2] Joshua Batson, Daniel A Spielman, and Nikhil Srivastava. Twice-ramanujan sparsifiers. SIAM Journal on Computing, 41(6):1704–1721, 2012. doi:10.1137/090772873.
- [3] András A Benczúr. Approximate s-t min-cuts in time. In Proc. 28th ACM Symposium on Theory of Computing, 1996, 1996.
- [4] Parinya Chalermsook, Syamantak Das, Yunbum Kook, Bundit Laekhanukit, Yang P Liu, Richard Peng, Mark Sellke, and Daniel Vaz. Vertex sparsification for edge connectivity. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1206–1225. SIAM, 2021. doi:10.1137/1.9781611976465.74.
- [5] Hsien-Chih Chang, Robert Krauthgamer, and Zihan Tan. Near-linear -emulators for planar graphs. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, 2022.
- [6] Moses Charikar, Tom Leighton, Shi Li, and Ankur Moitra. Vertex sparsifiers and abstract rounding algorithms. In Foundations of Computer Science (FOCS), 2010 51st Annual IEEE Symposium on, pages 265–274. IEEE, 2010. doi:10.1109/FOCS.2010.32.
- [7] Li Chen, Gramoz Goranci, Monika Henzinger, Richard Peng, and Thatchaphol Saranurak. Fast dynamic cuts, distances and effective resistances via vertex sparsifiers. In 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), pages 1135–1146. IEEE, 2020. doi:10.1109/FOCS46700.2020.00109.
- [8] Yu Chen and Zihan Tan. Cut-preserving vertex sparsifiers for planar and quasi-bipartite graphs. arXiv preprint arXiv:2407.10852, 2024. doi:10.48550/arXiv.2407.10852.
- [9] Yu Chen and Zihan Tan. Lower bounds on -extension with steiner nodes. arXiv preprint arXiv:2401.09585, 2024. doi:10.48550/arXiv.2401.09585.
- [10] Yu Chen and Zihan Tan. On (1+ eps)-approximate flow sparsifiers. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1568–1605. SIAM, 2024.
- [11] Julia Chuzhoy. On vertex sparsifiers with steiner nodes. In Proceedings of the forty-fourth annual ACM symposium on Theory of computing, pages 673–688, 2012. doi:10.1145/2213977.2214039.
- [12] Syamantak Das, Nikhil Kumar, and Daniel Vaz. Nearly-tight bounds for flow sparsifiers in quasi-bipartite graphs. arXiv preprint arXiv:2407.09433, 2024. doi:10.48550/arXiv.2407.09433.
- [13] David Durfee, Yu Gao, Gramoz Goranci, and Richard Peng. Fully dynamic spectral vertex sparsifiers and applications. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pages 914–925, 2019. doi:10.1145/3313276.3316379.
- [14] Wai Shing Fung and Nicholas JA Harvey. Graph sparsification by edge-connectivity and random spanning trees. arXiv preprint arXiv:1005.0265, 2010.
- [15] Gramoz Goranci, Monika Henzinger, and Pan Peng. Improved guarantees for vertex sparsification in planar graphs. arXiv preprint arXiv:1702.01136, 2017. arXiv:1702.01136.
- [16] Gramoz Goranci and Harald Räcke. Vertex sparsification in trees. In Approximation and Online Algorithms: 14th International Workshop, WAOA 2016, Aarhus, Denmark, August 25–26, 2016, Revised Selected Papers, pages 103–115. Springer, 2017. doi:10.1007/978-3-319-51741-4_9.
- [17] Gramoz Goranci, Harald Räcke, Thatchaphol Saranurak, and Zihan Tan. The expander hierarchy and its applications to dynamic graph algorithms. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2212–2228. SIAM, 2021. doi:10.1137/1.9781611976465.132.
- [18] Torben Hagerup, Jyrki Katajainen, Naomi Nishimura, and Prabhakar Ragde. Characterizing multiterminal flow networks and computing flows in networks of small treewidth. Journal of Computer and System Sciences, 57(3):366–375, 1998. doi:10.1006/JCSS.1998.1592.
- [19] Arun Jambulapati, James R Lee, Yang P Liu, and Aaron Sidford. Sparsifying sums of norms. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 1953–1962. IEEE, 2023. doi:10.1109/FOCS57990.2023.00119.
- [20] David R Karger. Global min-cuts in rnc, and other ramifications of a simple min-cut algorithm. In SODA, volume 93, pages 21–30, 1993. URL: http://dl.acm.org/citation.cfm?id=313559.313605.
- [21] David R Karger. Random sampling in cut, flow, and network design problems. Mathematics of Operations Research, 24(2):383–413, 1999. doi:10.1287/MOOR.24.2.383.
- [22] Nikolai Karpov, Marcin Pilipczuk, and Anna Zych-Pawlewicz. An exponential lower bound for cut sparsifiers in planar graphs. arXiv preprint arXiv:1706.06086, 2017. arXiv:1706.06086.
- [23] Alexander V Karzanov. Minimum 0-extensions of graph metrics. European Journal of Combinatorics, 19(1):71–101, 1998. doi:10.1006/EUJC.1997.0154.
- [24] Arindam Khan and Prasad Raghavendra. On mimicking networks representing minimum terminal cuts. Information Processing Letters, 114(7):365–371, 2014. doi:10.1016/J.IPL.2014.02.011.
- [25] P. N. Klein and S. Subramanian. A fully dynamic approximation scheme for shortest paths in planar graphs. Algorithmica, 22(3):235–249, 1998. doi:10.1007/PL00009223.
- [26] Stefan Kratsch and Magnus Wahlström. Representative sets and irrelevant vertices: New tools for kernelization. In 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science, pages 450–459. IEEE, 2012. doi:10.1109/FOCS.2012.46.
- [27] Robert Krauthgamer and Ron Mosenzon. Exact flow sparsification requires unbounded size. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2354–2367. SIAM, 2023. doi:10.1137/1.9781611977554.CH91.
- [28] Robert Krauthgamer and Inbal Rika. Mimicking networks and succinct representations of terminal cuts. In Proceedings of the twenty-fourth annual ACM-SIAM symposium on Discrete algorithms, pages 1789–1799. SIAM, 2013. doi:10.1137/1.9781611973105.128.
- [29] Robert Krauthgamer and Inbal Rika. Refined vertex sparsifiers of planar graphs. arXiv preprint arXiv:1702.05951, 2017. arXiv:1702.05951.
- [30] F Thomson Leighton and Ankur Moitra. Extensions and limits to vertex sparsification. In Proceedings of the forty-second ACM symposium on Theory of computing, pages 47–56. ACM, 2010.
- [31] Yang P Liu. Vertex sparsification for edge connectivity in polynomial time. arXiv preprint arXiv:2011.15101, 2020. arXiv:2011.15101.
- [32] Konstantin Makarychev and Yury Makarychev. Metric extension operators, vertex sparsifiers and lipschitz extendability. In Foundations of Computer Science (FOCS), 2010 51st Annual IEEE Symposium on, pages 255–264. IEEE, 2010. doi:10.1109/FOCS.2010.31.
- [33] Ankur Moitra. Approximation algorithms for multicommodity-type problems with guarantees independent of the graph size. In Foundations of Computer Science, 2009. FOCS’09. 50th Annual IEEE Symposium on, pages 3–12. IEEE, 2009. doi:10.1109/FOCS.2009.28.
- [34] Norbert Sauer. On the density of families of sets. Journal of Combinatorial Theory, Series A, 13(1):145–147, 1972. doi:10.1016/0097-3165(72)90019-2.
- [35] Saharon Shelah. A combinatorial problem; stability and order for models and theories in infinitary languages. Pacific Journal of Mathematics, 41(1):247–261, 1972.
- [36] Daniel A Spielman and Nikhil Srivastava. Graph sparsification by effective resistances. SIAM Journal on Computing, 40(6):1913–1926, 2011. doi:10.1137/080734029.
- [37] Mikkel Thorup. Compact oracles for reachability and approximate distances in planar digraphs. Journal of the ACM (JACM), 51(6):993–1024, 2004. doi:10.1145/1039488.1039493.