Loop to run DFS Traversal on vertex which is not visited
for i in range ( n ) : NEW_LINE INDENT if ( col [ i ] == 0 ) : NEW_LINE INDENT dfs ( i ) ; NEW_LINE DEDENT DEDENT print ( 2 if cyc else 1 ) NEW_LINE