rollup function with updated graph