modifying centrality experiment.rb to write results as it goes