radiality: Calculate radiality centrality

View source: R/centrality.R

radialityR Documentation

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

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.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

require(igraph)
pathway = barabasi.game(200)
radiality(pathway)

CePa documentation built on June 12, 2022, 1:05 a.m.