Floyd-Warshall algorithm: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Minor tidy)
Line 2,916: Line 2,916:
end.
end.
)</syntaxhighlight>
)</syntaxhighlight>

Alternate implementation (same behavior):

<syntaxhighlight lang=J>floyd=: ]F..(]<.{"1+/{) i.@#</syntaxhighlight>


Example use:
Example use: