Calculating the shortest path

+3
NODE
node
OUTPUT