1
circuit Scilab Group Scilab function circuit
3
circuit - finds a circuit or the rank function in a directed graph
10
p : row vector of integer numbers of the arcs of the circuit if it
13
r : row vector of rank function if there is no circuit
16
circuit tries to find a circuit for the directed graph g. It returns the
17
circuit p as a row vector of the corresponding arc numbers if it exists
18
and it returns the empty vector [] otherwise. If the graph has no
19
circuit, the rank function is returned in r, otherwise its value is the
24
ta=[1 1 2 3 5 4 6 7 7 3 3 8 8 5];
25
he=[2 3 5 4 6 6 7 4 3 2 8 1 7 4];
26
g=make_graph('foo',1,8,ta,he);
27
g('node_x')=[116 231 192 323 354 454 305 155];
28
g('node_y')=[ 118 116 212 219 117 185 334 316];
32
// graph without circuit
33
g=make_graph('foo',1,4,[1 2 2 3],[2 3 4 4]);