minor enhancement to centrality experiment: make sure the out file is reset beforehand