🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

edgelist2binary

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edgelist2binary

Converts edge list graph format into ngraph's binary representation

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

ngraph

FAQs

Package last updated on 25 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts