% agraph - Base arrow class for graphics in a Matlab figure
%
% agraph :: 
%    N:natural ~'number of inputs',
%    options {
%       fig :: handle / gcf  ~'figure for this instance';
%       autoflush :: boolean/1 ~'unit will call drawnow after every iteration'
%    }
% -> agraph(N) < arrow(_@typelist(N),{},_).
%
% METHODS
%    autoflush :: agraph(_) -> boolean.
%    fig       :: agraph(_) -> handle.
%
% This class is no use instantiated directly. Should be subclassed.
function o=agraph(nin,varargin)
	s.opts=options('fig',[],'name','','autoflush',0,varargin{:});
	if isempty(s.opts.fig), warning('agraph requires figure'); end
	o=class(s,'agraph',arrow(nin,0));
end

