hamiltonian to debruijn graph change