Computing shortest paths for any number of hops | Synapse