~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/metanet/predecessors.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH predecessors 1 "September 1996" "Scilab Group" "Scilab function"
 
2
.so ../sci.an
 
3
.SH NAME
 
4
predecessors - tail nodes of incoming arcs of a node
 
5
.SH CALLING SEQUENCE
 
6
.nf
 
7
a = predecessors(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
: row vector of integers
 
19
.SH DESCRIPTION
 
20
\fVpredecessors\fR returns the row vector of the numbers of the tail nodes of 
 
21
the incoming arcs to node \fVi\fR for a directed graph \fVg\fR .
 
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=predecessors(8,g)
 
31
show_nodes(a);
 
32
.fi
 
33
.SH SEE ALSO
 
34
neighbors, successors