We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c632b commit 841a1bdCopy full SHA for 841a1bd
include/dijkstra.h
@@ -52,7 +52,7 @@ namespace alg {
52
// all vertices
53
Graph::Adjacent * a;
54
list_for_each_entry(a, &g.list(), a_node){
55
- dist[a->v.id] = LARGE_NUMBER; // set inital distance to each vertex to a large number
+ dist[a->v.id] = LARGE_NUMBER; // set initial distance to each vertex to a large number
56
(*previous)[a->v.id] = UNDEFINED; // clear path to UNDEFINED
57
visited[a->v.id] = false; // all vertices are not visited
58
Q.push(LARGE_NUMBER, a->v.id); // push all vertices to heap
0 commit comments