Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

AndreiBalanici's blog

By AndreiBalanici, history, 7 years ago, In English

Does Floyd-Warshall Algorithm work on graphs with negative edges?

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Yes, it works. It can be also used to detect negative cycles.