1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>show_arcs</TITLE>
6
<TYPE>Scilab function</TYPE>
7
<DATE>September 1995</DATE>
8
<SHORT_DESCRIPTION name="show_arcs"> highlights a set of arcs</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>show_arcs(p,[sup]) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>p</PARAM_NAME>
17
<SP>: row vector of arc numbers (directed graph) or edge numbers (undirected graph)</SP>
21
<PARAM_NAME>sup</PARAM_NAME>
23
<SP>: string, superposition flag</SP>
29
<P><VERB>show_arcs</VERB> highlights the set of arcs or edges <VERB>p</VERB> of the
30
displayed graph in the current edit_graph window.
31
If the optional argument <VERB>sup</VERB> is equal to the string 'sup',
32
the highlighting is superposed on the previous one.</P>
36
ta=[1 1 2 2 2 3 4 5 5 7 8 8 9 10 10 10 11 12 13 13 13 14 15 16 16 17 17];
37
he=[2 10 3 5 7 4 2 4 6 8 6 9 7 7 11 15 12 13 9 10 14 11 16 1 17 14 15];
38
g=make_graph('foo',1,17,ta,he);
39
g('node_x')=[283 163 63 57 164 164 273 271 339 384 504 513 439 623 631 757 642];
40
g('node_y')=[59 133 223 318 227 319 221 324 432 141 209 319 428 443 187 151 301];
42
t=min_weight_tree(1,g); g1=g; ma=edge_number(g1);
43
edgecolor=1*ones(1,ma); g1('edge_color')=edgecolor;
44
edgewidth=1*ones(1,ma); edgewidth(t)=4*ones(t); g1('edge_width')=edgewidth;
46
edgecolor(t)=i*ones(t); g1('edge_color')=edgecolor;
47
xpause(3d5); show_graph(g1);
54
<LINK>edit_graph</LINK>
57
<LINK>show_nodes</LINK>
60
<LINK>netwindow</LINK>
63
<LINK>netwindows</LINK>