Each operation increments the rank of i, and, on each iteration of a while loop, makes at least one edge ``black''. (This can include ``Find Min'' as well.)
Upper bound on maximum value of potential function is 3n.