Preprocessor for graphchi