Loop to print the distance of every node from source vertex
for ( int i = 0 ; i < dist . Length ; i ++ ) { if ( dist [ i ] == infi ) { Console . Write ( " { 0 } ▁ and ▁ { 1 } ▁ are ▁ not ▁ " + " connected STRNEWLINE " , i , s ) ; continue ; } Console . Write ( " Distance ▁ of ▁ { 0 } th ▁ vertex ▁ " + " from ▁ source ▁ vertex ▁ { 1 } ▁ is : ▁ { 2 } STRNEWLINE " , i , s , dist [ i ] ) ; } } }