returns 0 based indexing of vertex . returns - 1 if no sink exits . returns the vertex number - 1 if sink is found
if vertex >= 0 : NEW_LINE INDENT print ( " Sink ▁ found ▁ at ▁ vertex ▁ % d " % ( vertex + 1 ) ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No ▁ Sink " ) NEW_LINE DEDENT