Groups
Category
Johnson's Algorithm computes all-pairs shortest paths on sparse graphs by first removing negative edges via reweighting, then running Dijkstra from every vertex.
BellmanโFord finds single-source shortest paths even when some edge weights are negative.