Code for running Apache Giraph on the rewritten graphs