function Gilbert_etreeplot(A,b,c,d)
% ETREEPLOT : Plot the elimination tree.
%	etreeplot(A):  Plot the elimination tree of A (or A+A', if asymmetric).
%	etreeplot(A,1):  Also label the nodes with their numbers.
%	etreeplot(A,c,d):  See treeplot for optional parameters c and d.
%	etreeplot(A,1,c,d):  See treeplot for optional parameters c and d.
%
%	See also TREEPLOT, ETREE, TREELAYOUT.
% Copyright (c) 1990-1996 by Xerox Corporation.  All rights reserved.
% HELP COPYRIGHT for complete copyright and licensing notice.
%	Copyright (c) 1984-92 by The MathWorks, Inc.
%
% Modified by Tim Davis, for Matlab 5.1.  July 1998

B = spones(A);
if nargin == 1,
    Gilbert_treeplot(etree(B+B'));
elseif nargin == 2,
    Gilbert_treeplot(etree(B+B'),b);
elseif nargin == 3,
    Gilbert_treeplot(etree(B+B'),b,c);
else
    Gilbert_treeplot(etree(B+B'),b,c,d);
end
