Difference between hamiltonian path and euler path

mousey picture mousey · Jul 16, 2010 · Viewed 101.4k times · Source

Can some one tell me the difference between hamiltonian path and euler path. They seem similar!

Answer

Chris Diver picture Chris Diver · Jul 16, 2010

An Euler path is a path that passes through every edge exactly once. If it ends at the initial vertex then it is an Euler cycle.

A Hamiltonian path is a path that passes through every vertex exactly once (NOT every edge). If it ends at the initial vertex then it is a Hamiltonian cycle.

In an Euler path you might pass through a vertex more than once.

In a Hamiltonian path you may not pass through all edges.