Dijkstra's algorithm: Difference between revisions

Content added Content deleted
Line 1,233:
 
=={{header|Ruby}}==
This solution is incorrect. Since the path is directed and f is only a sink, f cannot be in the middle of a path.
 
{{works with|Ruby|1.9.2+}} (for INFINITY)
Notes for this solution: