At the level of the partition function Z p = ∑ ∑ { s i } e − − H p , the relation amounts to transforming the sum over spin configurations { s i } into a sum over edge configurations ω ω = { ( i , j ) | s i = s j } i.e. sets of nearest neighbor pairs of the same color. The transformation is done using the identity