ngraph.toprotobuf

0.3.0 • Public • Published

ngraph.toprotobuf

Stores ngraph instance into protobuf format on disk

usage

To save a graph:

// let's say `graph` is an instance of ngraph.graph
var toProtoBuf = require('ngraph.toprotobuf')

// this will save graph into 'data' folder
toProtoBuf(graph, {
  outDir: 'data'
});

Note: This module does not oficially support reading from the protobuf, but you can take a look how it could be done, by following readPrimitive.js code.

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i ngraph.toprotobuf

Weekly Downloads

7

Version

0.3.0

License

MIT

Last publish

Collaborators

  • anvaka