LOG.debug("compute: vertex " + getId() +
" has value " + getValue() +
" on superstep " + getSuperstep());
}
for (Edge<LongWritable, FloatWritable> edge : getEdges()) {
FloatWritable newEdgeValue = new FloatWritable(
edge.getValue().get() + (float) vertexValue);
Edge<LongWritable, FloatWritable> newEdge =
EdgeFactory.create(edge.getTargetVertexId(), newEdgeValue);
if (LOG.isDebugEnabled()) {
LOG.debug("compute: vertex " + getId() +
" sending edgeValue " + edge.getValue() +
" vertexValue " + vertexValue +
" total " + newEdgeValue +
" to vertex " + edge.getTargetVertexId() +
" on superstep " + getSuperstep());
}
addEdge(newEdge);
sendMessage(edge.getTargetVertexId(),
new VerifiableMessage(
getSuperstep(), getId().get(), newEdgeValue.get()));
}
}