Name
is_connex — connectivity test
Calling Sequence
res = is_connex(g)
Description
is_connex
returns 1 if the graph g
is connected and 0 otherwise.
Examples
g=make_graph('foo',1,3,[1,2,3,1],[2,3,1,3]);
g.nodes.graphics.x=[26,85,-55];
g.nodes.graphics.y=[92,-18,-25];
show_graph(g)
is_connex(g)
g1=add_node(g,[26,-90]);
show_graph(g1)
is_connex(g1)