repair graph