Floyd-Warshall algorithm: Difference between revisions

Content deleted Content added
m centered the figure (in the task's preamble).
Rdm (talk | contribs)
J: bugfix (thanks to Danil Osipchuk)
Line 677:
 
<lang J>floydrecon=: verb define
n=. ($y)$_(|I._=,y)},($$i.@,~)#y)*1>.y->./(,y)-._
for_j. i.#y do.
d=. y <. j ({"1 +/ {) y