GraphStream Users

Archives de la liste Aide

Re: sources for dynamic networks in .dgs format

Chronologique Discussions 
  • From: Yoann Pigné <yoann.pigne AT>
  • To: Christian Staudt <christian.staudt AT>
  • Cc: graphstream-users AT
  • Subject: Re: sources for dynamic networks in .dgs format
  • Date: Fri, 31 Jan 2014 14:41:17 +0100

Hi Christian,

On Jan 31, 2014, at 2:06 PM, Christian Staudt
<christian.staudt AT>

> Hi Yoann,
>> A .dgs repository. The idea has been on the todo list for a while... maybe
>> one day :)
> When you get to it one day, I might be able to contribute a handful of
> real-world data sets.

Thanks! I won't forget that :)

>> You can always generate artificial dynamic graphs with generators
>> (, but yeah, it's only
>> artificial…
> I need large dynamic complex networks with community structure. What could
> be suitable is the Dorogovtsev-Mendes generator. So far I’ve managed to
> generate and display graphs, but not to store the streams in .dgs files.
> Could you maybe give me a code example for this?

This code can throw IO Exception, you'll need to try/catch or throw. If you
want a static graph, just remove the /*g.stepBegins(i);*/ line.

Graph g = new AdjacencyListGraph("Dyn DorogovtsevMendes Graph");

// the file sink
FileSinkDGS sink = new FileSinkDGS();

// the generator
Generator gen = new DorogovtsevMendesGenerator();

for(int i=0; i<100; i++) {
// generate a timestamp at each step for a dynamic graph

// generate some nodes and edges

// Close the sink so that the file is properly written.

>> By the way, NetworKit looks great!
> Thank you, that’s a compliment considering that it is still very much under
> construction. Version 2.1 is due in February and will have a more complete
> feature set and documentation. But I think it is developing into a good
> tool if you want to do interactive analytics on large graphs. If you want
> to try it out, don’ t hesitate to ask me for support. Any feedback is
> greatly appreciated.

Thanks again.



Archives gérées par MHonArc 2.6.16.

Top of page