How to get vertex eigenvalue centralities in R with igraph
-
13-09-2019 - |
Question
I have a network loaded into 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?
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow