@gram-data/graphology-gram
v0.1.1
Published
[Gram](https://gram-data.github.io/gram-js/) parser & writer for [graphology](https://graphology.github.io/).
Downloads
2
Readme
Graphology Gram
Gram parser & writer for graphology.
Installation
npm install @gram-data/graphology-gram
How to gram
import MakeGraph from 'graphology';
import gram from '@gram-data/graphology-gram';
const src = "(a)-->(b)<--(c)";
// Parse the gram src
var graph = gram.parse(MakeGraph, src);
var serializedGraph = gram.stringify(graph);