Jump to content

Dijkstra's algorithm: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 2,139:
 
(calculate-shortest-path)
</lisplang>
 
outputs:
 
<pre>from a to e:
from a to e:
shortest distance: 26
shortest route: (a c d e)
Line 2,150 ⟶ 2,151:
shortest distance: 11
shortest route: (a c f)
--</pre>
</pre>
 
=={{header|Erlang}}==
59

edits

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