Adding and editing grafs