Dijkstra's algorithm for calculating shortest (least costly) route in a graph. Mirror of https://codeberg.org/sciss/Dijkstra