Codeforces will not be available in the period 01:00-05:00 May, 30 (MSK, UTC +3) because of maintenance. ×

AndreiBalanici's blog

By AndreiBalanici, history, 7 weeks ago, In English,

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

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

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

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