generate csv files for gephi