Bellman–Ford algorithm: Difference between revisions

Content deleted Content added
mNo edit summary
Line 49:
}Edge;
void BellmanFord(Edge edges[], size_t edgecount, size_t nodecount, size_t source) // nodecount = number of vertices
{
int* distance = (int*) malloc(nodecount*sizeof(int));
Line 80:
}
}
 
== Applications in routing ==