Mercurial > hg > octave-lyh
comparison scripts/sparse/treeplot.m @ 5642:2618a0750ae6
[project @ 2006-03-06 21:26:48 by jwe]
author | jwe |
---|---|
date | Mon, 06 Mar 2006 21:26:54 +0000 |
parents | 591e9accd44c |
children | 20c48710b2c7 |
comparison
equal
deleted
inserted
replaced
5641:eb998631a4aa | 5642:2618a0750ae6 |
---|---|
20 ## @deftypefnx {Function File} {} treeplot (@var{Tree}, @var{LineStyle}, @var{EdgeStyle}) | 20 ## @deftypefnx {Function File} {} treeplot (@var{Tree}, @var{LineStyle}, @var{EdgeStyle}) |
21 ## Produces a graph of tree or forest. The first argument is vector of | 21 ## Produces a graph of tree or forest. The first argument is vector of |
22 ## predecessors, optional parametres @var{LineStyle} and @var{EdgeStyle} | 22 ## predecessors, optional parametres @var{LineStyle} and @var{EdgeStyle} |
23 ## define the output style. The complexity of the algorithm is O(n) in | 23 ## define the output style. The complexity of the algorithm is O(n) in |
24 ## terms of is time and memory requirements. | 24 ## terms of is time and memory requirements. |
25 ## @seealso{etreeplot, gplot} | |
25 ## @end deftypefn | 26 ## @end deftypefn |
26 ## @seealso{etreeplot,gplot} | |
27 | 27 |
28 function treeplot (Tree, NodeS, EdgeS) | 28 function treeplot (Tree, NodeS, EdgeS) |
29 | 29 |
30 if (nargin < 1 || nargin > 3 || nargout > 0) | 30 if (nargin < 1 || nargin > 3 || nargout > 0) |
31 error ("treeplot: wrong number of input/output arguments"); | 31 error ("treeplot: wrong number of input/output arguments"); |