Detect negative cycle in Bellman-Ford Algorithm
Bellman ford algorithm is used to find the single shortest path in a graph with negative edge weight(but it should not contain negative cycles).
In this article we will discussed about how to detect negative cycle in a Bellman Ford algorithm?
What i...
ashu145.hashnode.dev3 min read