9.3 Walks, Paths, Cycles, Connectivity & Cut-Vertex Invariants
π‘ Core Intuition: The 3-Second Mental Modelβ
π³ The Everyday Analogy: City Streets, Delivery Couriers & Bottleneck Bridgesβ
Think of traversing complex road networks:
- The Route Hierarchy (Degrees of Freedom):
- Walk: Wandering around town aimlessly. You can re-visit intersections and drive down the same street ten times.
- Trail: A delivery courier dropping off packages. You can cross the same busy intersection twice, but you never drive down the exact same street segment twice (no repeated edges).
- Path: A direct tourist scenic route. You never visit the same landmark or intersection twice (no repeated vertices).
- Cut-Vertices & Bridges (Single Points of Failure):
- A suspension bridge connecting an island to the mainland. If an earthquake destroys that one bridge, the city is split into two disconnected worlds! That edge is a Bridge (Cut-Edge).
- An airport hub (like Chicago O'Hare). If the entire airport shuts down, connecting flights between east and west coasts fail. That hub is a Cut-Vertex (Articulation Point).
- Whitney's Connectivity Invariant: How many attacks can your network survive? You can never make a network more resilient than its weakest isolated server ().
π» Bridging to Computer Science: Tarjan's Bridge Algorithm, Biconnectivity & Fault-Toleranceβ
In computer systems:
- Tarjan's DFS Bridge-Finding Algorithm: Finds all bridges and articulation points in a network in optimal linear time using DFS discovery and low-link numbers.
- Distributed System Fault-Tolerance: A cloud data center network requires -vertex connectivity () so that any server failures leave the cluster fully connected.
- Strongly Connected Components (SCC): Algorithms like Kosaraju-Sharir and Tarjan's SCC partition directed web graphs to compute Google PageRank.
πΆ The Traversal Hierarchy: Walks, Trails & Pathsβ
The Hierarchical Classification of Graph Traversal Routes
From unrestricted walks down to strictly non-repeating paths and cycles
Walk (Alternating Sequence)
An alternating sequence of vertices and edges: vβ, eβ, vβ, eβ, ..., eβ, vβ.
Trail
A walk in which NO edge is traversed more than once.
Path (Simple Path)
A walk in which NO vertex (and therefore no edge) is repeated.
Circuit vs Cycle
Closed Trail = Circuit (no repeated edges). Closed Path = Cycle (no repeated vertices except vβ = vβ).
Master Traversal Taxonomy Comparison Tableβ
| Traversal Category | Edge Repetition Permitted? | Vertex Repetition Permitted? | Start Vertex Equals End Vertex? | Canonical Term |
|---|---|---|---|---|
| Open Walk | Yes | Yes | No () | Walk |
| Closed Walk | Yes | Yes | Yes () | Closed Walk |
| Open Trail | No (Unique Edges) | Yes | No () | Trail |
| Closed Trail | No (Unique Edges) | Yes | Yes () | Circuit |
| Open Path | No | No (Unique Vertices) | No () | Path (Simple Path) |
| Closed Path | No | No (except endpoints) | Yes () | Cycle (Simple Cycle) |
π Graph Connectivity & Component Boundsβ
- Connected Undirected Graph: An undirected graph is connected if and only if there exists at least one path between every pair of vertices .
- Connected Components: If is disconnected, it partitions into maximal connected subgraphs called connected components ().
- Directed Graph Connectivity:
- Strongly Connected: For every pair of vertices , there is a directed path from AND a directed path from .
- Weakly Connected: There is an undirected path between every pair of vertices when all edge arrowheads are replaced with undirected lines.
Let be a simple graph with vertices:
- Edge Range for a Connected Graph ():
- Minimum edges: (achieved when is a Tree).
- Maximum edges: (achieved in ).
- Edge Range for a Graph with Exactly Connected Components:
- Minimum Edges: Occurs when every component is a tree:
- Maximum Edges: To maximize edges while maintaining disconnected components, make components isolated vertices (), and consolidate all remaining vertices into a single complete clique:
If a simple graph with vertices has:
then is strictly guaranteed to be connected!
Proof: Setting in the component upper bound formula gives the maximum edges in any disconnected graph:
This maximum is realized by a complete graph plus 1 isolated vertex . Adding even one more edge () forces an incident edge to the isolated vertex, uniting the graph into a single connected component!
- Complement Connectivity Theorem: If a simple graph is disconnected, then its complement is always connected! (Moreover, the diameter of satisfies ).
- Minimum Degree Connectivity Guarantee: If every vertex in satisfies: then is guaranteed to be connected!
- Two Odd Vertices Path Theorem: If an undirected graph has exactly two vertices of odd degree, there must exist a path connecting them (they must reside in the exact same connected component)! Proof: By the Odd-Degree Parity Theorem, every connected component must contain an even number of odd-degree vertices. Since there are only two odd vertices in the entire graph, they cannot be split into different components (which would leave 1 odd vertex per component, an impossibility). Hence, both must reside in the same component.
π Single Points of Failure: Cut-Vertices & Bridgesβ
Let be a connected graph:
- Cut-Vertex (Articulation Point): A vertex is a cut-vertex if removing and all its incident edges increases the number of connected components:
- Bridge (Cut-Edge): An edge is a bridge if removing (retaining its endpoints) increases the number of connected components:
An edge in a connected graph is a bridge if and only if does NOT belong to any simple cycle in !
Proof:
- Forward (): Suppose belongs to a cycle . If we delete edge , the remaining cycle edges provide an alternative detour path between and . Thus, and remain connected, and . Hence, cannot be a bridge!
- Backward (): If is not a bridge, then upon deleting , and must still be connected by some path . Combining path with edge forms a simple cycle containing . Therefore, an edge is a bridge if and only if it lies on zero cycles!
π‘οΈ Quantitative Connectivity: Whitney's Theoremβ
How many vertex or edge failures can a network endure before disconnecting?
The 3 Quantitative Connectivity Parameters
Measuring physical robustness and network fault-tolerance
Vertex Connectivity (ΞΊ(G))
Node Resilience- The minimum number of vertices whose removal disconnects G or leaves a single vertex.
- ΞΊ(Kβ) = n - 1 (cannot disconnect complete graph except by shrinking to 1 vertex).
- If G has a cut-vertex, then ΞΊ(G) = 1.
Edge Connectivity (Ξ»(G))
Link Resilience- The minimum number of edges whose removal disconnects G.
- If G has a bridge, then Ξ»(G) = 1.
- Always satisfies: Ξ»(G) β€ minimum vertex degree Ξ΄(G).
Minimum Degree (Ξ΄(G))
Local Weak Link- Ξ΄(G) = min { deg(v) | v β V }.
- Isolating the vertex of minimum degree requires cutting at most Ξ΄(G) edges.
- Acts as a hard theoretical upper bound on both ΞΊ and Ξ».
For any connected graph :
(Vertex Connectivity Edge Connectivity Minimum Degree).
- Removing all edges incident to a minimum-degree vertex isolates it, proving .
- For each edge in an edge cut, picking one incident vertex forms a vertex cut (with minor boundary cases), proving .
π Step-by-Step Worked Examplesβ
Example 1: Calculating Connectivity Bounds for Guaranteed Connectionβ
Problem Statement:
- What is the minimum number of edges needed in a simple graph with vertices to guarantee that the graph is connected?
- If a graph has vertices and connected components, what is the maximum number of edges it can contain?
Step-by-Step Solution:
-
Part 1: Guaranteed Connectivity ()
- By Theorem 9.2, the most densely-connected disconnected graph with vertices consists of a complete clique plus an isolated vertex .
- The number of edges in is:
- With 10 edges, the graph can still be disconnected.
- Adding 1 additional edge forces a connection between the isolated vertex and the clique!
- Minimum edges for guaranteed connection:
-
Part 2: Maximum Edges with Components ()
- By Theorem 9.1:
- Achieved when 2 components are isolated vertices (), and the remaining component is a complete graph on 8 vertices ().
Key Takeaway: To maximize edges while preserving components, isolate components as single vertices and condense the remaining vertices into one large complete clique.
Example 2: Finding Articulation Points, Bridges, and Connectivityβ
Problem Statement: Consider the graph shown in the vector diagram above with vertices and edges:
- Identify all cycles.
- Identify all bridges.
- Identify all cut-vertices.
- Compute , , and and verify Whitney's Inequality.
Step-by-Step Solution:
-
Step 1: Identify Cycles
- Cycle 1: (Triangle ).
- Cycle 2: (Triangle ).
-
Step 2: Identify Bridges
- By the Cycle-Bridge Theorem (Theorem 9.4), an edge is a bridge if and only if it does not belong to any cycle.
- The edge connects the two triangles and belongs to zero cycles!
- Removing splits the graph into component and component .
- Bridge: .
-
Step 3: Identify Cut-Vertices
- Removing vertex disconnects from . Hence, vertex is a cut-vertex!
- Removing vertex disconnects from . Hence, vertex is a cut-vertex!
- Removing vertices or leaves the rest of the graph connected.
- Cut-Vertices: .
-
Step 4: Compute Connectivity Parameters
- Minimum degree : .
- Edge connectivity : Since the graph contains a bridge , removing 1 edge disconnects it .
- Vertex connectivity : Since the graph contains a cut-vertex (e.g. vertex 3), removing 1 vertex disconnects it .
- Whitney's Inequality Check:
Key Takeaway: A single bottleneck bridge connecting two dense clusters simultaneously creates an edge connectivity of 1 and articulation points at both its endpoints.
π― Exam & Interview Pitfall Checkβ
Question 1: Can a vertex of degree 1 ever be a cut-vertex? Key Focus Points: No! If you remove a vertex of degree 1 (a leaf) and its single incident edge, the remaining vertices remain as connected as they were before. Removing a leaf never increases the number of connected components: . Only the neighbor of a leaf can potentially be a cut-vertex!
Question 2: If a disconnected graph has 10 vertices, what is the maximum number of edges it can contain? Key Focus Points: A disconnected graph must have at least components. By the component upper bound formula:
This corresponds to a component ( edges) and 1 isolated vertex ( edges).
Trap 1: Confusing Trails with Paths Why it fails: In a trail, edges cannot repeat, but vertices can repeat! For example, in a figure-eight graph shaped like an '8', traversing the bottom loop and then the top loop visits the central intersection vertex twice. That route is a valid Trail, but it is NOT a Path!
Trap 2: Assuming always holds Why it fails: Just because every server in a cluster has degree 4 does NOT mean the cluster can survive 4 failures! If two large 4-regular cliques are connected by a single bridge edge, , but and . Never assume connectivity equals minimum degree without proving 2-connectivity!