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

« back to all changes in this revision

Viewing changes to man/metanet/neighbors.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 neighbors 1 "September 1996" "Scilab Group" "Scilab function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
neighbors - nodes connected to a node
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
a = neighbors(i,g)
8
 
.fi
9
 
.SH PARAMETERS
10
 
.TP 2
11
 
i
12
 
: integer 
13
 
.TP 2
14
 
g
15
 
: graph list 
16
 
.TP 2
17
 
a
18
 
: vector of integers
19
 
.SH DESCRIPTION
20
 
\fVneighbors\fR returns the numbers of the nodes connected with node i for 
21
 
graph \fVg\fR (directed or not).
22
 
.SH EXAMPLE
23
 
.nf
24
 
ta=[1  6  2  4  7  5  6  8  4  3  5  1];
25
 
he=[2  1  3  6  4  8  8  7  2  7  3  5];
26
 
g=make_graph('foo',1,8,ta,he);
27
 
g('node_x')=[285  284  335  160  405  189  118  45];
28
 
g('node_y')=[266  179   83  176  368  252  64  309];
29
 
show_graph(g);
30
 
a=neighbors(6,g)
31
 
show_nodes(a);
32
 
.fi
33
 
.SH SEE ALSO
34
 
predecessors, successors