基本没什么用的算法
use queue to optimize Bellman Ford
If there are negative edges
The time complexity is very hard to estimate.
SPFA一般只用于费用流和判断负环,没有负环尽量使用SPFA。
其中判断负环的又分为几种情况。
可能需要求解
Luogu P3371
最短路模板
Luogu P4779
最短路模板
Luogu P1821
正反两次最短路
Luogu P2419
传递闭包