Implement the shortest path algorithm for a network of gossip.