Maths WorkshopMaths problems with full solutions
Exercise 961Combinatorics › Graph theoryL1Added 3 Nov 2026

Hamiltonian cycles (example)

#Hamiltonian#cycle#NP-hard

Statement

Give an example of a graph with a Hamiltonian cycle but no Eulerian circuit.

Hint

A triangle with a pendant edge at each vertex.

Show solutionHide solution

Solution

Example. GG = cycle 11-22-33-44-55-11 plus pendant edges 11-1′1', 22-2′2', 33-3′3', 44-4′4', 55-5′5'.

Hamiltonian. The cycle 11-22-33-44-55-11 visits all 1010 vertices.

Eulerian? No: the leaves 1′,2′,…1',2',\ldots have degree 11 (odd).

Conclusion. Hamiltonian cycle exists, Eulerian circuit does not.