xkcd #2821: Path Minimization

Link to comic: https://xkcd.com/2821/