Corrected calculations for node-cost and -flux.