Extract the set of disjoint connex component of a network graph.
[nc,compo]=NARVAL_G_Connex(g)
network graph.
size vector of each connex component.
vector of nodes per connex component.
NARVAL_G_Connex extracts the set of all disjoint connex components of the network graph g. As a matter of course a network must be connex as its nodes should be reachable from its structure. For instance, the first connex component has a size of nc(1). Thus it is composed by nodes compo(1:nc(1)). Afterwards the second connex component has a size of nc(2). Thus it is composed by nodes compo(nc(1)+1:nc(1)+1+nc(2)).