| centrality_degree | R Documentation |
Number of edges connected to each node. For directed networks,
centrality_indegree counts incoming edges and
centrality_outdegree counts outgoing edges.
centrality_degree(x, mode = "all", ...)
centrality_indegree(x, ...)
centrality_outdegree(x, ...)
x |
Network input (matrix, igraph, network, cograph_network, tna object). |
mode |
For directed networks: |
... |
Additional arguments passed to |
Named numeric vector of degree values.
centrality for computing multiple measures at once,
centrality_strength for the weighted version.
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_degree(adj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.