Loading lessons...
Paths, Connectivity & Graph Isomorphism
1. Walks, Paths and Circuits
| Term | Definition |
|---|---|
| Walk | alternating sequence of vertices and edges v₀ e₁ v₁ … eₖ vₖ |
| Trail | walk with no repeated edge |
| Path | walk with no repeated vertex (hence no repeated edge) |
| Circuit / closed trail | trail with v₀ = vₖ |
| Cycle | closed path (only first = last vertex repeated), length ≥ 3 |
The length is the number of edges.
Counting walks. If A is the adjacency matrix, the (i, j) entry of Aᵏ is the number of walks of length k from vᵢ to vⱼ.
2. Connectivity
- An undirected graph is connected if there is a path between every pair of vertices.
- A connected component is a maximal connected subgraph. Every graph is the disjoint union of its components (being joined by a path is an equivalence relation on V-Lesson 11).
- A cut vertex (articulation point) is one whose removal increases the number of components; a cut edge (bridge) likewise.
- Vertex connectivity κ(G): minimum number of vertices whose removal disconnects G; edge connectivity λ(G): minimum edges. κ ≤ λ ≤ minimum degree.
Digraphs. Strongly connected: a directed path from u to v and from v to u for all u, v. Weakly connected: connected when directions are ignored.
Theorem. A simple graph with n vertices and k components has at most (n − k)(n − k + 1)/2 edges. A simple graph with n vertices and more than (n − 1)(n − 2)/2 edges is connected.
Theorem. There is a simple path between any two vertices joined by some walk (delete the loops in the walk).
3. Graph Isomorphism
G₁ = (V₁, E₁) and G₂ = (V₂, E₂) are isomorphic (G₁ ≅ G₂) if there is a bijection f : V₁ → V₂ such that u, v are adjacent in G₁ iff f(u), f(v) are adjacent in G₂. Isomorphic graphs are the "same drawing with different labels".
Two drawings of the same graph and the vertex bijection between them
Invariants (must match if G₁ ≅ G₂)
- number of vertices;
- number of edges;
- degree sequence (sorted list of degrees);
- number of cycles of each length (e.g. triangles);
- connectedness, number of components, bipartiteness;
- the subgraph induced by the vertices of each degree.
Matching invariants do not prove isomorphism-you must exhibit the bijection and check every edge (or show the adjacency matrices become equal after reordering). A single mismatched invariant does prove non-isomorphism.
Solved. G₁: a square a-b - c-d - a. G₂: u-w - v-x - u drawn as a "bow-tie" with crossing edges. Both have 4 vertices, 4 edges, all degrees 2. Take f(a) = u, f(b) = w, f(c) = v, f(d) = x. Edges ab, bc, cd, da map to uw, wv, vx, xu-all edges of G₂ ✓, so G₁ ≅ G₂ (both are C₄).
Solved (non-isomorphic). Two graphs with 6 vertices and degree sequence (3, 3, 3, 3, 3, 3): K₃,₃ and the triangular prism. The prism contains triangles; K₃,₃ is bipartite and has none ⇒ not isomorphic.
Self-complementary graph: G ≅ Ḡ. C₅ and the path P₄ are examples; such graphs have n(n − 1)/4 edges, so n ≡ 0 or 1 (mod 4).
📝 IPU End-Term Exam Corner (5-10 Marks)
- Q1. Define walk, trail, path, circuit and cycle. Show that the (i, j) entry of Aᵏ counts walks of length k. (5 Marks)
- Q2. Define graph isomorphism. Show that two given graphs are (or are not) isomorphic using invariants. (10 Marks)
- Q3. Define connected graph, component, cut vertex and bridge with an example. (5 Marks)