powered by
Calculate radiality centrality
radiality(graph, mode = c("all", "in", "out"))
an igraph object
igraph
mode of the centrality
Zuguang Gu <z.gu@dkfz.de>
The radiality is defined as sum(d_G + 1 - d(v, w))/(n - 1). where d(w, v) is the length of the shortest path from node w to node v, d_G is the diameter of the network, n is the size of the network.
sum(d_G + 1 - d(v, w))/(n - 1)
d(w, v)
w
v
d_G
require(igraph) pathway = barabasi.game(200) radiality(pathway)
Run the code above in your browser using DataLab