def run(gephi_stuff): # the Highest function global count_steps config.set_g(gephi_stuff['g']) config.set_gephi(gephi_stuff) initialize() while not termination_condition(): step() end()
def series(gephi_stuff): # the Highest function (hehe) print "series!" config.set_g(gephi_stuff['g']) config.set_gephi(gephi_stuff) gi.save_weights() for run_num in range(0, config.runs_per_series): stats.run_num = run_num simulation_run() stats.write_history()