Imagine you are designing a circuit board. Little components sit on the board and copper tracks must connect them — but two tracks that touch would short the circuit. So you keep asking the same question: can I draw all these connections on one flat layer with no wire crossing another? A graph you can draw that way is called planar, and it is one of the most beautiful ideas in graph theory.
A planar graph is a graph that can be drawn in the plane so that
no two edges cross. That drawing does something wonderful: the edges slice the plane
into regions, called faces. And no matter how you draw it, the
vertices, edges and faces always obey one astonishingly simple law —
Here is the subtle part that trips everyone up. A graph is planar if some drawing has no crossings — even if the drawing in front of you is a tangled mess. The square with both diagonals looks crossed, yet you can redraw it with one diagonal bulging outside, and suddenly nothing crosses. Planarity is a property of the graph, not of one particular picture of it.
Once you have a crossing-free drawing (a plane embedding), count the regions it cuts the paper into. Do not forget the big region that stretches out forever around the whole figure — the outer, or unbounded, face. It counts just like all the others.
Below is a small connected planar graph. Step through to reveal its faces one at a time — first the bounded inner regions, then the all-important outer face — and see Euler's count fall out.
The pattern is universal. For any connected graph drawn in the plane with no crossings:
For a connected planar graph with
A single triangle. Three corners, three sides, and two faces — the inside and the outside:
The cube graph. Flatten a cube onto the page (push the top face down inside the
bottom one) and nothing has to cross. A cube has
and indeed a cube has 6 faces. The formula predicted the answer before we even
looked. Notice the handy rearrangement
Euler's formula has teeth. In a simple planar graph (no loops, no repeated edges)
with
Any simple planar graph with
edges. A graph with more edges than this cannot be planar.
This is a planarity detector. Count vertices and edges; if
Take
Its twin is
There is a classic puzzle — the three utilities problem. Draw three houses and three
utilities (gas, water, electricity). Can you connect every house to all three utilities without any
pipes crossing? People try for hours. It is impossible — and now you can prove it in
one line: that connection pattern is
Every convex polyhedron, flattened onto the plane, becomes a connected planar graph — so it obeys
Two traps snap shut here. First: "K5 can't be planar because it looks crossed." A
messy, crossing-filled picture proves nothing — planarity asks whether some
crossing-free drawing exists, not whether your first attempt had crossings. (The square-with-diagonals
looks crossed but is planar!) The real reason
Second: forgetting the outer face. When you count
A
Even the humblest connected graph obeys the law.