# Graph Theory Masterclass: Handshaking, Euler/Planar Formulas & Coloring
Exam: GATE Computer Science & Information Technology (GATE CS)
Subject: Engineering Mathematics & Discrete Math
Canonical URL: https://gateandnet.com/exams/gate-cs/engineering-mathematics/graph-theory-formulas-and-theorems

> Degree sum identities, connected components bounds, Kuratowski planar inequalities, and chromatic numbers.

## Degree & Edge Extremal Bounds

For a simple undirected graph $G = (V, E)$ with $n = |V|$ vertices and $e = |E|$ edges:
1. **Maximum edges in a simple graph:** $\binom{n}{2} = \frac{n(n-1)}{2}$ (achieved by $K_n$).
2. **Minimum edges to be connected:** $n - 1$ (a Tree).
3. **Sufficient condition for connectedness:** If $e > \binom{n-1}{2}$, then $G$ is **guaranteed to be connected**!
4. **Maximum edges in a bipartite graph on $n$ vertices:** $\lfloor n^2 / 4 \rfloor$.

## Planar Graph Inequalities (Must Memorize)

- For any connected simple planar graph with $V \ge 3$:
  $$E \le 3V - 6$$
  *(This guarantees every simple planar graph has at least one vertex with $\deg(v) \le 5$, and by the Four-Color Theorem $\chi(G) \le 4$.)*
- If $G$ is **planar and triangle-free** (e.g., bipartite planar like $K_{2,3}$), then:
  $$E \le 2V - 4$$
  *(Instantly proves $K_{3,3}$ is non-planar since $E = 9 > 2(6) - 4 = 8$!)*

| Graph Family | Vertices | Edges | Chromatic Number $\chi(G)$ | Euler Circuit? |
| :--- | :--- | :--- | :--- | :--- |
| Complete Graph $K_n$ | $n$ | $n(n-1)/2$ | $n$ | iff $n$ is **odd** ($n \ge 3$) |
| Cycle Graph $C_n$ ($n \ge 3$) | $n$ | $n$ | $2$ (even $n$), $3$ (odd $n$) | Always Yes |
| Wheel Graph $W_n$ (hub + $C_{n-1}$) | $n$ | $2(n-1)$ | $3$ (odd $n$), $4$ (even $n$) | Never (rim vertices have deg 3) |
| Hypercube $Q_k$ | $2^k$ | $k \cdot 2^{k-1}$ | $2$ (Bipartite) | iff $k$ is **even** |


## Solved Practice Questions & PYQs

### [GATE CS Graph NAT | NAT]
A connected simple planar graph $G$ has $10$ vertices and $24$ edges. Into how many **regions (faces)**, including the unbounded outer face, does a planar embedding of $G$ divide the plane?
**Correct Answer:** 16
**Solution:** By Euler’s Planar Graph Formula $V - E + R = 2 \implies 10 - 24 + R = 2 \implies R = \mathbf{16}$. (Note $E = 24 \le 3(10) - 6 = 24$, maximal planar triangulation!)

### [GATE CS Discrete Math | MCQ]
A connected **planar simple graph** has $V = 10$ vertices and $E = 24$ edges. Into how many **regions (faces)**, including the unbounded exterior face, does any planar embedding divide the plane?
**Correct Answer:** B
**Solution:** By **Euler’s Planar Graph Formula** $V - E + R = 2$, we get $R = E - V + 2 = 24 - 10 + 2 = \mathbf{16}$ regions (also note $E = 24 \le 3V - 6 = 24$, so it is a maximal planar triangulation!).
