shortest_path function

Find shortest path between a pair of nodes in the network.