Graphology GEXF Utilities
GEXF parser & writer for graphology
.
For more information about the GEXF file format, you can head there.
Installation
npm install graphology-gexf
Usage
Browser parser
The parser must be passed a graphology
constructor and is able to read either a string, or an XMLDocument
instance.
var Graph = require('graphology');
var parser = require('graphology-gexf/browser').parser;
var graph = parser(Graph, string);
var graph = parser(Graph, xmlDocument);
Arguments
- constructor GraphClass: graphology constructor to use.
- source string|Document: source data to parse.