1.0.0 • Published 9 years ago
edgelist2binary v1.0.0
edgelist2binary
Converts edge list graph format into ngraph's binary representation
usage
Let's say you have a file edges.txt
written as an edge list
var toBinary = require('edgelist2binary');
toBinary('edges.txt');
This command will use streaming approach and transform the entire file into dense ngraph binary format.
You can also pass optional second argument, and it will be forwarded to
ngraph.tobinary
:
toBinary('edges.txt', {
outDir: '/temp' // save to temp folder
});
NOTE: for the large graphs with millions nodes, make sure to increase max memory for node:
node --max-old-space-size=6144 [your serializer file name.js]
install
With npm do:
npm install edgelist2binary
license
MIT
1.0.0
9 years ago