evcent()
was renamed to eigen_centrality()
to create a more
consistent API.
Usage
evcent(
graph,
directed = FALSE,
scale = TRUE,
weights = NULL,
options = arpack_defaults()
)
Arguments
- graph
Graph to be analyzed.
- directed
Logical scalar, whether to consider direction of the edges in directed graphs. It is ignored for undirected graphs.
- scale
- weights
A numerical vector or
NULL
. This argument can be used to give edge weights for calculating the weighted eigenvector centrality of vertices. If this isNULL
and the graph has aweight
edge attribute then that is used. Ifweights
is a numerical vector then it is used, even if the graph has aweight
edge attribute. If this isNA
, then no edge weights are used (even if the graph has aweight
edge attribute). Note that if there are negative edge weights and the direction of the edges is considered, then the eigenvector might be complex. In this case only the real part is reported. This function interprets weights as connection strength. Higher weights spread the centrality better.- options
A named list, to override some ARPACK options. See
arpack()
for details.