subgraph.centrality (graph, diag=FALSE)
FALSE
here
effectively eliminates the loops edges from the graph before the
calculation.Currently the calculation is performed by explicitly calculating all eigenvalues and eigenvectors of the adjacency matrix of the graph. This effectively means that the measure can only be calculated for small graphs.
evcent
, page.rank
g <- ba.game(100, m=4, dir=FALSE)
sc <- subgraph.centrality(g)
cor(degree(g), sc)
Run the code above in your browser using DataLab