Undo and redo operations implemented for NetworkLayoutChangeCmd.