remove and add Node and Edge workes