Remove check for equality in the graphs before and after the transformation