Added an assign operator for Graph