Latent Random Steps as Relaxations of Max-Cut, Min-Cut, and More