where s i are the spin variables, r ( i , j ) is the distance between node i and node j , and J ( r ( i , j ) ) are the couplings between the spins. When the J ( r ( i , j ) ) have the behaviour 1 / r α α , we have the power law potential. For a general complex network the condition on the exponent α α which preserves extensivity of the Hamiltonian was studied. At zero temperature, the energy per spin is proportional to