Jump to content

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)$_(|I._=,y)},($$i.@,~)#y)*1>.y->./(,y)-._
for_j. i.#y do.
d=. y <. j ({"1 +/ {) y
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.