Trying to return all shortest paths, not sure why it's not working