This function calculates a number of centrality metrics for the weighted International Trade Network (ITN)
ITNcentrality(gs)
Arguments
gs: International Trade Network - igraph object
Returns
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 weightsE(ITN)$weight<-runif(ecount(ITN),0,1)##Add vertex namesV(ITN)$name<-1:vcount(ITN)##Calculate the centrality measuresITNCENT<-ITNcentrality(ITN)