My Output is Wrong can you please check my code?

https://codeshare.io/G6vEEQ.

this is my output:
for all the cases
Node 1 is at Distance 0
Node 2 is at Distance 2147483647
Node 3 is at Distance 2147483647