@@ -0,0 +1,1478 @@
+package org.apache.giraph.io.formats;%0A%0A/*%0AThis class is adjusted according to the output generated by Green-Marl compiler%0A*/%0Aimport java.io.DataInput;%0Aimport java.io.DataOutput;%0Aimport java.io.IOException;%0Aimport org.apache.hadoop.io.Writable;%0Aimport org.apache.hadoop.io.LongWritable;%0Aimport java.util.*;%0A%0Apublic class BCNode implements Writable %7B%0A%09// properties%0A%09public float BC;%0A%09public float sigma;%0A%09public float delta;%0A%09public float __S3prop;%0A%09public int level;%0A%09public ArrayList%3CLongWritable%3E revNodeId; // reverse edges (node IDs)%0A%0A%09public BCNode() %7B%0A%09%09// Default constructor needed for Giraph%0A%09%09revNodeId = new ArrayList%3CLongWritable%3E();%0A%09%7D%0A%0A%09// Initalize with initData%0A%09public BCNode(float bc) %7B%0A%09%09BC = bc;%0A%09%7D%0A%0A%09public float getBC() %7B%0A%09%09return BC;%0A%09%7D%0A%0A%09@Override%0A%09public void write(DataOutput out) throws IOException %7B%0A%09%09out.writeFloat(BC);%0A%09%09out.writeFloat(sigma);%0A%09%09out.writeFloat(delta);%0A%09%09out.writeFloat(__S3prop);%0A%09%09out.writeInt(level);%0A%09%09out.writeInt(revNodeId.size());%0A%09%09for (LongWritable node : revNodeId) %7B%0A%09%09%09node.write(out);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public void readFields(DataInput in) throws IOException %7B%0A%09%09BC = in.readFloat();%0A%09%09sigma = in.readFloat();%0A%09%09delta = in.readFloat();%0A%09%09__S3prop = in.readFloat();%0A%09%09level = in.readInt();%0A%09%09int _node_count = in.readInt();%0A%09%09revNodeId = new ArrayList%3CLongWritable%3E();%0A%09%09for (int i = 0; i %3C _node_count; i++) %7B%0A%09%09%09revNodeId.get(i).readFields(in);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22%22 + BC;%0A%09%7D%0A%7D%0A

Create BCNode.java