Update shortest path scripts