Can you please explain the condition for cycle

Can you please explain the condition for cycle.Why there are two condition.Its not clear in the video

condition for cycle is that

you must visited node at least twice
but when you visit 2nd time it should not come through parents