ngraph.louvain.native
Similar to ngraph.louvain, this module detects clusters in a graph using the Louvain Method.
The major difference here, is that this is a native node module, with C++ bindings, so that computation happens much faster.
Alas, this means this module can only work in node.js environment.
If you need pure javascript implementation use ngraph.louvain (it is fast too).
usage
Install the module:
npm i ngraph.louvain.native
And then use it:
let detectClusters = ;let graph = ; // ngraph instance// this would detect clusterslet clusters = ;// and you can iterate over them:graph;
see also
- https://github.com/anvaka/ngraph.graph - graph structure
- https://github.com/anvaka/ngraph.cw - label-propagation based community detection
- https://github.com/anvaka/ngraph.coarsen - Graph coarser
license
MIT
support
If you like what I do, please support me on patreon.