dijkstra without bonus, no path printing