Completed Strong connect problem and Dijkstra problem