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

## Arguments

- 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

`eigen()`

.

## 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.