How to calculate the eigenvectors of a directed graph

Solution for How to calculate the eigenvectors of a directed graph
is Given Below:

How does the R language package (“igraph”) calculate the eigenvectors of a directed graph?
g is my graph.

evcent(g,directed = T)

I understood that the eigenvector centrality of directed graphs(weakly connected) cannot be calculated.