In - time for node
t_in [ node ] = T NEW_LINE for i in g [ node ] : NEW_LINE INDENT if ( i != parent ) : NEW_LINE INDENT T += 1 NEW_LINE dfs ( i , node , g , level , t_in , t_out ) NEW_LINE DEDENT DEDENT T += 1 NEW_LINE