Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 448 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 448 Bytes

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);