You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gephi gexf file parser for server and browser. This library is a part of ngraph project. See demo here: Talking with Gephi
usage
This library allows you to load gexf files into ngraph.graph.
varfs=require('fs');vargexf=require('ngraph.gexf');vargraph=gexf.load(fs.readFileSync('myfile.gexf','utf8'));// graph is now normal grpah and can be used by ngraph modules
This library supports node.js and browser runtime (via browserify).
When used from node.js it uses libxmljs library for quick parsing of xml files.
When used in a browser it uses browser's capabilities to read and query xml files.
Because of this, library size is really small when served in the browser:
24kb - unminified
13kb - minified
4kb - gzipped
Current implementation is really basic and does not support some of the gexf features:
Adding Hierarchy and Phylogeny is relatively easy and they will be implemented
if such need arise. Dynamics - requires to think a little bit to better represent
graph's timeline.