Why not its a cyle

In this video there is edge from 1 to 5 and 1 to 2 to 3 to 4 to 5…why prateek bhaiya said that this is not a cycle

Hey @anuranjan8319918906
We say cycle exist when we can start and end at starting position without lifting out pen following some path.
So here if we start from 1 then we can reach 5 but from 5 there is no path back to 1
if edge was 5 to 1 instead then we say its a cycle. :slight_smile:

If this resolved ur doubt then please Hit a Like :slight_smile: