pllk / cphb

Competitive Programmer's Handbook
2.9k stars 347 forks source link

Chapter 13: Bellman-Ford negative cycle example #73

Open hieudoan7 opened 4 years ago

hieudoan7 commented 4 years ago

I have read book's older version and found out so confused on example. Now, it's fix to all positive edges in first example but the example for negative cycle is still confusing. It also have a shorten negative cycle is (3->4->3). So, I think it will be more proper when you put the directed graph in this example section.