Q.

A graph is said to have a negative weight cycle when?

A. the graph has 1 negative weighted edge
B. the graph has a cycle
C. the total weight of the graph is negative
D. the graph has 1 or more negative weighted edges
Answer» C. the total weight of the graph is negative
Explanation: when the total weight of the graph sums up to a negative number then the graph is said to have a negative weight cycle. bellmann ford algorithm provides no solution for such graphs.
749
0
Do you find this helpful?
9

Discussion

No comments yet