For the following definitions, let u and v be vertices of a graph G:
| Example: | Given the graph below,
(a) determine which of the following walks are paths, simple paths, circuits, or simple circuits: (i) v2e3v3e5v4e7v6 (ii) e2e3e9e7e7e5e6 (iii) v3v4v2v3 (iv) v5v3v4v2v3v5 (b) find a walk of length 4, and a walk of length 8. |
Let G be a graph, and u and v be two vertices of G:
| Euler circuit | An Euler circuit for G is a circuit that contains every vertex and every edge of G. It is a sequence of adjacent vertices and edges in G that starts and ends at the same vertex, uses every vertex of G at least once, and uses every edge of G exactly once. |
| Euler path | An Euler path from u to v is a sequence of adjacent edges and vertices that starts at u, ends at v, passes through every vertex of G at least once, and traverses every edge of G exactly once. |
Other properties:
| 1. | If a graph has an Euler circuit, every vertex of that graph has even degree. (In contrast, a graph does not have an Euler circuit if some vertex of that graph has odd degree.) |
| 2. | An Euler path exists from u to v if, and only if, G is connected, u and v have odd degree, and all other vertices of G have even degree. |
Example: Do
either of the following graphs have an Euler circuit or an Euler
path?
|
Graph 1
|
Graph 2
|
| Given graph G, a Hamiltonian path is a path that contains every vertex of G. A Hamiltonian circuit is a simple circuit that includes every vertex of G. |
Other properties:
| If graph G has a Hamiltonian circuit, then G has a subgraph H with the following properties: | |
| 1. | H contains every vertex of G; |
| 2. | H is connected; |
| 3. | H has the same number of edges as vertices; and |
| 4. | every vertex of H has degree 2. |
| Example: | Show that the diagram below contains a Hamiltonian circuit.
|