You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't mutate self, so it could just take an immutable &self ref.
Also, it seems like get_path_to shouldn't need to consume self -- &mut self would be fine, and allow reusing the SSSP calculation without cloning the entire Dijkstra structure. But maybe I'm missing something.
The text was updated successfully, but these errors were encountered:
cemeyer
added a commit
to cemeyer/graphlib
that referenced
this issue
Dec 9, 2021
It doesn't mutate
self
, so it could just take an immutable&self
ref.Also, it seems like
get_path_to
shouldn't need to consumeself
--&mut self
would be fine, and allow reusing the SSSP calculation without cloning the entireDijkstra
structure. But maybe I'm missing something.The text was updated successfully, but these errors were encountered: