Skip to content
Snippets Groups Projects
Commit 451a7535 authored by Kevin Lin's avatar Kevin Lin
Browse files

_slides: 'Wait, but is this really always true?'

parent 8cd9bb0b
No related branches found
No related tags found
No related merge requests found
Pipeline #397625 passed with stages
in 45 seconds
......@@ -70,6 +70,7 @@ dijkstra(Graph graph, Vertex start, V end) {
Vertex to = edge.to();
if (end.equals(to)) {
// edgeTo stores the shortest path from start to end
// Wait, but is this really always true?
return;
}
double oldDist = distTo.getOrDefault(to, Double.INFINITY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment