dijkstra is now greedy