In graph theory, Eulerian and Hamiltonian graphs are two important types of graphs related to specific types of paths and cycles. These concepts have applications in optimization problems, circuit design, and network analysis.
An Eulerian graph is a graph in which there exists a path that visits every edge exactly once. This path is called an Eulerian Path. If the Eulerian path forms a cycle (i.e., it starts and ends at the same vertex), it is called an Eulerian Circuit.
Euler's theorems provide the conditions under which a graph has an Eulerian path or an Eulerian circuit:
Eulerian Circuit: A graph contains an Eulerian circuit if and only if the graph is connected and every vertex has an even degree. This is known as Euler’s Theorem for Eulerian Circuits.
Eulerian Path: A graph contains an Eulerian path if and only if the graph is connected and has exactly 0 or 2 vertices with an odd degree. This is known as Euler’s Theorem for Eulerian Paths.
In summary:
Consider the graph :
A --- B
| |
D --- C
This graph has 4 vertices: and 4 edges. The degree of each vertex is 2, which is even. Therefore, this graph has an Eulerian Circuit, and the path could be:
This is an Eulerian Circuit because all edges are visited exactly once, and the path starts and ends at the same vertex.
A Hamiltonian graph is a graph that contains a Hamiltonian cycle, a cycle that visits every vertex exactly once and returns to the starting vertex. Unlike Eulerian graphs, the focus here is on visiting all vertices rather than all edges.
There are no simple, universal theorems like Euler’s Theorem for Hamiltonian paths and cycles. The conditions for Hamiltonian cycles and paths are generally more complex, and there is no simple characterization like the degree conditions for Eulerian graphs.
Determining whether a graph contains a Hamiltonian path is a NP-complete problem. This means that it is computationally difficult to find a Hamiltonian path (or to determine if one exists) in large graphs.
Consider the following graph :
A --- B
| |
D --- C
This graph has 4 vertices: and 4 edges. A possible Hamiltonian cycle could be:
This cycle visits every vertex exactly once and returns to the starting vertex, making the graph Hamiltonian.
| Property | Eulerian Graphs | Hamiltonian Graphs |
|---|---|---|
| Focus | Concerned with visiting every edge exactly once. | Concerned with visiting every vertex exactly once. |
| Eulerian Path | Exists if there are 0 or 2 vertices of odd degree and the graph is connected. | Not necessarily related to vertex degrees. |
| Eulerian Circuit | Exists if all vertices have even degree and the graph is connected. | A Hamiltonian cycle exists if there is a cycle that visits each vertex exactly once. |
| Conditions | Degree conditions: All vertices must have even degree for a circuit, exactly 2 odd-degree vertices for a path. | No simple degree condition. The problem is NP-complete. |
| Applications | Useful in problems like garbage collection routes, circuit board design. | Useful in solving problems like the Travelling Salesman Problem. |
Eulerian Graphs:
Hamiltonian Graphs:
Complete Graphs (Kₙ):
Cycle Graphs (Cₙ):
Tree Graphs:
Understanding these graph properties is essential for various applications, including optimization problems, network routing, and circuit design.
Open this section to load past papers