Rewriting the group graphs