Minimum vertex separators by vertex splitting #
Given a simple graph G on Fin n and three vertex sets Z, A and B (Boolean vectors),
Cslib.Algorithms.Lean.MaxFlow.minSeparator computes a set X of vertices outside Z of minimum
size such that Z ∪ X separates A from B (SimpleGraph.IsSeparator). The vertices of Z are
forbidden in X, but walks may not pass through them either: X is a minimum separator of
A \ Z from B \ Z in G - Z. For the checked Word-RAM running-time bound (O(n ^ 5)
instructions), see CslibFrontier.Algorithms.WordRAM.EdmondsKarp.
Construction #
The split network (Cslib.Algorithms.Lean.MaxFlow.vertexSplitNetwork) has a source, a sink,
and an in-copy and an out-copy of every vertex (Cslib.Algorithms.Lean.MaxFlow.SplitNode), with
capacities (Cslib.Algorithms.Lean.MaxFlow.vertexSplitCap)
n + 1from the source to the in-copy of each vertex ofA;n + 1from the out-copy of each vertex ofBto the sink;1from the in-copy to the out-copy of each vertex outsideZ;n + 1from the out-copy ofuto the in-copy ofvfor each edgeG.Adj u v.
This is the standard vertex-splitting construction. Any minimum cut S of this network yields a
minimum separator and side certificate via Cslib.Algorithms.Lean.MaxFlow.separatorOfCut: the
separator is the set of vertices v ∉ Z whose in-copy lies in S and whose out-copy does not,
and side v records whether the out-copy of v lies in S. minSeparator instantiates
separatorOfCut with the minimum cut computed by Cslib.Algorithms.Lean.MaxFlow.edmondsKarpDense.
Main definitions #
Cslib.Algorithms.Lean.MaxFlow.SplitNode,Cslib.Algorithms.Lean.MaxFlow.vertexSplitCap,Cslib.Algorithms.Lean.MaxFlow.vertexSplitNetwork: the split network.Cslib.Algorithms.Lean.MaxFlow.SeparatorOutput: a separator with its side labelling.Cslib.Algorithms.Lean.MaxFlow.separatorOfCut: extract a separator and side labelling from any cut of the split network.Cslib.Algorithms.Lean.MaxFlow.minSeparator: the pure minimum vertex separator viaedmondsKarpDense.
Main results #
Cslib.Algorithms.Lean.MaxFlow.separatorOfCut_isSeparator,separatorOfCut_length_sep_le,separatorOfCut_length_sep_eq_cutCapacity: separation, minimality, and cardinality for any minimum cut ofvertexSplitNetwork.Cslib.Algorithms.Lean.MaxFlow.minSeparator_isSeparator: the output separates.Cslib.Algorithms.Lean.MaxFlow.minSeparator_length_sep_le: the output is a minimum separator.Cslib.Algorithms.Lean.MaxFlow.minSeparator_nodup_sep,Cslib.Algorithms.Lean.MaxFlow.minSeparator_vget_eq_false_of_mem_sep: the output is a list of distinct vertices outsideZ.Cslib.Algorithms.Lean.MaxFlow.minSeparator_side_eq_of_adj,Cslib.Algorithms.Lean.MaxFlow.minSeparator_side_eq_true,Cslib.Algorithms.Lean.MaxFlow.minSeparator_side_eq_false: the side labelling certificate.
References #
Capacities of the split network: n + 1 from the source to the in-copies of A, from the
out-copies of B to the sink and from the out-copy of u to the in-copy of v for each edge
G.Adj u v; 1 from the in-copy to the out-copy of each vertex outside Z; 0 otherwise.
The split network of G for the vertex sets Z, A and B (vertexSplitCap).
The output of minSeparator.
The separator, without repetitions.
The side labelling:
trueon the vertices reached fromAinG - (Z ∪ sep).
A minimum set X of vertices outside Z such that Z ∪ X separates A from B, by a
minimum cut of the split network (edmondsKarpDense on Fin (2n + 2)).
Correctness #
For any minimum cut S, the side labelling is constant along edges of G - (Z ∪ sep).
For any minimum cut S, the side labelling is true on A \ (Z ∪ sep).
For any minimum cut S, the side labelling is false on B.
Separation for any minimum cut S: Z ∪ (separatorOfCut Z S).sep separates A from
B.
Minimality for any minimum cut S: if Z ∪ Y separates A from B, the extracted
separator has at most |Y| vertices.
For any minimum cut S, the extracted separator size equals the cut capacity.
The separator has no repetitions.
The separator avoids Z.
The side labelling is constant along the edges of G - (Z ∪ sep).
The side labelling is true on the vertices of A outside Z ∪ sep.
The side labelling is false on B.
Separation. Z ∪ sep separates A from B.
Minimality. If Z ∪ Y separates A from B, the separator has at most |Y| vertices.