How this calculation works
Partition a small graph into the fewest planar edge layers and verify a planar embedding for each layer.
theta(G)=min k such that E(G) is a disjoint union of k planar spanning-subgraph edge sets.A worked example
K3,3 is nonplanar, so one layer is impossible. Put edges03,04,05,13,23 in one tree layer and14,15,24,25 in a four-cycle layer; its thickness is2.
Good to know
Simple graphs on2–6vertices and at most12edges. Enumerate planar edge subsets, then exact disjoint-cover dynamic programming; replay each layer embedding and verify an edge partition. Define edgeless thickness0, nonempty planar thickness1. Reject unresolved planarity or cover search; no geometric-thickness claim.
Reference: Halton: On the thickness of graphs of given degree (opens in a new tab) ↗
Thickness counts planar layers
Graph thickness asks how many planar spanning subgraphs are needed to cover all edges of a graph. Because planarity is preserved when edges are removed, a cover can be made into a disjoint edge partition without increasing the layer count. The vertices can be retained in every layer, including vertices isolated within a particular layer.
Each layer may have a separate planar embedding. The problem does not force common positions for the vertices across all drawings, and it does not require straight edges in one shared layout. Those extra requirements define different geometric variants. Here, the central result is an edge assignment and a planar embedding certificate for every nonempty layer.
Compare this with the Graph planarity calculator with embedding certificate. Partition all edges into the fewest planar spanning layers, each with its own embedding certificate. A single-graph planarity verdict or an orientable genus minimizes a different object; layer drawings do not have to share vertex positions.
Enter the graph rather than a sketch
Use a small simple undirected graph with explicit zero-based vertex labels and endpoint pairs. Crossing lines in an input illustration are not data because no coordinates are supplied. Conversely, omitting an edge changes the graph and can lower the number of layers. Reversed repeated pairs and loops should be corrected before the planar decomposition is considered.
The supported size bounds keep the exact search finite enough for a calculator. The algorithm can enumerate edge subsets and determine which subsets are planar, then search for a smallest collection that covers the edge set. Planarity enumeration itself also has a budget. If any required part of the proof remains unresolved, the page must not turn a partial decomposition into a minimum-thickness claim.
Separate a witness from an optimum
Suppose the output places every edge into three planar layers. Verifying those layers proves thickness at most three. It does not prove that two layers are impossible. An exact minimum requires the layer search to exhaust all smaller counts, or a separate lower bound that matches the constructed decomposition. This is the same upper-bound versus optimality distinction that matters in many discrete optimizations.
A bounded dynamic program can represent each edge subset by a bit mask. Planar masks are available layer choices, and a recurrence covers the remaining edges with as few choices as possible. Removing duplicate partitions and imposing canonical layer order reduces repeated work without changing the mathematical answer. The final certificate should still show which original edge belongs to which layer.
Use the nonplanar lower bound
Every nonempty planar graph has thickness one. A nonplanar graph must have thickness at least two, but that statement alone does not always identify its exact thickness. Planarity tests therefore supply both a useful special case and a lower bound. An empty edge set has thickness zero on this page, with the convention displayed explicitly.
A planar embedding certificate describes cyclic edge orders around vertices and compatible face structure; it need not give attractive screen coordinates. Such a certificate should be checked using the graph itself. An arbitrary drawing with apparent crossings does not disprove planarity, and a sketch that hides a crossing does not establish it.
Decompose the default K3,3
The default graph connects each of vertices0,1,2 to each of vertices3,4,5. It is the complete bipartite graph K3,3 and is nonplanar, so it needs at least two layers. The first displayed layer contains03,04,05,13 and23. It has six vertices and five edges and is a tree, which is planar.
The remaining layer contains14,15,24 and25. Its nonisolated part is the four-cycle1–4–2–5–1, which is also planar. The two edge sets are disjoint and contain all nine original edges. They provide a two-layer construction matching the nonplanar lower bound. This proves thickness two without relying on whether the combined colored sketch looks crowded.
Compare with other graph measures
Genus asks whether the whole graph can be embedded without crossings on a surface with handles. Thickness instead allows several planar layers and partitions the edges between them. Fixed-site rectilinear crossing minimization keeps supplied vertex positions and counts crossings between straight segments. Neither of those objectives can be substituted for the planar-layer count.
Likewise, an edge coloring partitions edges into matchings, which are very restricted planar subgraphs. A thickness layer can contain a tree, a cycle or a much richer planar network, so requiring it to be a matching generally wastes layers. Read the layer certificates as planar graphs rather than as ordinary edge-color classes with a different name.
Check coverage and the stated limits
Verify that every reported layer edge appears in the input, no edge is assigned twice, and the union contains every original edge. Then check each layer embedding or use an independent planarity test. Relabeling vertices should preserve the optimum. Isolated vertices may change the declared vertex count but do not force an additional nonempty layer.
The calculator supports small exhaustive instances and explicit resource limits. It does not promise a fast general algorithm for large communication layouts or circuit boards. A returned combinatorial decomposition says nothing by itself about wire length, via placement, shared geometric positions or fabrication rules. Those applications require additional modeling constraints beyond graph-theoretic thickness.
A few questions, answered
Must vertices have the same positions in every layer?
No. This calculator permits a separate planar embedding for each layer; geometric thickness imposes other requirements.
Can a layer contain a cycle?
Yes. A layer may be any planar spanning subgraph, including cycles and graphs with more edges than a tree.
Why is an empty graph assigned zero?
No edge needs a layer. This convention is stated separately from the nonempty planar value one.
Does a colored decomposition always prove the minimum?
It proves an upper bound. Smaller layer counts must also be excluded before optimality is established.