Socket
Socket
Sign inDemoInstall

ngraph.modularity

Package Overview
Dependencies
5
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngraph.modularity

modularity gephi js adoptation


Version published
Weekly downloads
10
increased by66.67%
Maintainers
1
Install size
39.1 kB
Created
Weekly downloads
 

Readme

Source

Modularity

Community detection algorithm based on graph modularity metric. It is code adaptation of Gephi Modularity.java to javascript.

usage

var dot = require('ngraph.fromdot')
    , Modularity = require('../Modularity')
    , centrality = require('ngraph.centrality')
    ;

var g  = dot('digraph G { a -> b; b -> c; c -> a; a -> d; d -> e; e -> f; f -> d; f -> g; g -> e; }');
var modularity = new Modularity;

var communities = modularity.execute(g);

console.dir(communities);

install

With npm:

npm install ngraph.modularity --save

license

MIT

Keywords

FAQs

Last updated on 04 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc