Update shortest_paths.hpp