An experimental study of the theory of structural balance