View source: R/network-summary.R
| network_cut_vertices | R Documentation |
Finds nodes whose removal would disconnect the network. These are critical nodes for network connectivity.
network_cut_vertices(x, count_only = FALSE, ...)
x |
Network input: matrix, igraph, network, cograph_network, or tna object |
count_only |
Logical. If TRUE, return only the count. Default FALSE. |
... |
Additional arguments passed to |
If count_only = FALSE, vector of node indices (or names if graph is named). If count_only = TRUE, integer count.
# Bridge node connecting two components
adj <- matrix(c(0,1,1,0,0, 1,0,1,0,0, 1,1,0,1,0, 0,0,1,0,1, 0,0,0,1,0), 5, 5)
network_cut_vertices(adj) # Node 3 is cut vertex
network_cut_vertices(adj, count_only = TRUE) # 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.