How to get vertex eigenvalue centralities in R with igraph
I have a network loaded int开发者_高级运维o an igraph object G
that has 198 vertices and 214 edges. If I run:
eig<-evcent(G)$vector
The resulting eig
is a vector with 2172 elements, rather than 198 elements. The documentation on the package claims it returns the "centralities of positions v
." Any ideas on how to get the eigenvalue centralities for each vertex?
This answer was recently asked (and answered) on the mailing list.
Check out this thread "Eigenvector Centrality" thread. It looks like a recompile of the R/igraph library might be in order, but should be rather straight forward.
精彩评论