Here’s a roadmap for deciding whether a given (finite, simple) graph G is planar or not:
-
Quick “sanity‐check” via edge–vertex bound
• If G is connected and has v ≥ 3 vertices and e edges, then any planar drawing must satisfy
e ≤ 3v – 6.
• If G isn’t necessarily connected, the bound is e ≤ 3v – 6c, where c = # of connected components.
• If your graph violates this → NON‐PLANAR.
• If it satisfies the bound, you still need to check more—this bound is necessary but not sufficient.
-
Look for Kuratowski‐subdivisions (K5 or K3,3)
A fundamental theorem (Kuratowski, 1930) says:
“G is non‐planar ⟺ G contains a subdivision (homeomorphic copy) of K5 or K3,3.”
• K5 = complete graph on 5 vertices (every pair joined)
• K3,3 = complete bipartite graph with parts of size 3 (the “utility graph”)
In practice you try to find either as a subgraph—sometimes by contracting degree-2 vertices (“smoothing”) you can expose a hidden K5 or K3,3.
-
Euler’s formula for a connected planar embedding
If G is planar and connected, any planar drawing satisfies
v − e + f = 2
where f is the number of faces (including the outer face).
• You can combine this with the fact that each face boundary has ≥3 edges (and each edge borders at most 2 faces) to re-derive the e ≤ 3v–6 bound.
• Violations of Euler’s formula (when you try to embed and count faces) also signal non-planarity.
-
Algorithmic planarity tests
If you want an automatic decision (and a concrete embedding if it’s planar), classical linear-time algorithms exist, e.g.:
• Hopcroft & Tarjan’s (1974) planarity test
• Boyer–Myrvold (2004) simplified practical algorithm
• PQ-tree–based approaches
Many graph libraries (NetworkX, OGDF, LEDA, Boost-Graph, etc.) implement these.
- Hands-on approach for small graphs
• Try to draw it on paper, adding edges one at a time and checking if you can “avoid crossings” by rerouting.
• Whenever you get stuck with an unavoidable crossing, inspect the crossing edges—often they hide a K5 or K3,3.
Example:
– K5 has v=5, e=10. 10 > 3·5−6 = 9, so fails the edge‐bound → non-planar.
– K3,3 has v=6, e=9. 9 = 3·6−6 = 12, so it passes the basic bound, but you can show it forces a subdivision → non-planar.
Summary checklist:
- Check e ≤ 3v−6 (or 3v−6c). If it fails → NON‐PLANAR.
- Otherwise, search for a K5 or K3,3 subdivision. If found → NON‐PLANAR.
- If neither test rules it out, you can either try an explicit planar embedding or run a linear-time planarity algorithm → PLANAR.
With practice you get better at spotting the “forbidden” substructures quickly! 😊