powered by
Computes closeness centrlaity of each node in a network
closeness(A, weighted = TRUE)
An adjacency matrix of network data
Is the network weighted? Defaults to TRUE. Set to FALSE for unweighted measure of closeness centrality
A vector of closeness centrality values for each node in the network
Rubinov, M., & Sporns, O. (2010). Complex network measures of brain connectivity: Uses and interpretations. Neuroimage, 52(3), 1059-1069.
# NOT RUN { A<-TMFG(neoOpen)$A weighted_LC<-closeness(A) unweighted_LC<-closeness(A,weighted=FALSE) # }
Run the code above in your browser using DataLab