graphstream / gs-core

Graphstream core
http://graphstream-project.org/
Other
402 stars 109 forks source link

Reproducibility of random processes #350

Closed DanySK closed 4 years ago

DanySK commented 4 years ago

Hi, is there anyway to seed a generator in such a way that, given a seed, it always generates the same graph? This is extremely important in order to use graphstream for scientific simulations, as the same runs need to be reproducible.

I believe BaseGenerator should be modified with a two new constructors accepting respectively:

DanySK commented 4 years ago

Nevermind, I missed setRandomSeed within BaseGenerator. Please consider this issue invalid.