minor updates to shortest_path and min_spanning_tree