I think Dijkstra algo. works fine with negative weight in connected graphs but not with negative cycle..if we have -ve weight but no cycle then it will give the shortest path ryt??
refer gate 2008 questing...
Dijkstra gives incorrect result in -ve wt. cycle without detecting
Bellman ford obviously works fine in case of -ve weight and also used to detect the negative cycle..It tells there is -ve wt. cycle and never gives wrong result....????