aga,agar: The Bellman-Ford algorithm
This adds the Bellman-Ford single-source shortest path algorithm to
the aga and agar modules. The Bellman-Ford algorithm is (usually)
slower than Dijkstra's algorithm, but unlike Dijkstra's is able to
cope with negative edge costs, unless they form a negative cost cycle.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Showing
ccan/aga/bellman_ford.c
0 → 100644
Please register or sign in to comment