The algorithm computes from one source vertex the whole thing.
If i want to detect negative cycles in a graph using bellman ford, if i assume vertex 1 as the source, and no edge comes out of the vertex 1 in that test set, it wont work.
how will you consider source vertex in these cases... to detect negative cycles
Asking for solutions..