Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Planar Graphs
A planar graph is a graph that can be drawn in a plane without any of its edges crossing each other. Drawing a graph in the plane without edge crossings is called embedding the graph in the plane. Planar graphs are important in circuit design, map coloring, and network layout problems.
Planar Graph
A graph G is called planar if it can be drawn in a plane without any edges crossing. The same graph may have multiple drawings − some with crossings and some without. If at least one crossing-free drawing exists, the graph is planar.
Example
The complete graph K4 is planar because it can be embedded in the plane with no edge crossings. The edge from c to b is drawn as a curve around the outside to avoid crossing the diagonal edge.
Non-Planar Graph
A graph is non-planar if it cannot be drawn in a plane without graph edges crossing, no matter how the vertices and edges are arranged.
Example
The complete graph K5 is non-planar. No matter how you arrange the 5 vertices, at least one pair of edges must cross. The dashed lines show the inner edges that inevitably produce crossings.
Key Facts About Planar Graphs
By Kuratowski's theorem, a graph is non-planar if and only if it contains a subgraph that is homeomorphic to K5 (complete graph on 5 vertices) or K3,3 (complete bipartite graph on 3+3 vertices). Some useful planarity facts −
| Property | Planar | Non-Planar |
|---|---|---|
| Kn (complete graph) | n ≤ 4 | n ≥ 5 |
| Km,n (complete bipartite) | m ≤ 2 or n ≤ 2 | m ≥ 3 and n ≥ 3 |
| Euler's formula | |V| − |E| + |R| = 2 | |
| Edge bound (simple graph) | |E| ≤ 3|V| − 6 | |
Conclusion
A graph is planar if it can be embedded in a plane with no edge crossings, and non-planar otherwise. The smallest non-planar graphs are K5 and K3,3, and Kuratowski's theorem uses these as the basis for testing planarity of any graph.
