CINNA (version 1.0.0)

graph.extract.components: Component extraction of a graph

Description

This function extracts all connected components of the input which can be an "igraph" object or a "network" object and convert them as "igraph" objects.

Usage

graph.extract.components(x, directed = TRUE, bipartite.proj = FALSE,
  num.proj = 1)

Arguments

x

An igraph or a network object

directed

Whether to create a directed graph(default=TRUE)

bipartite.proj

Whether the bipartite network must be projected or not(default=FALSE)

num.proj

Numbers 1 or 2 which shows the number of projects for bipartite graphs.(default=1)

Value

a list including the componets of the input as igraph objects

Details

This function seperates different components of an "igraph" or a "network" object and illustrates them as a list of independent graphs. If the input graph was bipartite and the "bipartite.proj" was TRUE, it will project it and you can decide in which project you want to continue to work with.

See Also

induced.subgraph,components

Examples

Run this code
# NOT RUN {
data(zachary)

graph.extract.components(zachary)


# }

Run the code above in your browser using DataCamp Workspace