Find the Shortest distance from P to A.
There are Many ways to reach from P to A.
P → C → A
P → B → A
P →E→B→A
P→B→C→A
P→E→D→A
Ways 3,4,5 are anyway longer than way 1 and 2
Now Let’s check the ways 1) & 2)
1)
P → C → A
P → C = 6 km
C → A = 3 km
P → C → A = 6 + 3 = 9 km
2)
P → B → A
P → B = 1 km
B → A = 2 km
P → B → A= 1 + 2 = 3 km
Hence the shortest distance from
P → A is 3 km