Johnson's algorithm: Difference between revisions

Content deleted Content added
why non-negative reweighted edges is a useful condition
better link to sparsity
Line 1:
{{Tree search algorithm}}
 
'''Johnson's algorithm''' is a way to solve the [[all-pairs shortest path problem]] in a [[sparse matrixgraph|sparse]], [[weighted graph|weighted]], [[directed graph]] in which some of the edge weights may be [[negative number]]s, but no negative-weight [[cycle (graph theory)|cycles]] exist.
 
It consists of the following steps: