The generalized gibbs sampler and the neighborhood sampler