1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>neighbors</TITLE>
6
<TYPE>Scilab function</TYPE>
7
<DATE>September 1996</DATE>
8
<SHORT_DESCRIPTION name="neighbors"> nodes connected to a node</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>a = neighbors(i,g) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>i</PARAM_NAME>
21
<PARAM_NAME>g</PARAM_NAME>
27
<PARAM_NAME>a</PARAM_NAME>
29
<SP>: vector of integers</SP>
35
<P><VERB>neighbors</VERB> returns the numbers of the nodes connected with node i for
36
graph <VERB>g</VERB> (directed or not).</P>
40
ta=[1 6 2 4 7 5 6 8 4 3 5 1];
41
he=[2 1 3 6 4 8 8 7 2 7 3 5];
42
g=make_graph('foo',1,8,ta,he);
43
g('node_x')=[285 284 335 160 405 189 118 45];
44
g('node_y')=[266 179 83 176 368 252 64 309];
52
<LINK>predecessors</LINK>
55
<LINK>successors</LINK>