The EigenvectorCentrality function calculates the centrality (relative importance) of each node in a graph.