Ising model applied to Networks