Adding graph to calculations