conComp {ggm} | R Documentation |
Finds the connectivity components of a graph.
conComp(amat)
amat |
a square matrix with dimnames, the adjacency matrix of a DAG or a UG. |
an integer vector representing a partition of the set of nodes.
Giovanni M. Marchetti
Lauritzen, S. (1996). Graphical models. Oxford: Clarendon Press.
## three connected components conComp(UG(~a*c+c*d+e+g*o*u)) ## a connected graph conComp(UG(~ a*b+b*c+c*d+d*a))