jacomyal/sigma.js — pull request #52 by computermacgyver (2012-09-28 12:55:34+00:00)
Title: Provide 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.