0.1.0 • Published 7 years ago
graphology-hits v0.1.0
Graphology HITS
HITS algorithm to be used with graphology
.
Installation
npm install graphology-hits
Usage
import hits from 'graphology-hits';
// To compute and return the result as 'hubs' & 'authorities':
const {hubs, authorities} = hits(graph);
// To directly map the result to nodes' attributes:
hits.assign(graph);
// Note that you can also pass options to customize the algorithm:
const {hubs, authorities} = hits(graph, {normalize: false});