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
- Find a Hamiltonian cycle. Draw it as a polygon, with the vertices in order around the edge.
- 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.
- 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.
- 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 solutionHide solution
- 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.
- Put BE inside. Then AC and AD must both go outside, and they do not cross each other.
- Every arc is placed with no crossings, so the graph is planar.
The graph (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. and are the classic non-planar graphs.
Practise this topic
Quiz me on this topic10 questions, marked as you go.Make a practice paperPick the marks and difficulty. Print it with a mark scheme.
Both are part of Premium.