if any element in the row i is 1 , it means that there is an edge emanating from the vertex , which means it cannot be a sink
if self . adjacency_matrix [ i ] [ j ] == 1 : NEW_LINE INDENT return False NEW_LINE DEDENT