Skip to content

@graphty/algorithms / index / nodeEigenvectorCentrality

Function: nodeEigenvectorCentrality() ​

nodeEigenvectorCentrality(graph, nodeId, options): number

Defined in: algorithms/centrality/eigenvector.ts:150

Calculate eigenvector centrality for a specific node.

Parameters ​

graph ​

Graph

The graph to compute eigenvector centrality on

nodeId ​

The ID of the node to calculate centrality for

string | number

options ​

EigenvectorCentralityOptions = {}

Configuration options for the computation

Returns ​

number

The eigenvector centrality score for the specified node