Graph clustering with Boltzmann machines