hamilton cycle: working