Skip to main content
Examonaut

Topic 1 · Lesson 4 of 5

Planar graphs

Planarity

A graph is planar if it can be drawn in a plane with no two arcs crossing (arcs may meet only at vertices). A drawing with crossings does not mean the graph is non-planar: it may be possible to redraw it. The planarity algorithm decides, for a graph that has a Hamiltonian cycle.

The planarity algorithm

  1. Find a Hamiltonian cycle. Draw it as a polygon, with the vertices in order around the edge.
  2. List the remaining arcs. Two of these arcs cross inside the polygon if their end vertices alternate round the cycle. For example, with cycle ABCDEF, the arcs AD and BE cross (A, B, D, E alternate), but AD and BC do not.
  3. Draw the first remaining arc inside the polygon. Every arc that crosses it must go outside; every arc that crosses one of those must go inside; and so on.
  4. If you can place every arc this way, with no two arcs on the same side crossing, the graph is planar. If two arcs are forced onto the same side and they cross, the graph is not planar.

Worked example

Planarity

A graph has Hamiltonian cycle ABCDEFA and three other arcs: AC, AD and BE.

Show solution
  1. BE crosses AC (A, B, C, E alternate) and AD (A, B, D, E alternate). AC and AD share A, so they do not cross.
  2. Put BE inside. Then AC and AD must both go outside, and they do not cross each other.
  3. Every arc is placed with no crossings, so the graph is planar.

The graph K3,3K_{3,3} (two sets of three vertices, each joined to every vertex of the other set) fails: with cycle ABCDEFA, its three remaining arcs AD, BE and CF all cross each other, so two of them must share a side and cross. K3,3K_{3,3} and K5K_5 are the classic non-planar graphs.

Practise this topic

Both are part of Premium.