A cycle whose edge weights sum to less than zero, so going around it forever keeps lowering the cost.
When one is reachable, no shortest path exists. Bellman-Ford detects it.
A cycle whose edge weights sum to less than zero, so going around it forever keeps lowering the cost.
When one is reachable, no shortest path exists. Bellman-Ford detects it.