Fill the level , in - time and out - time of all nodes
dfs ( 1 , - 1 , g , level , t_in , t_out ) ; int mint = int . MaxValue , maxt = int . MinValue ; int minv = - 1 , maxv = - 1 ; for ( int i = 0 ; i < v . Count ; i ++ ) {