spread: Calculate radiality centrality

Description Usage Arguments Details Examples

View source: R/centrality.R

Description

Calculate radiality centrality

Usage

1
2
spread(graph, mode = c("all", "in", "out"),
    weights = E(graph)$weight, f = function(x) 1/x)

Arguments

graph

an igraph object

mode

mode of the centrality

weights

If edges in the graph have weight, then by default, the weight is used to calculate the length of the shortest path. Set it to NULL to supress the weight

f

function for the weaken rate

Details

The spread centrality measures how wide the node can send or receive the information in the network. Like the water wave, the effect would be weakened with the increase of the distance to other nodes.

Examples

1
2
# There is no example
NULL

jokergoo/CePa documentation built on July 2, 2021, 10:28 p.m.