Bellman–Ford algorithm: Difference between revisions

Content deleted Content added
Line 94:
}
}
for(int i = 0; i < edgecount; i++)
{
if(distance[edges[i].dest] > distance[edges[i].source] + edges[i].weight)