annotate scripts/sparse/etreeplot.m @ 5642:2618a0750ae6

[project @ 2006-03-06 21:26:48 by jwe]
author jwe
date Mon, 06 Mar 2006 21:26:54 +0000
parents 6ada1581e8b4
children 93c65f2a5668
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5576
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
1 ## Copyright (C) 2005 Ivana Varekova
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
2 ##
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
3 ## This program is free software; you can redistribute it and/or modify
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
4 ## it under the terms of the GNU General Public License as published by
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
5 ## the Free Software Foundation; either version 2 of the License, or
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
6 ## (at your option) any later version.
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
7 ##
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
8 ## This program is distributed in the hope that it will be useful,
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
11 ## GNU General Public License for more details.
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
12 ##
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
13 ## You should have received a copy of the GNU General Public License
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
14 ## along with this program; if not, write to the Free Software
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
15 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
16 ## 02110-1301 USA
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
17
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
18 ## -*- texinfo -*-
5577
6ada1581e8b4 [project @ 2005-12-13 19:20:14 by jwe]
jwe
parents: 5576
diff changeset
19 ## @deftypefn {Function File} {} etreeplot (@var{tree})
6ada1581e8b4 [project @ 2005-12-13 19:20:14 by jwe]
jwe
parents: 5576
diff changeset
20 ## @deftypefnx {Function File} {} etreeplot (@var{tree}, @var{node_style}, @var{edge_style})
6ada1581e8b4 [project @ 2005-12-13 19:20:14 by jwe]
jwe
parents: 5576
diff changeset
21 ## Plot the elimination tree of the matrix @var{s} or
6ada1581e8b4 [project @ 2005-12-13 19:20:14 by jwe]
jwe
parents: 5576
diff changeset
22 ## @code{@var{s}+@var{s}'} if @var{s} in non-symmetric. The optional
6ada1581e8b4 [project @ 2005-12-13 19:20:14 by jwe]
jwe
parents: 5576
diff changeset
23 ## parameters @var{line_style} and @var{edge_style} define the output
6ada1581e8b4 [project @ 2005-12-13 19:20:14 by jwe]
jwe
parents: 5576
diff changeset
24 ## style.
5642
2618a0750ae6 [project @ 2006-03-06 21:26:48 by jwe]
jwe
parents: 5577
diff changeset
25 ## @seealso{treeplot, gplot}
5576
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
26 ## @end deftypefn
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
27
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
28 function etreeplot (s, varargin)
5577
6ada1581e8b4 [project @ 2005-12-13 19:20:14 by jwe]
jwe
parents: 5576
diff changeset
29 treeplot (etree (s+s'), varargin{:});
5576
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents:
diff changeset
30 endfunction