Sweeny and Gliozzi dynamics for simulations of Potts models in the Fortuin-Kasteleyn representation.