<< graph_union Graphs - Nets line_graph >>

metanet >> metanet > Graphs - Nets > is_connex

is_connex

connectivity test

Calling Sequence

res = is_connex(g)

Parameters

g

a graph_data_structure.

res

integer, result of the test

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)

See Also


Report an issue
<< graph_union Graphs - Nets line_graph >>