Mercurial > hg > octave-lyh
diff scripts/sparse/etreeplot.m @ 5576:7e008607a86e
[project @ 2005-12-13 19:05:54 by jwe]
author | jwe |
---|---|
date | Tue, 13 Dec 2005 19:05:55 +0000 |
parents | |
children | 6ada1581e8b4 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/scripts/sparse/etreeplot.m @@ -0,0 +1,29 @@ +## Copyright (C) 2005 Ivana Varekova +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +## 02110-1301 USA + +## -*- texinfo -*- +## @deftypefn {Function File} {} etreeplot (@var{Tree}) +## @deftypefnx {Function File} {} etreeplot (@var{Tree}, @var{NodeStyle}, @var{EdgeStyle}) +## Plots the elimination tree of the matrix @var{s} or @code{@var{s}+@var{s}'} +## if @var{s} in non-symmetric. The optional parameters @var{LineStyle} and +## @var{EdgeStyle} define the output style. +## @end deftypefn +## @seealso{treeplot,gplot} + +function etreeplot (s, varargin) + treeplot (etree (s+s'), varargin{:}) +endfunction