alpha.centrality
calculates the alpha centrality of
some (or all) vertices in a graph.alpha.centrality(graph, nodes=V(graph), alpha=1, loops=FALSE,
exo=1, weights=NULL, tol=1e-7, sparse=TRUE)
NULL
, then
the NA
solve
. The alpha centrality of the vertices in a graph is defined as the
solution of the following matrix equation:
evcent
and bonpow
# The examples from Bonacich's paper
g.1 <- graph( c(1,3,2,3,3,4,4,5) )
g.2 <- graph( c(2,1,3,1,4,1,5,1) )
g.3 <- graph( c(1,2,2,3,3,4,4,1,5,1) )
alpha.centrality(g.1)
alpha.centrality(g.2)
alpha.centrality(g.3,alpha=0.5)
Run the code above in your browser using DataLab