graph template now takes a graphOf variable