Bellman Ford Algorithm, Data Structure Algorithm, Algorithms, Weighted Graph, Graph Data Structure.
weights very well so you may find an answer which is not the optimal solution to the problem. But that’s where the Bellman-Ford algorithm comes into the picture which can handle negatively weighted edges in the graph unless the graph consists of negative weighted edge cycles. The approach is also