| remove_edges | R Documentation |
Remove Edges from a Network
remove_edges(
x,
from,
to,
keep_isolates = TRUE,
keep_format = FALSE,
directed = NULL
)
x |
Network input. |
from |
Source nodes, by label or index. |
to |
Target nodes, by label or index. The same length as |
keep_isolates |
Logical. Keep nodes that end up with no edges? Default
TRUE, matching |
keep_format |
Logical. Return the input format when TRUE. |
directed |
Logical or NULL. If NULL (default), auto-detect. |
A cograph_network without those edges, or the input format
when keep_format = TRUE. Named pairs that carry no edge are
reported in a cograph_no_such_edge warning.
add_edges, filter_edges,
remove_isolates
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
remove_edges(adj, from = "A", to = "B")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.