compute

Computes the frequencies of all loops in the given graph. This is done by performing a
reverse postorder iteration and computing the probability of all fixed nodes. The combined
probability of all exits of a loop can be used to compute the loop's expected frequency.