View source: R/network-utils.R
| select_bridges | R Documentation |
Select edges whose removal would disconnect the graph.
select_bridges(
x,
...,
.keep_isolates = FALSE,
keep_format = FALSE,
directed = NULL
)
x |
Network input. |
... |
Additional filter expressions. |
.keep_isolates |
Keep nodes with no edges? Default FALSE. |
keep_format |
Keep input format? Default FALSE. |
directed |
Auto-detect if NULL. |
A cograph_network with bridge edges only.
select_edges, select_nodes
# Create network with bridge
adj <- matrix(0, 5, 5)
adj[1, 2] <- adj[2, 1] <- 1
adj[2, 3] <- adj[3, 2] <- 1 # Bridge
adj[3, 4] <- adj[4, 3] <- 1
adj[4, 5] <- adj[5, 4] <- 1
adj[3, 5] <- adj[5, 3] <- 1
rownames(adj) <- colnames(adj) <- LETTERS[1:5]
select_bridges(adj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.