How this calculation works
A graph's skewness is the minimum number of edges whose deletion makes the graph planar. Vertices remain, including any isolated vertices created by the deletions. The parameter describes a modification of the graph rather than a count of crossings in one drawing.
Enumerate edge-deletion subsets in increasing cardinality. For each remaining graph run exact planarity with embedding certificate; first found cardinality is optimum only after all smaller subsets are excluded. Use Euler density bound max(0,m−3n+6) only for simple connected n≥3 (bipartite variant valid only with its preconditions), not as a substitute for planarity. Return deletion labels, retained embedding and count of completed subsets; cap unresolved. Isolated vertices and disconnected components retained.A worked example
With the prefilled inputs, minimumDeletions = 1.
Good to know
Abstract planarity after edge removal; no fixed geometric vertex positions.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
Skewness measures how many edges must be removed
A graph's skewness is the minimum number of edges whose deletion makes the graph planar. Vertices remain, including any isolated vertices created by the deletions. The parameter describes a modification of the graph rather than a count of crossings in one drawing.
Crossing number and skewness are related but not interchangeable. Deleting one edge can eliminate several crossings involving that edge. Conversely, a proposed deletion set is useful only if the graph left behind actually has a planar embedding, not merely fewer edges than before.
Compare with the Minimum feedback vertex set calculator for a directed graph. Delete a minimum number of edges to obtain a planar graph; acyclicity/feedback deletion is stricter and different.
Use edge identities to make the modification explicit
Use the prefilled input structure and preserve the declared column or index order. Submit a simple undirected graph with a declared vertex set and distinct edges. The result should identify deletions by their original endpoints or stable edge indices. Reordering the input list must not make the certificate ambiguous.
Every retained edge must appear in the embedding certificate, while every listed deletion must be absent. A drawing that simply hides a troublesome edge without listing it would not document the transformation being optimized. Explicit bookkeeping is essential for a replayable answer.
Try deletion counts from the smallest upward
The exact search tests the original graph first. If it is nonplanar, enumerate every single-edge deletion, then every two-edge deletion, and continue as needed. At each candidate, an exact planarity routine either returns an embedding or establishes nonplanarity.
Once a feasible set of size k is found after all smaller sizes were exhausted, k is minimum. Searching a convenient collection of edges greedily may find a feasible set but does not prove that no smaller or different deletion set would work.
Delete one edge from the complete five-vertex graph
The complete graph on five vertices has ten edges and is nonplanar. Removing any one of its edges yields a planar graph with nine edges. Thus a one-edge deletion certificate supplies the upper bound one, while original nonplanarity supplies the lower bound one.
The retained graph reaches the simple-planar density maximum of three times five minus six. That equality is consistent with planarity, but density alone is not its proof. The engine should still return a valid rotation system or plane drawing covering all retained edges.
Visualize retained and removed edges distinctly
The static figure should show a planar embedding of the retained graph and separately list the removed original edges. Drawing removed edges faintly on top of that embedding can be helpful, provided they cannot be mistaken for edges belonging to the claimed planar remainder.
A face table or rotation table provides a stronger verification route than a picture alone. Its edge incidences should reconstruct the retained graph and satisfy the appropriate Euler relation. This helps detect visual crossings accidentally introduced by the rendering rather than the combinatorial embedding.
Density is a lower bound, not a complete planarity test
For a simple planar graph on at least three vertices, the edge count is at most three n minus six. Exceeding the bound forces enough deletions to meet it. Graphs below the bound can still be nonplanar, so passing the inequality does not establish that a candidate is acceptable.
Additional bipartite bounds can improve pruning when their assumptions apply. They must not be applied indiscriminately after an operation changes the relevant structure or when tiny disconnected cases require separate treatment. The actual planarity predicate remains the decisive test.
Keep feasible sets when optimality is unresolved
A completed positive result returns the minimum deletion count, the deleted original edge indices and endpoints, and a planar rotation system of the remainder. Exact planarity has its own resource cap; a cap error is unresolved and does not return the best partial deletion set. The current page does not advertise an unfinished upper-bound candidate as a minimum.
Test on already planar graphs, the complete five-vertex graph, the bipartite three-by-three graph and disconnected unions. Relabeling vertices and shuffling edges should preserve the minimum, while the returned deletion and embedding certificates may choose different equally optimal representatives. The public prefill is K3,3, not the separate K5-minus-edge illustration. It returns one deletion and a planar rotation for the eight-edge remainder. Both examples have skewness one, but their vertices, edge indices and rotation tables are different. Read the endpoint pairs in the actual result rather than copying the worked figure’s omitted edge into a different graph. Abstract planarity after edge removal; no fixed geometric vertex positions.
A few questions, answered
Does skewness remove vertices too?
No. This calculation minimizes edge deletions. Vertex deletion is a different graph parameter.
If the edge count meets three n minus six, is the graph planar?
No. The inequality is necessary for simple planar graphs of the stated size but is not sufficient.
Can one deletion remove several crossings?
Yes. All crossings involving that edge disappear when the edge is removed, which is one reason skewness differs from crossing number.
Is any planar remainder a minimum-deletion result?
It proves feasibility for that deletion count. Minimum status additionally requires excluding all smaller deletion counts.