0
Which shortest-path algorithm can detect a negative-weight cycle that is reachable from the source vertex?
- ADijkstra's algorithm
- BBellman–Ford algorithm
- CPrim's algorithm
- DKruskal's algorithm
Correct answer: B
Which shortest-path algorithm can detect a negative-weight cycle that is reachable from the source vertex?