add paintGraph to Graph class inorder to draw in qt, add generate random graph action