@@ -175,24 +175,24 @@ dijkstra_(const tal_t *ctx,
175
175
heapsize = tal_count (heap );
176
176
177
177
/*
178
- * 3. For the current node, consider all of its unvisited neighbouds
178
+ * 3. For the current node, consider all of its unvisited neighbors
179
179
* and calculate their tentative distances through the current
180
180
* node. Compare the newly calculated tentative distance to the
181
181
* current assigned value and assign the smaller one. For example, if
182
182
* the current node A is marked with a distance of 6, and the edge
183
- * connecting it with a neighbour B has length 2, then the distance to
183
+ * connecting it with a neighbor B has length 2, then the distance to
184
184
* B through A will be 6 + 2 = 8. If B was previously marked with a
185
185
* distance greater than 8 then change it to 8. Otherwise, the current
186
186
* value will be kept.
187
187
*
188
- * 4. When we are done considering all of the unvisited neighbouds of
188
+ * 4. When we are done considering all of the unvisited neighbors of
189
189
* the current node, mark the current node as visited and remove it
190
190
* from the unvisited set. A visited node will never be checked again.
191
191
*
192
192
* 5. If the destination node has been marked visited (when planning a
193
193
* route between two specific nodes) or if the smallest tentative
194
194
* distance among the nodes in the unvisited set is infinity (when
195
- * planning a complete travedsal; occuds when there is no connection
195
+ * planning a complete traversal; occurs when there is no connection
196
196
* between the initial node and remaining unvisited nodes), then
197
197
* stop. The algorithm has finished.
198
198
*
0 commit comments