import shortest_path correctly
This commit is contained in:
parent
2b0df524cb
commit
ce49a103da
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ class Router:
|
||||||
@cached_property
|
@cached_property
|
||||||
def shortest_path_func(self):
|
def shortest_path_func(self):
|
||||||
# this is effectively a lazy import to save memory… todo: do we need that?
|
# 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
|
return shortest_path
|
||||||
|
|
||||||
def shortest_path(self, restrictions, options):
|
def shortest_path(self, restrictions, options):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue