con_nodes — set of nodes of a connected component
ns = con_nodes(i,g)
integer, number of the selected connected component
row vector, node numbers of the selected connected component
con_nodes returns the row vector ns of the numbers of the
nodes which belong to the connected component number i.
If i is not the number of a connected component, the empty vector
[] is returned.
ta=[1 1 2 2 2 3 4 4 5 7 7 9 10 12 12 13 13 14 15];
he=[2 6 3 4 5 1 3 5 1 8 9 8 11 10 11 11 15 13 14];
g=make_graph('foo',1,15,ta,he);
g.nodes.graphics.x=[197 191 106 194 296 305 305 418 422 432 552 550 549 416 548];
g.nodes.graphics.y=[76 181 276 278 276 83 174 281 177 86 175 90 290 397 399];
show_graph(g);
for k=1:3
hilite_nodes(con_nodes(k,g));xpause(1d6);unhilite_nodes(con_nodes(k,g));
end