in Algorithms retagged by
1,380 views
0 votes
0 votes
Consider the statements True/ False

Bellman Ford algorithm reports a shortest path from source to a destination only in a directed graph which has a negative cycle.
in Algorithms retagged by
1.4k views

2 Comments

False.

BF works for undirected graphs also only condition is it shouldn't have negative wt cycle.
0
0

1 Answer

0 votes
0 votes
Bellman ford only finds whether a negative weight cycle is reachable from source or not.