generate graph signature