call is_cycle to check if it contains cycle
if ( isCycle ( adj , V ) ) : NEW_LINE INDENT print ( " Graph ▁ contains ▁ Cycle . " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Graph ▁ does ▁ not ▁ contain ▁ Cycle . " ) NEW_LINE DEDENT