View source: R/wrangle-structure.R
| complement_network | R Documentation |
Every pair of distinct nodes that is not joined in x is joined in the
complement, and every joined pair is absent from it.
complement_network(
x,
weight = 1,
loops = FALSE,
keep_format = FALSE,
directed = NULL
)
x |
Network input. |
weight |
Numeric. Weight of every edge in the complement. Default 1. A
weight of zero means no edge, so |
loops |
Logical. Include self-loops in the complement. Default FALSE. |
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 holding the complement, or the input format
when keep_format = TRUE. Directedness is preserved.
to_undirected, binarize
complement_network(threshold_edges(regulation_net, minimum = 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.