import shortest_path correctly

This commit is contained in:
Laura Klünder 2024-02-07 20:05:32 +01:00
parent 2b0df524cb
commit ce49a103da

View file

@ -401,7 +401,7 @@ class Router:
@cached_property
def shortest_path_func(self):
# this is effectively a lazy import to save memory… todo: do we need that?
from scipy.sparse.csgraph._shortest_path import shortest_path
from scipy.sparse.csgraph import shortest_path
return shortest_path
def shortest_path(self, restrictions, options):