if any element other than i in the column i is 0 , it means that there is no edge from that vertex to the vertex we are testing and hence it cannot be a sink
if ( adjacency_matrix [ j ] [ i ] == 0 && j != i ) return false ; }