Optimisation graph closure.