modify graphs