we will eliminate n - 1 non sink vertices so that we have to check for only one vertex instead of all n vertices
def eliminate ( self ) : NEW_LINE INDENT i = 0 NEW_LINE j = 0 NEW_LINE while i < self . vertices and j < self . vertices : NEW_LINE DEDENT