Degrees, Paths, Cycles
& Connectivity
Explore how vertex degrees, paths, and cycles reveal the structure and connectivity of graphs in discrete mathematics.
What is a Graph?
A graph \( G = (V, E) \) consists of a set of vertices (nodes) \( V \) and a set of edges \( E \) that connect pairs of vertices. Graphs model relationships: friendships, road networks, web links, and much more.
Vertex Degree
The degree of a vertex \( v \), written \( \deg(v) \), is the number of edges incident to \( v \). It tells you how "connected" that vertex is.
Walks, Paths, and Trails
What is a Cycle?
A cycle is a path that starts and ends at the same vertex, with at least 3 edges. More precisely: a closed trail where the only repeated vertex is the start/end vertex.
Graph Connectivity
A graph is connected if there exists a path between every pair of vertices. Otherwise, it breaks into connected components: maximal connected subgraphs.
The Handshaking Theorem
One of the most fundamental results in graph theory: the sum of all vertex degrees equals twice the number of edges.
Handshaking in Action
Path vs Cycle vs Walk
| Walk | Trail | Path | Cycle | |
|---|---|---|---|---|
| Repeated edges? | Yes | No | No | No |
| Repeated vertices? | Yes | Yes | No | Start = End only |
| Closed? | Maybe | Maybe | No | Always |
| Min edges | \( 0 \) | \( 0 \) | \( 0 \) | \( 3 \) |
Connected vs Disconnected
How to Check Connectivity
Example 1: Degree Sequence
Example 2: Finding Paths and Cycles
Example 3: Connectivity Check
Bridges and Cut Vertices
Common Mistakes
Summary of Key Concepts
| Concept | Definition | Key Property |
|---|---|---|
| Degree \( \deg(v) \) | Number of edges at \( v \) | \( \sum \deg(v) = 2|E| \) |
| Path | Walk with no repeated vertices | Open, unique route |
| Cycle | Closed path, \( \geq 3 \) edges | Start = End vertex |
| Connected | Path between all vertex pairs | 1 component, \( \geq n-1 \) edges |
| Bridge | Edge whose removal disconnects | Critical edge |
| Cut Vertex | Vertex whose removal disconnects | Critical vertex |
Question 1 of 5
A graph has 5 vertices with degree sequence \( (2, 3, 3, 4, 4) \). How many edges does it have?
Question 2 of 5
A traversal in a graph follows the vertex sequence A-B-C-B-D. Which statement best describes this traversal?
Question 3 of 5
A connected graph has 8 vertices. What is the minimum number of edges it can have?
Question 4 of 5
By the Handshaking Theorem, can a graph exist with 5 vertices, each of degree 3?
Question 5 of 5
In a graph, removing a single edge splits the graph into two components. That edge is called a: