Floyd-Warshall algorithm: Difference between revisions
J: bugfix (thanks to Danil Osipchuk)
m (centered the figure (in the task's preamble).) |
(J: bugfix (thanks to Danil Osipchuk)) |
||
Line 677:
<lang J>floydrecon=: verb define
n=. ($y)$_(
for_j. i.#y do.
d=. y <. j ({"1 +/ {) y
|