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

« back to all changes in this revision

Viewing changes to man/metanet/neighbors.cat

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