Moves Without Forbidden Transitions in a Graph