radiality: Calculate radiality centrality

Description Usage Arguments Details Author(s) Examples

View source: R/centrality.R

Description

Calculate radiality centrality

Usage

1
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

1
2
3
require(igraph)
pathway = barabasi.game(200)
radiality(pathway)

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