Skip to content

Commit f8fcd55

Browse files
Fix arg for print_dist function
1 parent fcf82a1 commit f8fcd55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎graphs/dijkstra_2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def dijkstra(graph, v, src):
3535
):
3636
mdist[i] = mdist[u] + graph[u][i]
3737

38-
print_dist(mdist, i)
38+
print_dist(mdist, v)
3939

4040

4141
if __name__ == "__main__":

0 commit comments

Comments
 (0)