Original interactive / Planar graph construction
Move the nodes.
Make every crossing disappear.
Eight nodes are joined by twelve fixed edges. Moving a node never changes which nodes it connects. Edges that meet at a common node are not counted as crossing one another; every other segment intersection is counted live.
Drag a numbered node, or focus it and use the arrow keys. Hold Shift for a larger keyboard step. Current count: 13.
Current puzzle seed 361205; construction seed 361205. The generator first places the same graph without crossings, then shuffles its nodes into an irregular slot layout. No server or stored score is involved.
A graph and its drawing are different things.
A graph records which nodes are connected. A drawing assigns those nodes positions and represents each connection with a line. Moving a node changes the drawing but not the graph. This distinction explains why an untangle puzzle can look impossible at first and still have a solution.
MIT’s combinatorial analysis lecture defines a planar graph as a graph that has some drawing in which no two edges cross. The word “some” is crucial. It does not require every arrangement of the nodes to be free of crossings. Your task is to recover one of the good arrangements, not to alter the connections.
Our graph has eight numbered nodes and twelve edges. Eight edges make the outer cycle; four more form non-crossing internal connections in the certified layout. Drag a node and every incident line follows it. Focus a numbered node and use the arrow keys for eight-unit steps, or hold Shift for 24-unit steps. The controls and the drawing expose the same fixed graph.
Count crossings without punishing a shared endpoint.
At a node with three connections, all three line segments meet. Those meetings are not the puzzle’s unwanted crossings. The counter therefore skips every edge pair that shares a node index. It tests only pairs whose four endpoints are distinct, then marks any intersecting edges in coral.
The underlying segment test compares orientations of the two endpoints of each segment relative to the other line. Opposite sides on both tests indicate an ordinary crossing. Separate boundary checks catch a touching endpoint and collinear overlap. Testing only where infinite lines meet would be wrong because their intersection could lie outside one or both finite segments.
Every pointer or keyboard move recomputes the count from the current coordinates. There is no animation-dependent state and no delayed score. If the count reaches zero, the current drawing is planar. The large number above the board is thus a result of geometry, not a heuristic estimate of how tidy the drawing appears.
Build the answer before making the puzzle.
Randomly connecting dots and hoping for a solution would answer the wrong design question. This generator begins with a known planar construction. Eight nodes sit around an ellipse in cyclic order. The outer-cycle edges follow that order, and the four internal chords join alternate nodes without crossing. The pure intersection counter verifies that this certificate has zero crossings.
Only after creating that answer does a seeded shuffle assign node identities to a fixed set of irregular slots. At least one crossing is required before a generated layout is accepted. The default seed produces 13 crossings under the same counter shown on the page. “Reset scramble” restores those starting positions; “Show certified layout” restores the retained answer.
This proves solvability by construction. It does not claim that the shown answer is unique, that it has the fewest moves, or that it is the easiest route for a person. Those are separate questions. A certificate answers “can it be done?”; a player can still find a different zero-crossing arrangement.
When no arrangement can work.
Some graphs are non-planar. The complete graph K5 connects every pair among five nodes. The complete bipartite graph K3,3 connects each of three nodes in one group to each of three nodes in another. MIT’s lecture uses Euler’s formula to prove that both are non-planar: assuming a planar drawing leads to incompatible edge and face counts.
Kuratowski’s theorem gives the broader characterisation. In subdivision language, a graph is non-planar exactly when it contains a subgraph that can be reduced through degree-two paths to K5 or K3,3. It is not enough to glance for five obvious nodes or one visible bad crossing. The theorem concerns structural copies that may be hidden behind paths.
The demo never generates either non-planar graph. That choice matters for fairness: no amount of dragging could satisfy a zero-crossing goal for K5 or K3,3. A puzzle generator should establish the goal’s reachability before presenting it, just as a sorting puzzle should have a reachable sorted state. Compare that idea with the checked routes in our sorting puzzle model.
A practical way to reduce the tangle.
Begin with an edge highlighted in coral, then choose one of its endpoints. Moving that node changes all of its incident edges, so inspect both removed and newly created crossings. A lower total is useful evidence, but a temporary increase can still create room for a better arrangement. The counter measures the present drawing, not a guaranteed direction towards the answer.
Next, try arranging a connected outer cycle around the boundary. Once its nodes are in cyclic order without crossed sides, move internal nodes and chords into the available spaces. Because the graph is fixed, recognising a cycle is often more useful than dragging the most central-looking node. Number labels help you retain the connection pattern while positions change.
Use “Show certified layout” only after attempting your own route. Compare the resulting cyclic order with the scramble rather than memorising coordinates. On a new seed the node identities are shuffled differently, but the construction method remains inspectable. Return at any time by keyboard; no timer, account or stored score rewards rushing.
Transfer the geometric habit.
Reflection is another case where a change of representation makes a problem clearer. Our aim-and-bounce model unfolds a zigzag into a straight line, while the symmetry guide compares transformations visually. For a finite search through changing positions rather than continuous movement, try Triangle Jump Lab or browse How games work.
Sources and method.
- MIT 18.211, Felix Gotti: Euler’s and Kuratowski’s Theorems — the definition of planarity, Euler’s formula, proofs for K5 and K3,3, and Kuratowski’s theorem.
- MIT 18.310: Remarks on Kuratowski’s Planarity Theorem — the roles of K5 and K3,3 as subdivisions and minors.
- Wolfram MathWorld: Kuratowski’s Theorem — publication references and the standard planarity characterisation.
- DelionPlay public game catalog API — current example title and
playUrl, checked through cursor pagination on 5 December 2026.
The generator, coordinates, crossing count and claimed default result are original and locally tested. See our editorial standards for the evidence policy.
Questions to try next.
Do two edges meeting at the same node count as a crossing?
No. They share an endpoint by design, so the live counter skips that pair. The counter examines intersections between edges with four distinct endpoints. Its segment test also handles ordinary crossings, touching segments and collinear overlap instead of relying only on a simple slope comparison.
Does a tangled drawing mean the graph is non-planar?
No. A planar graph is one for which some drawing has no crossing edges; a particular drawing can still be tangled. The puzzle starts with exactly that mismatch. The graph and its hidden planar construction are planar, while the shuffled node positions create the crossings you are asked to remove.
How does the generator guarantee a solution?
It first places eight nodes around an ellipse and connects an outer cycle plus four non-crossing internal edges. Those coordinates are retained as a certificate. Only then are node positions shuffled. Restoring the certificate is checked by the same live intersection counter, and independent tests verify zero crossings across many seeds.
Are K5 and K3,3 just difficult drawings?
No. They are non-planar graphs, so no rearrangement can make every edge crossing disappear. Kuratowski’s theorem gives a broader characterisation involving subdivisions or minors of these graphs. The demonstration deliberately uses a simpler planar graph rather than asking you to solve an impossible layout.