Condition to check if there is no path between the vertices
if ( path [ i ] == - 1 ) : NEW_LINE INDENT print ( " Path ▁ not ▁ found ! ! " ) ; NEW_LINE return ; NEW_LINE DEDENT printPath ( path , path [ i ] , s ) ; NEW_LINE print ( path [ i ] + " ▁ " ) ; NEW_LINE