edit graph