View source: R/centrality-batch7.R
| centrality_neighborhood_connectivity | R Documentation |
Mean degree of a node's neighbors (Maslov & Sneppen 2002), the "average neighbor degree" reported by Cytoscape:
C_{NC}(i) = \frac{1}{k_i} \sum_{j \in N(i)} k_j.
High values mark nodes attached to hubs. Isolates score 0. Under
mode = "out" the out-neighbors' out-degrees are averaged, under
"in" the in-neighbors' in-degrees.
centrality_neighborhood_connectivity(x, mode = "all", ...)
x |
Network input (matrix, igraph, network, cograph_network, tna object). |
mode |
For directed networks: |
... |
Additional arguments passed to |
Named numeric vector, one value per node.
Maslov, S., & Sneppen, K. (2002). Specificity and stability in topology of protein networks. Science, 296(5569), 910-913.
centrality_degree, and igraph::knn() for
the Barrat weighted generalization.
star5 <- matrix(0, 5, 5)
star5[1, 2:5] <- 1; star5[2:5, 1] <- 1
rownames(star5) <- colnames(star5) <- LETTERS[1:5]
centrality_neighborhood_connectivity(star5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.