Graph Planarity Checker

K_5 and K_{3,3} free?

CalculatorsFreeNo Signup
4.6(143 reviews)
All Tools

Loading tool...

About Graph Planarity Checker

A graph planarity checker testing if G can be embedded in the plane without crossings. Kuratowski (1930): planar iff no K_5 or K_{3,3} subdivision. Euler's formula: V-E+F=2 for connected planar. Thus |E|≤3|V|-6. Client-side.

Graph Planarity Checker Features

  • Planar check
  • Euler V-E+F=2
  • |E|≤3V-6
  • Kuratowski
  • Face count
Planar graph: drawable without crossings. Kuratowski (1930): planar iff no K_5 or K_{3,3} subdivision. Wagner: planar iff no K_5 or K_{3,3} minor. Euler: V-E+F=2 (connected). Corollary: |E|≤3V-6, so planar graphs are sparse.

How to Use

Select graph:

  • Planar? Yes/No
  • Euler: V-E+F=2
  • Bound: |E|≤3V-6

Kuratowski's Theorem

G is planar iff it contains no subdivision of K_5 or K_{3,3}. These are the only two obstructions! K_5 has 5 vertices all connected. K_{3,3} is the utilities problem graph. Both are minimally non-planar.

Four Color Theorem

Every planar graph is 4-colorable: χ≤4. Proved by Appel & Haken (1976) with computer assistance. First major theorem proved by computer. Five color theorem (Heawood, 1890) is much simpler to prove.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Check planarity.
  3. 3Verify Euler.
  4. 4Count faces.
  5. 5Check 4-colorable.

Graph Planarity Checker — Frequently Asked Questions

Why is K_5 not planar?+

K_5 has 5 vertices, 10 edges. Euler bound: |E|≤3·5-6=9. Since 10>9, K_5 cannot be planar. This is the simplest non-planar graph. Any graph containing K_5 as a subdivision is also non-planar.

What's Euler's formula?+

For connected planar graphs: V-E+F=2 where F = number of faces (including outer face). This gives |E|≤3V-6 (each face has ≥3 edges, each edge borders 2 faces). For bipartite planar: |E|≤2V-4 (faces have ≥4 edges).

How fast can planarity be tested?+

O(n) linear time! Hopcroft-Tarjan (1974) gave the first linear algorithm. Boyer-Myrvold (2004) is more practical. Planarity testing is one of the algorithmic successes of graph theory.

Share this tool: