How to find the shortest path in a network graph or diagram - shortest path problem example 2