View source: R/wrangle-structure.R
| split_components | R Documentation |
Split a Network into Its Connected Components
split_components(x, min_size = 1L, keep_format = FALSE, directed = NULL)
x |
Network input. |
min_size |
Integer. Components with fewer nodes are dropped. Default 1 keeps every component, including isolated nodes. |
keep_format |
Logical. If TRUE, each component of a matrix, igraph,
statnet network or tna input is returned in that format. An edge-list
data frame or a qgraph object gives |
directed |
Logical or NULL. Directedness used to read the input. NULL (default) detects it from the input. |
A list of cograph_network objects, one per component, ordered
from largest to smallest and named "component_1",
"component_2", and so on. Components are weakly connected, matching
igraph::components(mode = "weak"). A network with no nodes gives an
empty list and a warning.
select_component, remove_isolates
split_components(threshold_edges(regulation_net, minimum = 0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.