bonpow()
was renamed to power_centrality()
to create a more
consistent API.
bonpow(
graph,
nodes = V(graph),
loops = FALSE,
exponent = 1,
rescale = FALSE,
tol = 1e-07,
sparse = TRUE
)
the input graph.
vertex sequence indicating which vertices are to be included in the calculation. By default, all vertices are included.
boolean indicating whether or not the diagonal should be
treated as valid data. Set this true if and only if the data can contain
loops. loops
is FALSE
by default.
exponent (decay rate) for the Bonacich power centrality score; can be negative
if true, centrality scores are rescaled such that they sum to 1.
tolerance for near-singularities during matrix inversion (see
solve()
)
Logical scalar, whether to use sparse matrices for the calculation. The ‘Matrix’ package is required for sparse matrix support