add shortest path