How this calculation works
Find a minimum unit edge cut between two vertices in a simple undirected graph, together with edge-disjoint paths of matching cardinality. Removing the returned cut separates the selected vertices. The path witnesses certify why fewer edges cannot suffice, connecting the calculation to the edge version of Menger’s theorem rather than merely returning an unexplained cut size.
Maximum edge-disjoint s–t paths = minimum number of edges separating s and t.A worked example
The diamond has routes 0–1–3 and 0–2–3 with no shared edges. Removing the two edges incident to vertex zero separates the terminals. The two route witnesses and the size-two cut certify edge connectivity two.
Good to know
Simple undirected graph ≤20 vertices, distinct terminals, unit edge capacities. Paths may share internal vertices but not edges. Adjacent terminals are allowed. No parallel edges, weighted capacity cuts or global all-terminal connectivity.
Edges rather than vertices
The cut removes connections, not the vertices at their ends. Different paths may share intermediate vertices while remaining edge-disjoint.
That distinction matters for network resilience: several routes through one junction can survive edge failures yet all fail when that junction is removed. Use an edge-connectivity calculation only when edges represent the failure units of interest. Unit capacities also mean every edge counts equally, regardless of distance, cost or physical bandwidth.
Cuts edges rather than vertices; endpoint and shared-vertex rules differ from internally vertex-disjoint paths. The Graph minor calculator with deletion and contraction certificate offers a complementary calculation under its own stated assumptions.
Reading the residual search
A flow augmentation finds another available connection from the source to the destination, while reverse residual capacity allows earlier choices to be rearranged. The final set reachable from the source in the residual graph identifies a separating partition.
Original edges crossing that partition form a minimum cut. Reverse residual edges are bookkeeping devices and are not additional physical links. The graph is undirected, so an entered edge supplies the same connection in either travel direction.
Worked example and mathematical rule
The diamond has routes 0–1–3 and 0–2–3 with no shared edges. Removing the two edges incident to vertex zero separates the terminals. The two route witnesses and the size-two cut certify edge connectivity two.
Maximum edge-disjoint s–t paths = minimum number of edges separating s and t.
Why the witnesses certify optimality
Every source-to-destination path must cross every separating cut. If k paths share no edges, a separating edge removal must hit each path with a different edge, requiring at least k removals.
The returned cut uses exactly that many edges, meeting the lower bound. This matched pair is a verifiable optimality certificate. Check that each witness follows original edges, starts and ends at the requested vertices and does not reuse an edge appearing in another witness.
Disconnected graphs and direct links
If the selected vertices are already disconnected, the minimum cut has size zero and no path witnesses are needed. A direct edge between them contributes a one-edge path and must be removed by every separating cut.
Other graph components do not affect this pairwise question. The source and destination must be different vertices. Repeated input edges are not a way to model parallel physical links in this simple-graph interface; a multigraph requires an explicit representation of separate edge identities.
Local connectivity is not global connectivity
The result applies to the selected pair. A graph can have several disjoint routes between those vertices while another vertex hangs from a single bridge.
Global edge connectivity minimizes over all vertex partitions and is a different question. Likewise, path lengths are not minimized here: the witnesses demonstrate disjointness and connectivity rather than shortest travel time. A minimum cut may have several equally small alternatives, and the tool returns one determined by its search order.
Using the result responsibly
Label vertices with a separate legend when translating a real network into numeric indices. Check whether supposedly independent edges share a cable duct, power source or geographic hazard; graph edge-disjointness does not capture correlated failures.
For a classroom audit, remove the returned cut and independently search for a path, then verify the witness count. Reordering edge input can change which optimal certificate appears without changing its minimum cardinality. Treat that variation as nonuniqueness rather than instability of the optimal value.
A few questions, answered
Can witness paths share a vertex?
Yes. The requirement is edge-disjointness, not vertex-disjointness.
Does this use weighted capacities?
No. Every edge has unit capacity in a simple undirected graph.
Why can the answer be zero?
The chosen vertices may already lie in different connected components.
Is the cut unique?
Not necessarily. Several edge sets can have the same minimum size.