Graph DiscreteMath SKSaha
Graph DiscreteMath SKSaha
Instructor
Sujan Kumar Saha
Associate Professor
CSE, NIT Dgp
([email protected])
These slides are made for classroom teaching only,
Concepts and figures primarily taken from the book:
GRAPH THEORY, by Narsingh Deo, PHI
The KÖnigsberg Bridge Problem
➢ Solved by Euler in 1736. (1st paper of graph theory)
➢ Königsberg is a city on the Pregel river in Prussia
➢ The city occupied 2 islands + areas on both banks
➢ Problem: Whether start from home, cross every
bridge exactly once, and return home.
Parallel
edges
loop
It is a simple graph.
✓ e2 and e7 → incident to v4
✓ e2 and e7 → are adjacent
✓ e4 and e5 → not adjacent
✓ v4 and v5 → are adjacent
✓ d(v2) = 4
✓ d(v1) = 3
The whole part is even (2*e). The first part is always even.
So,
So, n (n - 1) = 2E
Then, E = n (n − 1 ) / 2 proved.
September 3, 2024 SKSaha 10
More Problems
Prove that every graph with n vertices and k edges has at least
n − k connected components.
Proof by induction on k the number of edges.
➢ Base case: for k=0 the claim holds as we have n isolated
vertices and thus, n (= n−0) connected components.
➢ Inductive Hypothesis: suppose the claim holds for all k ≥ 0.
So, graph with n vertices & k edges at least n−k components.
➢ Proof:
Graph Theory 31
Kuratowski’s 2 Graphs: K5
The complete graph of five vertices? Planar?
Graph Theory 45
Theorem
Theorem: There is one and only one path between
every pair of vertices in a tree T.
Proof:
➢ Since T is a connected graph, there must exist at
least one path between every pair of vertices in T.
➢ Now suppose that between two vertices a and b of T
there are two distinct paths.
➢ The union of these two paths will contain a circuit.
➢ T cannot be a tree then.
➢ Delete all the pendant vertices from T. The resulting graph T'
is still a tree.
➢ Continue this process until there is left either a vertex (center
of T, only center) or an edge (with 2 vertices i.e. 2 centers)