Groups
Category
Level
SPFA is a queue-based optimization of BellmanโFord that only relaxes edges from vertices whose distance just improved.