conComp {ggm}R Documentation

Connectivity components

Description

Finds the connectivity components of a graph.

Usage

conComp(amat)

Arguments

amat a square matrix with dimnames, the adjacency matrix of a DAG or a UG.

Value

an integer vector representing a partition of the set of nodes.

Author(s)

Giovanni M. Marchetti

References

Lauritzen, S. (1996). Graphical models. Oxford: Clarendon Press.

See Also

UG

Examples

## 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))

[Package ggm version 1.0.2 Index]