Working on random graph and removed recursive Tarjan