Learn/Combinatorics/Graph Theory Basics
Combinatorics • Topic 26

Graph Theory Basics

Graph theory models pairwise relations between objects. It is the study of vertices (dots) and edges (lines connecting dots).

Definitions

Definition (Graph)
A graph consists of:
  • A set of vertices .
  • A set of edges , where each edge connects two vertices.
  • Order: , the number of vertices.
  • Size: , the number of edges.
  • Simple Graph: No loops (edge to self) and no multiple edges between the same pair.

Special Graphs

  1. Complete Graph (): Every pair of vertices is connected. .
  2. Path Graph (): Vertices connected in a line.
  3. Cycle Graph (): Vertices connected in a closed loop.
  4. Bipartite Graph: Vertices can be split into two sets such that all edges go between and .

Handshaking Lemma

Theorem (Handshaking Lemma)
The sum of the degrees of all vertices is twice the number of edges.

Corollary: The number of vertices with odd degree must be even.

Practice Problems

Exercise (Problem 1)
There are 15 people at a party. Is it possible for each person to shake hands with exactly 3 others?
Exercise (Problem 2)
Draw all non-isomorphic graphs with 4 vertices.
Exercise (Problem 3)
Prove that in any group of 6 people, there are either 3 mutual friends or 3 mutual strangers (Ramsey Theory intro).