Fill the level , in - time and out - time of all nodes
dfs ( 1 , - 1 , g , level , t_in , t_out ) NEW_LINE mint = INT_MAX NEW_LINE maxt = INT_MIN NEW_LINE minv = - 1 NEW_LINE maxv = - 1 NEW_LINE for i in v : NEW_LINE