ECharts graph modularity extension for community detection
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
example
src Tweak. Jul 4, 2017
.gitignore
README.md
index.js
package.json
webpack.config.js

README.md

ECharts graph modularity extension

logo

Graph modularity extension will do community detection and partian a graph's vertices in several subsets. Each subset will be assigned a different color.

Install

<script src="echarts.min.js"></script>
<script src="echarts-graph-modularity.min.js"></script>

Or

npm install echarts-graph-modularity
var echarts = require('echarts');
require('echarts-graph-modularity');

Usage

setOption({

    ...

    series: [{
        type: 'graph',
        layout: 'force',
        // Set modularity property true and extension will automatically detect different communities
        // and assign each different color.
        modularity: true

        // Specify resolution. Higher resolution will produce less communities
        modularity: {
            resolution: 5,
            // If sort the communities
            sort: false
        }

        ...
    }]
})