@graphty/algorithms / index / nodeKatzCentrality
Function: nodeKatzCentrality() ​
nodeKatzCentrality(
graph,nodeId,options):number
Defined in: algorithms/centrality/katz.ts:124
Calculate Katz centrality for a specific node.
Parameters ​
graph ​
The graph to compute Katz centrality on
nodeId ​
The ID of the node to calculate centrality for
string | number
options ​
Configuration options for the computation
Returns ​
number
The Katz centrality score for the specified node