DANSE algorithm using cliques