Added graph attributes in friend class