@graphty/algorithms / index / nodeWeightedClosenessCentrality
Function: nodeWeightedClosenessCentrality() ​
nodeWeightedClosenessCentrality(
graph,node,options):number
Defined in: algorithms/centrality/closeness.ts:176
Calculate weighted closeness centrality for a specific node using Dijkstra
Parameters ​
graph ​
The input graph to analyze
node ​
The node to calculate centrality for
options ​
ClosenessCentralityOptions = {}
Algorithm configuration options
Returns ​
number
The weighted closeness centrality score for the node