View source: R/wrangle-structure.R
| reverse_edges | R Documentation |
Swaps the endpoints of every edge, which transposes the weight matrix. In a transition network the reversed arcs show where each transition came from. Additional edge columns are kept.
reverse_edges(x, keep_format = FALSE, directed = NULL)
x |
Network input. |
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 every edge reversed, or the input
format when keep_format = TRUE. An undirected network is returned
unchanged, with a cograph_no_effect warning.
to_directed, to_undirected
reverse_edges(regulation_net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.