Use the correct next pointer.
This commit is contained in:
parent
8b55dfacb1
commit
b834d67d7c
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ void mst_kruskal(void)
|
|||
|
||||
/* Starting point */
|
||||
|
||||
for(node = edge_weight_tree->head; node; node = next) {
|
||||
for(node = edge_weight_tree->head; node; node = node->next) {
|
||||
e = node->data;
|
||||
if(e->from->status.reachable) {
|
||||
e->from->status.visited = true;
|
||||
|
|
Loading…
Reference in a new issue