returns the eigenvector associated with the dominant eigenvalue from the adjacency matrix.

eigen_centrality_signed(g, scale = TRUE)

Arguments

g

igraph object. Must have 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 eigen().

Value

centrality scores as numeric vector.

Details

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.

References

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.

Author

David Schoch

Examples

library(igraph)
data("tribes")
eigen_centrality_signed(tribes)
#>  [1] -1.0476144 -0.9311155  0.7501916  0.3857187  0.7784106  1.0000000
#>  [7]  0.7963726  0.7029545  0.2206645  0.2502754  0.7295558  0.9570270
#> [13]  0.2450451  0.0613462 -0.9553607 -1.0342564