If i exceeds the number of vertices , it means that there is no valid vertex in the given vertices that can be a sink
if i > self . vertices : NEW_LINE INDENT return - 1 NEW_LINE DEDENT elif self . issink ( i ) is False : NEW_LINE INDENT return - 1 NEW_LINE DEDENT else : NEW_LINE INDENT return i NEW_LINE DEDENT