View source: R/wrangle-structure.R
| remove_isolates | R Documentation |
Removes every node with no edges. Edge filters such as
filter_edges keep all nodes, and this function removes the
isolates that such a filter leaves behind.
remove_isolates(x, keep_format = FALSE, directed = NULL)
x |
Network input: cograph_network, matrix, igraph, network, tna, or an edge-list data frame. |
keep_format |
Logical. If TRUE, a matrix, igraph, statnet network or
tna input is returned in its own format. An edge-list data frame or a
qgraph object is returned as a |
directed |
Logical or NULL. Directedness used to read the input. NULL (default) detects it from the input. |
A cograph_network with the isolated nodes removed (or the
input format when keep_format = TRUE). The remaining nodes keep
their order, and edge indices are remapped to the new node numbering.
filter_edges, split_components,
filter_nodes
remove_isolates(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.