
Last chance! 50% off unlimited learning
Sale ends in
evcent
takes a graph (graph
) and returns the
eigenvector centralities of positions v
within itevcent (graph, directed = FALSE, scale = TRUE, weights = NULL,
options = igraph.arpack.default)
NULL
. This argument can be
used to give edge weights for calculating the weighted eigenvector
centrality of vertices. If this is NULL
and the graph has a
weight
edge attribute then tarpack
for details.arpack
for the details.evcent
will not symmetrize your data before
extracting eigenvectors; don't send this routine asymmetric matrices
unless you really mean to do so.From igraph version 0.5 this function uses ARPACK for the underlying
computation, see arpack
for more about ARPACK in igraph.
#Generate some test data
g <- graph.ring(10, directed=FALSE)
#Compute eigenvector centrality scores
evcent(g)
Run the code above in your browser using DataLab