A stochastic uncoupling process for graphs