How this calculation works
Find graph splits where crossing edges form a complete bipartite graph between boundary subsets, and recursively reconstruct with marker vertices. Modules require identical outside neighborhoods and are a different decomposition.
A split (A,B) has |A|,|B|≥2 and E(A,B)=A′×B′ for nonempty boundary sets A′⊆A, B′⊆B.A worked example
For path 0–1–2–3, the cut {0,1}|{2,3} is a split. The boundary sets are {1} and {2}; joining the two marker vertices reconstructs the middle edge.
Good to know
Connected simple undirected graph, 4–12 vertices. Enumerate bipartitions ≤2 million total work; deterministic valid split tree, without a canonical-minimum-tree claim in initial version.
Reference: Cunningham: Decomposition of Directed Graphs (opens in a new tab) ↗
Splits versus modules
A split divides the vertex set into two sides, each containing at least two vertices. The crossing edges must form one complete bipartite graph between the vertices that actually meet the opposite side.
Interior vertices on a side may have no crossing neighbors. This flexibility distinguishes a split from a module, where all vertices in the chosen set have the same adjacency to every outside vertex.
Compare this with the Graph modular decomposition calculator with strong modules. Find graph splits where crossing edges form a complete bipartite graph between boundary subsets, and recursively reconstruct with marker vertices. Modules require identical outside neighborhoods and are a different decomposition.
Boundary subsets and complete crossing edges
Find the boundary A′ by collecting vertices of A with at least one neighbor in B. Define B′ similarly. The cut is a split exactly when every pair in A′×B′ is an edge.
An absent crossing pair between two boundary vertices is a direct failure witness. The test uses original adjacency, not the shape of a drawing or the number of edges crossing a geometric line. For the default four-vertex path, a middle cut has two boundary vertices joined across the split by one edge. Adding a marker on each side preserves how those boundaries reconnect. When the paired markers are removed, joining every neighbor of one marker to every neighbor of the other recovers that original crossing edge. More general splits can have several boundary vertices on each side, but their crossing edges must form the entire boundary complete bipartite graph. A merely sparse cut with arbitrary missing boundary edges is not a split.
Marker-vertex composition
Replace side B by a marker joined to A′, and replace side A by a marker joined to B′. Each resulting bag retains the edges originally lying inside its own side.
To glue the bags, delete the paired markers and connect all their former neighbor pairs across the join. This marker composition recreates the complete bipartite crossing pattern recorded by the split.
Recursive decomposition convention
Apply the same operation recursively to bags that still admit a nontrivial split. Prime bags admit none; cliques and stars are useful degenerate bag types with many possible splits.
The first implementation may return a deterministic valid decomposition without choosing a canonical minimum bag tree. Different valid split orders can produce different intermediate markers while reconstructing the same input graph. The algorithm enumerates valid bipartitions, chooses a deterministic split and recursively works on the two marker-augmented pieces. A marker is a decomposition device rather than an original graph vertex. The output must retain which markers are paired and which original labels remain in each leaf. This is sufficient for recursive reconstruction, but does not claim the canonical reduced split decomposition or uniqueness of the chosen tree. The split count reports recursive decompositions actually chosen, not the number of every possible valid cut in the original graph.
A worked two-bag reconstruction
In the four-vertex path, choose A={0,1} and B={2,3}. The only crossing edge is 1–2, so A′={1} and B′={2}. Both marked bags are three-vertex paths.
Deleting the two markers and reconnecting their neighbor sets restores edge 1–2. The other two path edges never left their original bags, which makes this example easy to audit by hand.
Prime and degenerate bags
The diagram marks the boundary vertices before showing the two bags. Original labels and marker labels should remain visibly distinct, because a marker represents a join interface rather than an original vertex.
Reconstruction should compare the complete final adjacency matrix with the input. Matching vertex and edge counts alone would miss misplaced crossing edges and would not establish a correct decomposition certificate. Modules answer another question: their vertices have identical outside neighborhoods. A split can exist even when neither side is a module, because only its boundary subset participates in crossing edges. Verify both the complete crossing pattern and the absence of crossing edges at nonboundary vertices before treating a proposed partition as valid.
Noncanonical initial output and finite limits
A five-cycle has no nontrivial split, while complete graphs have many. These examples provide useful checks that the split test is not merely recognizing articulation points or looking for sparse cuts.
Enumeration limits apply to the total recursive work, including marker bags. If that work is exhausted, a partial decomposition is not evidence that every remaining bag is prime; the final classification remains unresolved.
A few questions, answered
Is this a split graph recognition tool?
No. A split graph has a clique/independent-set partition; split decomposition uses complete bipartite crossing boundaries.
How does a split differ from a module?
A module requires identical outside neighborhoods throughout the set. A split permits interior vertices outside its boundary.
What does a marker vertex represent?
It records the neighbor interface used when two bags are glued back together.
Is the initial decomposition canonical?
The initial result guarantees valid reconstruction, without a canonical-minimum-tree claim.