- From: Yoann Pigné <yoann.pigne AT gmail.com>
- To: Christian Staudt <christian.staudt AT kit.edu>
- Cc: graphstream-users AT litislab.fr
- 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 kit.edu>
wrote:
>
>
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
>
> (http://graphstream-project.org/doc/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();
g.addSink(sink);
sink.begin("/path/to/output-graph.dgs");
// the generator
Generator gen = new DorogovtsevMendesGenerator();
gen.addSink(g);
gen.begin();
for(int i=0; i<100; i++) {
// generate a timestamp at each step for a dynamic graph
g.stepBegins(i);
// generate some nodes and edges
gen.nextEvents();
}
gen.end();
// Close the sink so that the file is properly written.
sink.end();
>
>
> 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.
Best,
Yoann
Archives gérées par MHonArc 2.6.16.