Avoid visited vertices on dijkstra function.