Skip to content

@graphty/algorithms / index / hits

Function: hits() ​

hits(graph, options): HITSResult

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

Calculate HITS hub and authority scores for all nodes in the graph. Uses iterative method with normalization.

Parameters ​

graph ​

Graph

The graph to compute HITS scores on

options ​

HITSOptions = {}

Configuration options for the computation

Returns ​

HITSResult

Object containing hub and authority scores for all nodes