Plugin developed by Jason Vallet. Inspired from sigma.parsers.gexf, developed by Alexis Jacomy.
This plugin provides a single function, sigma.parsers.tlp()
, that will load a tlp encoded file, parse it, and instantiate sigma.
The most basic way to use this helper is to call it with a path and a sigma configuration object. It will then instantiate sigma, but after having added the graph into the config object.
sigma.parsers.tlp(
'myGraph.tlp',
{ container: 'myContainer' }
);
It is also possible to update an existing instance's graph instead.
sigma.parsers.tlp(
'myGraph.tlp',
myExistingInstance,
function() {
myExistingInstance.refresh();
}
);
To copy in the plugins directory.