decompose.graph() was renamed to decompose() to create a more
consistent API.
Usage
decompose.graph(
graph,
mode = c("weak", "strong"),
max.comps = NA,
min.vertices = 0
)Arguments
- graph
The original graph.
- mode
Character constant giving the type of the components, wither
weakfor weakly connected components orstrongfor strongly connected components.- max.comps
The maximum number of components to return. The first
max.compscomponents will be returned (which hold at leastmin.verticesvertices, see the next parameter), the others will be ignored. SupplyNAhere if you don't want to limit the number of components.- min.vertices
The minimum number of vertices a component should contain in order to place it in the result list. E.g. supply 2 here to ignore isolate vertices.
