We consider the +/-J spin glass on a finite graph G = (V, E), with i.i.d. c
ouplings. Our approach considers the Z(2) local gauge invariance of the sys
tem. We see the gauge group as a graph theoretic linear code l over GF(2).
The gauge is fixed by choosing a convenient linear supplement of l. Assumin
g some relation between the disorder parameter p and the inverse temperatur
e of the thermal bath beta(Pb), we study percolation in the random interact
ion random cluster model, and extend the results to dilute spin glasses.