VOOZH about

URL: https://www.geeksforgeeks.org/engineering-mathematics/mathematics-planar-graphs-graph-coloring/

⇱ Planar Graphs and Graph Coloring - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Planar Graphs and Graph Coloring

Last Updated : 3 Jun, 2026

Planar graphs and graph coloring are important concepts in graph theory, which studies graphs and their properties. A planar graph is a graph that can be drawn on a plane without any edges crossing each other.

Graph coloring is the process of assigning colors to vertices so that no two adjacent vertices have the same color. These concepts are widely used in computer science, engineering, networking, scheduling, and map coloring problems.

Planar Graphs

A planar graph is a graph that can be embedded in the plane such that no edges intersect except at their endpoints. In other words, it can be drawn on a flat surface without any edges crossing.

πŸ‘ Planer-and-Non-Planer-Graphs

Properties of Planar Graphs

  • A planar graph can be drawn without edges crossing each other.
  • It divides the plane into regions called faces.
  • For a connected planar graph: V βˆ’ E + F = 2
    Here, V = vertices, E = edges, and F = faces.
  • In a simple planar graph: E ≀ 3V βˆ’ 6
  • A planar graph does not contain K5 or K3,3 as subgraphs.
  • Planar graphs are used in maps, circuits, networks, and scheduling.

Graph Coloring

Graph coloring is the assignment of colors to vertices of a graph such that no two adjacent vertices share the same color. The minimum number of colors required to color a graph is called its chromatic number.

πŸ‘ 2056958230

Types of Graph Coloring

  • Vertex Coloring: Assigning colors to vertices so that no two adjacent vertices have the same color.
  • Edge Coloring: Assigning colors to edges so that no two edges sharing the same vertex have the same color.
  • Face Coloring: Assigning colors to faces of a planar graph so that no two faces sharing a boundary have the same color.

Applications in Engineering

Graph coloring and planar graphs have various applications in engineering, computer science, communication systems, scheduling, map coloring, and circuit design.

  • Frequency Assignment: Graph coloring is used to assign different frequencies to nearby radio stations and cell towers to avoid interference.
    Example: Adjacent cell towers are given different frequencies.
  • Scheduling: Graph coloring helps in scheduling exams, tasks, and events so that conflicting activities do not occur at the same time.
    Example: Students do not get overlapping exams in a timetable.
  • Map Coloring: Planar graph coloring is used to color maps so that neighboring regions have different colors.
    Example: Adjacent countries on a political map are colored differently.
  • Register Allocation: In computer science, graph coloring is used to assign CPU registers efficiently in compilers.
    Example: Variables used at the same time are stored in different registers.
  • Circuit Design: Graph coloring helps in reducing wire crossings and minimizing layers in circuit boards.
    Example: Printed circuit boards are designed more efficiently.

Solved Examples

Example 1: Determine if the following graph is planar and find its chromatic number.

Graph: K4 (Complete graph with 4 vertices)

Solution:

K4​ is planar because it can be drawn without any edges crossing.

Chromatic number: 4 (each vertex connects to every other vertex).

Example 2: Determine if K3,3​ is planar.

Solution:

K3,3​ is not planar as it cannot be drawn without edges crossing (Kuratowski's Theorem).

Example 3: Given a planar graph with 6 vertices and 9 edges, find the number of faces.

Solution:

Using Euler's formula:

Vβˆ’E+F=2β€…β€ŠβŸΉβ€…β€Š6βˆ’9+F=2β€…β€ŠβŸΉβ€…β€ŠF=5

Example 4: Find the chromatic number of a cycle graph with an odd number of vertices, say 5.

Solution:

For an odd cycle, the chromatic number is 3.

Example 5: Find the chromatic number of a bipartite graph.

Solution:

A bipartite graph is 2-colorable.

Example 6: Determine if the Petersen graph is planar.

Solution:

The Petersen graph is not planar.

Example 7: Find the chromatic number of the following planar graph: C5βˆͺC3.

Solution:

Each cycle has a chromatic number of 3, so the combined graph has a chromatic number of 3.

Example 8: Verify Euler's formula for a graph with 8 vertices, 12 edges, and 6 faces.

Solution:

8βˆ’12+6=2(Holds true)

Example 9: Determine if the following graph is planar and find its chromatic number. Graph: K2,3

Solution:

K2,3 is planar.

Chromatic number: 2 (bipartite graph).

Practice Problems

1. Determine if K4 is planar and find its chromatic number.

2. Given a planar graph with 10 vertices and 15 edges, find the number of faces.

3. Find the chromatic number of a star graph Sn with n leaves.

4. Prove that a tree is 2-colorable.

5. Given a planar graph with 12 vertices and 18 edges, determine if Euler’s formula holds.

6. Find the chromatic number of a wheel graph Wn with n spokes.

7. Determine if the dodecahedron graph is planar.

8. Given a graph G with V vertices and E edges, if G is planar and E = 3V βˆ’ 6, find the number of faces.

9. Find the chromatic number of a complete bipartite graph Km,n.

10. Determine if the graph C4 βˆͺ K2 is planar and find its chromatic number.

Related Articles

GATE CS Corner Questions

Practicing the following questions will help you test your knowledge. All questions have been asked in GATE in previous years or in GATE Mock Tests. It is highly recommended that you practice them.

Comment