Condition to check if there is no path between the vertices
if ( path [ i ] == - 1 ) { Console . WriteLine ( " Path ▁ not ▁ found ! ! " ) ; return ; } printPath ( path , path [ i ] , s ) ; Console . WriteLine ( path [ i ] + " ▁ " ) ; } }