View source: R/centrality_indices.R
eigen_centrality_signed | R Documentation |
returns the eigenvector associated with the dominant eigenvalue from the adjacency matrix.
eigen_centrality_signed(g, scale = TRUE)
g |
igraph object with a sign edge attribute. |
scale |
Logical scalar, whether to scale the result to have a maximum score of one. If no scaling is used then the result vector is the same as returned by |
Note that, with negative values, the adjacency matrix may not have a dominant eigenvalue. This means it is not clear which eigenvector should be used. In addition it is possible for the adjacency matrix to have repeated eigenvalues and hence multiple linearly independent eigenvectors. In this case certain centralities can be arbitrarily assigned. The function returns an error if this is the case.
centrality scores as numeric vector.
David Schoch
Bonacich, P. and Lloyd, P. (2004). "Calculating Status with Negative Relations." Social Networks 26 (4): 331–38.
Everett, M. and Borgatti, S.P. (2014). "Networks Containing Negative Ties." Social Networks 38: 111–20.
library(igraph)
data("tribes")
eigen_centrality_signed(tribes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.