Changed random generator to generate the same graph for different algorithms