removing graphs