Used undo to implement scopes in GraphDraw3D