~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/metanet/con_nodes.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH con_nodes 1 "September 1995" "Scilab Group" "Scilab function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
con_nodes - set of nodes of a connected component
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
ns = con_nodes(i,g)
8
 
.fi
9
 
.SH PARAMETERS
10
 
.TP 2
11
 
i
12
 
: integer, number of the connected component
13
 
.TP 2
14
 
g
15
 
: graph list
16
 
.TP 3
17
 
ns
18
 
: row vector, node numbers of the connected component
19
 
.SH DESCRIPTION
20
 
\fVcon_nodes\fR returns the row vector \fVns\fR of the numbers of the
21
 
nodes which belong to the connected component number \fVi\fR.
22
 
If \fVi\fR is not the number of a connected component, the empty vector
23
 
\fV[]\fR is returned.
24
 
.SH EXAMPLE
25
 
.nf
26
 
ta=[1 1 2 2 2 3 4 4 5 7 7 9 10 12 12 13 13 14 15];
27
 
he=[2 6 3 4 5 1 3 5 1 8 9 8 11 10 11 11 15 13 14];
28
 
g=make_graph('foo',1,15,ta,he);
29
 
g('node_x')=[197 191 106 194 296 305 305 418 422 432 552 550 549 416 548];
30
 
g('node_y')=[76 181 276 278 276 83 174 281 177 86 175 90 290 397 399];
31
 
show_graph(g);
32
 
con_nodes(2,g)
33
 
x_message('Displaying the nodes of component #2');
34
 
n=g('node_number');
35
 
nodecolor=0*ones(1,n);
36
 
nodecolor(1,con_nodes(2,g))=11*ones(con_nodes(2,g));
37
 
g('node_color')=nodecolor;
38
 
nodediam=20.*ones(1,n);
39
 
nodediam(1,con_nodes(2,g))=30*ones(con_nodes(2,g));
40
 
g('node_diam')=nodediam;
41
 
show_graph(g);
42
 
.fi
43
 
.SH SEE ALSO
44
 
connex, is_connex, strong_connex, strong_con_nodes