add shortest-path class