graph_extract_components: Component extraction of a graph

Description Usage Arguments Details Value Author(s) See Also Examples

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

1
2
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)

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.

Value

a list including the components of the input as igraph objects

Author(s)

Minoo Ashtiani, Mehdi Mirzaie, Mohieddin Jafari

See Also

induced.subgraph,components

Examples

1
2
3

CINNA documentation built on May 2, 2019, 1:01 a.m.