Add npm
dependency in package.json
.
{
"name": "awesome-project",
"dependencies": {
"metagraph-node": "^0.2.0"
}
}
Start playing with graphs.
import Metagraph from 'metagraph-node';
const mg = new Metagraph();
const g = mg.addGraph();
const v = g.addVertex('PLANET');
v.setProperties({ 'name': 'Mars' });
First, clone the repo via git:
git clone [email protected]:openmg/metagraph-node.git
And then install dependencies.
$ cd metagraph-node && npm install
Atom
apm install autocomplete-flow autocomplete-modules ava editorconfig es6-javascript language-babel linter linter-flow linter-xo