Want to test old version with latest patches.
Revert "Temporal fix for broken hopes."
This reverts commit df42bc3621
.
This commit is contained in:
parent
655d8a0f67
commit
fcc0c2239f
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ static void sssp_bfs(void) {
|
||||||
|
|
||||||
// Only update nexthop if it doesn't increase the path length
|
// Only update nexthop if it doesn't increase the path length
|
||||||
|
|
||||||
if(!e->to->status.visited || (e->to->distance == n->distance + 1 && e->weight <= e->to->prevedge->weight))
|
if(!e->to->status.visited || (e->to->distance == n->distance + 1 && e->weight >= e->to->prevedge->weight))
|
||||||
e->to->nexthop = (n->nexthop == myself) ? e->to : n->nexthop;
|
e->to->nexthop = (n->nexthop == myself) ? e->to : n->nexthop;
|
||||||
|
|
||||||
e->to->status.visited = true;
|
e->to->status.visited = true;
|
||||||
|
|
Loading…
Reference in a new issue