update for poj3694, scc ,rebuild graph,lca