| centrality_percolation | R Documentation |
Importance for spreading processes using node states. Each node has a state (0-1) representing how activated it is. When all states are equal, equivalent to betweenness.
centrality_percolation(x, states = NULL, ...)
x |
Network input (matrix, igraph, network, cograph_network, tna object). |
states |
Named numeric vector of node states (0-1). Default |
... |
Additional arguments passed to |
Named numeric vector of percolation centrality values.
centrality for computing multiple measures at once,
centrality_betweenness which this generalizes.
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_percolation(adj)
centrality_percolation(adj, states = c(A = 0.8, B = 0.2, C = 0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.