BIT152 ยท 2082 ยท 5 marks
Mention the necessary and sufficient conditions for Euler path and Euler circuit with example.
Mention the necessary and sufficient conditions for Euler path and Euler circuit with example. [5]
Quick answer
This graph does NOT have an Euler Circuit (B and C have odd degree).
Euler Path and Euler Circuit: Necessary and Sufficient Conditions
Definitions
- Euler Path: A path in a graph that visits every edge exactly once.
- Euler Circuit: A closed path (circuit) in a graph that visits every edge exactly once and starts and ends at the same vertex.
Conditions for Euler Path
Necessary and Sufficient Conditions:
A connected graph G has an Euler Path if and only if it has exactly two vertices of odd degree.
The path must start at one odd-degree vertex and end at the other odd-degree vertex.
Example:
Consider the graph:
A --- B --- C
| |
D ------- E
Edges: A-B, B-C, C-E, E-D, D-A, B-E
Degree of each vertex:
| Vertex | Degree |
|---|---|
| A | 2 (even) |
| B | 3 (odd) |
| C | 2 (even) |
| D | 2 (even) |
| E | 3 (odd) |
- Exactly two odd-degree vertices: B and E
- Therefore, an Euler Path exists, starting at B and ending at E (or vice versa).
- Example path: B โ A โ D โ E โ C โ B โ E
Conditions for Euler Circuit
Necessary and Sufficient Conditions:
A connected graph G has an Euler Circuit if and only if every vertex has even degree.
Since the circuit must return to the starting vertex, every time we enter a vertex we must also be able to leave it, requiring even degree for all vertices.
Example:
Consider the graph:
A --- B
| / |
| / |
| / |
C --- D
Edges: A-B, A-C, B-C, B-D, C-D
Degree of each vertex:
| Vertex | Degree |
|---|---|
| A | 2 (even) |
| B | 3 (odd) |
| C | 3 (odd) |
| D | 2 (even) |
Now consider a simpler graph -- a cycle C4:
A --- B
| |
D --- C
Edges: A-B, B-C, C-D, D-A
| Vertex | Degree |
|---|---|
| A | 2 (even) |
| B | 2 (even) |
| C | 2 (even) |
| D | 2 (even) |
- All vertices have even degree
- Euler Circuit exists: A โ B โ C โ D โ A
Summary Table
| Condition | Euler Path | Euler Circuit |
|---|---|---|
| All vertices even degree | Yes (also a circuit) | Yes |
| Exactly 2 odd-degree vertices | Yes | No |
| More than 2 odd-degree vertices | No | No |
| Graph must be | Connected | Connected |
Key Point: An Euler Circuit is a special case of an Euler Path where the start and end vertex are the same, requiring the stricter condition that all vertices have even degree.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.