Directed-loop Monte Carlo simulations of vertex models.