
8 Oct
2009
8 Oct
'09
9:23 a.m.
Hi, I noticed that when generating several graphs with the sorted_erdos_renyi_iterator with the same random generator all of them happen to be the same. Looking at erdos_renyi_generator.hpp I see that there is a reset in the generator. This does not happens in the normal (unsorted) erdos_renyi_iterator since the generator is passed by reference in the constructor. I'm still not confortable with the BGL and the random libraries, but I might say that it is better to pass the random generator by reference. Is there a special reason for not doing so? Thank you, MartÃ