add graph editing