Learn R Programming

CePa (version 0.8.1)

radiality: Calculate radiality centrality

Description

Calculate radiality centrality

Usage

radiality(graph, mode = c("all", "in", "out"))

Arguments

graph

an igraph object

mode

mode of the centrality

Author

Zuguang Gu <z.gu@dkfz.de>

Details

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.

Examples

Run this code
require(igraph)
pathway = barabasi.game(200)
radiality(pathway)

Run the code above in your browser using DataLab