edgelist2binary

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i edgelist2binary

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • anvaka