Fixed Graph.Equals method