adding graph template support