jacomyal/sigma.js — pull request #73 by computermacgyver (2013-02-06 20:55:55+00:00)
Title: Provide parseJson plugin (and nothing more)

A fixed minimal addition of two files for adding a parseJSON plugin.

Gexf plugin is not compatible with IE and also creates repeated work by parse xml on every client. Optionally, creators should be able to parse the xml once, store the results in json, and load this

The modifications provide this functionality. The plugin parseJson allows loading a json file of node and edge info. The python script (gexf2json) creates a json file from a gexf file.

The json file loads about .55-.65 seconds faster on localhost and in general has a smaller file size. It is compatible with major browsers (including IE). The json relies on jQuery, which must also be loaded by the user. Finally, the modifications allow a callback function to be passed to parseGexf or parseJson to be executed after data is loaded.

The json structure exactly mirrors the results from parseGexf for compatibility. I would really like, however, to see a dictionary instead of a list for attributes in the future.