is_connex

is_connex — connectivity test

Calling sequence

res = is_connex(g)  

Parameters

g : graph list
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]);
is_connex(g)
g=make_graph('foo',1,4,[1,2,3,1],[2,3,1,3]);
is_connex(g)
 
  

See also

con_nodes, strong_connex