ITNcentrality: ITN Centrality

View source: R/ITNcentrality_function.R

ITNcentralityR Documentation

ITN Centrality

Description

This function calculates a number of centrality metrics for the weighted International Trade Network (ITN)

Usage

ITNcentrality(gs)

Arguments

gs

International Trade Network - igraph object

Value

Table of centrality results (dataframe)

Examples

require(igraph)
##Create random International Trade Network (igraph object)
ITN<-erdos.renyi.game(75,0.05,directed = TRUE)

##Add edge weights
E(ITN)$weight<-runif(ecount(ITN), 0, 1)

##Add vertex names
V(ITN)$name<-1:vcount(ITN)

##Calculate the centrality measures
ITNCENT<-ITNcentrality(ITN)


MatthewSmith430/ITNr documentation built on April 15, 2024, 8:05 a.m.