GraphStream Users

Archives de la liste Aide


Re: GEXF for Dynamic Graphs?


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: graphstream-users AT litislab.fr, Dylan Hutchison <dhutchis AT stevens.edu>
  • Subject: Re: GEXF for Dynamic Graphs?
  • Date: Wed, 31 Jul 2013 17:34:49 +0200

Hi Dylan,

I have commited an update of FileSinkGEXF that should handle the dynamics ... You can get it on github.
You can use it like this :

Graph g = new SingleGraph("data");
FileSinkGEXF fsinkgexf = new FileSinkGEXF();

g.addSink(fsinkgexf);
fsinkgexf.begin("output.gexf");
addTonsOfDynamicGraphEvents(g);

fsinkgexf.end();

It should be really buggy so ... please report bugs you will find :)
Hope this will help ...

Guilhelm


2013/7/31 Dylan Hutchison <dhutchis AT stevens.edu>
Hi there,

Back in January an email went around on using the Timeline class plus FileSinkGEXF to record a stream of graph events to a Timeline object, and at a later time, write out all those events to a GEXF file via FileSinkGEXF.  Since then, Timeline has seen good development and has really nice playback methods. But, there still does not appear to be any way to save a Timeline (or Graph in general) to a GEXF file.  

Does anyone have any suggestions on how to save a dynamic graph to a GEXF file?

Ideally, I would like to write something like this:
Timeline timeline = new Timeline();
Graph g = new SingleGraph("data");
timeline.begin(g);
addTonsOfDynamicGraphEvents(g);

timeline.end();
//timeline.playback(); // Side note: Really useful method for playing back to a Graph g

// Can we play back to a file instead?
FileSinkGEXF fsinkgexf = new FileSinkGEXF();
fsinkgexf.begin("output.gexf");
fsinkgexf.playbackTo(fsinkgexf, "output.gexf"); // made up method


Thanks,
Dylan Hutchison



--
Guilhelm Savin
PhD Student of Computer Science



Archives gérées par MHonArc 2.6.16.

Top of page