Graph Theory and Combinatorics - Complete Notes With Visual Examples & Memory Tricks
Graph Theory and Combinatorics - Complete Notes With Visual Examples & Memory Tricks
🎓 Memory Tip:
"Graphs = Dots + Lines"
Types of Graphs:
● Simple Graph: No loops/multiple edges
🖼️ Visual Example:
A -- B C (isolated)
|
D
A simple graph where C is isolated and A, D are pendant.
Matrix Representations:
● Adjacency Matrix: Shows connections
ABC
A010
B101
C010
Degree of a Vertex:
● Number of edges connected to it
🧠 Handshaking Theorem:
Sum of degrees = 2 × number of edges
● n vertices ⇒ (n - 1) edges
🖼️ Example:
A
|
B
/\
C D
Spanning Tree:
● Subgraph including all vertices with minimum edges
Cut Set:
● Set of edges, removing which disconnects the graph
Euler’s Formula:
V - E + F = 2 (V=vertices, E=edges, F=faces)
Connectivity:
● Graph is connected if path exists between every pair
UNIT III: MATRICES, COLORING,
DIRECTED GRAPHS
Chromatic Number (χ):
● Minimum number of colors to color a graph without two adjacent nodes having same
color
🖼️ Triangle Example:
A
/\
B---C
χ(G) = 3 (A, B, C need different colors)
Chromatic Polynomial:
● Number of ways to color the graph using ‘k’ colors
Matching:
● Set of edges without common vertices
🖼️ Bipartite Example:
Jobs → Workers
Covering:
● Set of vertices covering all edges
🖼️ Example:
A→B→C
Isomorphic Graphs:
● Two graphs are isomorphic if they have:
○ Same connections
⚠️ Tip:
Compare degrees and edge connections to check isomorphism
Permutations:
● Order matters
● P(n, r) = n! / (n − r)!
Combinations:
● Order doesn’t matter
Example: C(5, 2) = 10
With Repetition:
● C(n+r−1, r)
Inclusion-Exclusion Principle:
|A ∪ B| = |A| + |B| − |A ∩ B|
Derangements:
● No element in original position
Example: D3 = 2
Example:
1 + x + x² + x³ + … ⇒ G(x) = 1 / (1 - x)
Partition of Integers:
● Ways to write an integer as a sum of positive numbers
Example: ∑1 to 5 = 1+2+3+4+5 = 15
Recurrence Relations:
● First Order: an = r * an−1
2. Tree Check: 12 vertices and 15 edges? ❌ Not a tree (must be 11 edges)
3. Coloring: Triangle needs 3 colors ⇒ χ(G) = 3
5. Derangement: D3 = 2
✨ Final Tips
● Use visuals to remember structure
🎯 ALL THE BEST FOR YOUR EXAMS! MASTER THE GRAPH – WIN THE MARKS!