Hamiltonian path/cycle

Construct a cycle visiting each vertex exactly once.

Construct a cycle visiting each vertex exactly once.

Construct a path visiting each vertex exactly once.