sumOfEdgeWeights = thisNode.getEdgeWeight(id)
+ thisNode.getEdgeWeight(v1);
adjacentNode.setEdgeWeight(v1, sumOfEdgeWeights);
}
}
collector.collect(new StringKey("" + adjacentNode.getID()),
new BytesValue(adjacentNode.getBytes()));
setNodeToNullForGarbageCollection(adjacentNode);
}
collector.collect(new StringKey("" + thisNode.getID()),
new BytesValue(thisNode.getBytes()));
}
} catch (SerializationException e) {
throw new TwisterException(e);
}