added graph editing