0.0.3 • Published 8 years ago
sigma_graph_component v0.0.3
Sigma Graph Component
React component to control and animate a sigma.js network diagram.

Usage
var optional_data = {
nodes: [
{
id: 1,
name: 'hello',
category: 'dog'
},
{
id: 2,
name: 'world',
category: 'cat'
}
],
edges: [
{
source: 1,
target: 2
}
]
};
// a new stage forces the graph to animate update
return <Graph data={optional_data} stage={0} />;Development, Install dependencies
npm installDeveloping locally
Run
npm run devIn your browser, navigate to: http://localhost:8080/
Publish
In
webpack.config.jsfile, replacewww.example.comwith the real domain name.Run
npm run buildCopy the following folders/files to web server
/build, /image, index.html