protected Vertex<LongWritable, DoubleWritable, FloatWritable>
transformVertex(Object goraObject) {
Vertex<LongWritable, DoubleWritable, FloatWritable> vertex;
/* create the actual vertex */
vertex = getConf().createVertex();
GVertex tmpGVertex = (GVertex) goraObject;
LongWritable vrtxId = new LongWritable(
Long.parseLong(tmpGVertex.getVertexId().toString()));
DoubleWritable vrtxValue = new DoubleWritable(
tmpGVertex.getVertexValue());
vertex.initialize(vrtxId, vrtxValue);
if (tmpGVertex.getEdges() != null && !tmpGVertex.getEdges().isEmpty()) {
Set<CharSequence> keyIt = tmpGVertex.getEdges().keySet();
for (CharSequence key : keyIt) {
String keyVal = key.toString();
String valVal = tmpGVertex.getEdges().get(key).toString();
Edge<LongWritable, FloatWritable> edge;
if (!keyVal.contains("vertexId") && !keyVal.contains("value")) {
edge = EdgeFactory.create(
new LongWritable(Long.parseLong(keyVal)),
new FloatWritable(Float.parseFloat(valVal)));