Skip to content

@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 ​

Graph

The graph to compute Katz centrality on

nodeId ​

The ID of the node to calculate centrality for

string | number

options ​

KatzCentralityOptions = {}

Configuration options for the computation

Returns ​

number

The Katz centrality score for the specified node