Skip to content

Parse/stringify gram textual data graphs into/from graphology graph models.

License

Notifications You must be signed in to change notification settings

gram-data/graphology-gram

Repository files navigation

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

About

Parse/stringify gram textual data graphs into/from graphology graph models.

Resources

License

Stars

Watchers

Forks

Packages

No packages published