Dijkstra test has edges removed after the initial algorithm is done.