Algorithms
Algorithms copied to clipboard
Update BellmanFordAdjacencyList.java
trafficstars
The relaxation should be running n-1 times. We don't need to run the algo again n-1 times but only once on each edge to see if the value decreases and then we can confirm a negative cycle
issue : https://github.com/williamfiset/Algorithms/issues/316