Support multi target graphs in the calculation classes