Skip to content

@graphty/algorithms / index / nodeHITS

Function: nodeHITS() ​

nodeHITS(graph, nodeId, options): object

Defined in: algorithms/centrality/hits.ts:194

Calculate HITS scores for a specific node.

Parameters ​

graph ​

Graph

The graph to compute HITS scores on

nodeId ​

The ID of the node to calculate scores for

string | number

options ​

HITSOptions = {}

Configuration options for the computation

Returns ​

object

Object containing hub and authority scores for the specified node

authority ​

authority: number

hub ​

hub: number