Bellman–Ford algorithm: Difference between revisions

Content deleted Content added
m warnfile Adding:fr
m occured -> occurred
Line 77:
if(distance[edges[i].dest] > distance[edges[i].source] + edges[i].weight)
{
printf("Error occuredoccurred. Negative edge weight cycles detected");
break;
}
Line 99:
INFINITY dd 1
format_string1 db "Error occuredoccurred. Negative edge weight cycles detected", 0
format_string2 db "The shortest distance between nodes %i and %i is %i", 0
extern _printf