[Math] Proof of Hamiltonian Cycle in a Complete Bipartite Graph

graph theoryhamiltonian-path

A complete Bipartite graph $K_{m,n}$ has a Hamiltonian cycle if and only if $m=n$.

I want to know if the following proof technique is correct. My proof will consider using proof by contradiction.

Assume that $m\not = n$. Let $H$ be the (Hamilton) cycle that goes through every vertex in $K_{m,n}$. $ H = v_0e_0v_1e_1…v_ie_i$. Since $K$ is bipartite, the cycle must alternate between the vertices on each side. Since $m\not = n$ there exists a $v_a = v_b, a < b$ inside cycle H. This leads to a contradiction since a cycle cannot have repeating vertices. Hence, a complete Bipartite graph $K_{m,n}$ has a Hamilton cycle if and only if $m= n$.

Is this correct?

Best Answer

Other direction can be prove in following way. As noted any cycle in bipartite graph will be of even length, and will alternate between the vertices of partite-sets. That means any Hamiltonian cycle in $K_{n,n}$ will have equal number of elements from both the partite-sets and as it covers entire vertex set, together we get $m=n$.