>>127
command=lambda:graph
でどうかな?

参考サイト
https://teratail.com/questions/118018