update Dijkstra's algorithm post