add generate graph