Imeplemented a clique generator