Two algorithms for shortest-paths problems in edge-weighted directed graphs | Synapse