LOG.debug("compute: vertex " + getVertexId() +
" has value " + getVertexValue() +
" on superstep " + getSuperstep());
}
for (LongWritable targetVertexId : this) {
FloatWritable edgeValue = getEdgeValue(targetVertexId);
if (LOG.isDebugEnabled()) {
LOG.debug("compute: vertex " + getVertexId() +
" sending edgeValue " + edgeValue +
" vertexValue " + vertexValue +
" total " +
(edgeValue.get() + (float) vertexValue) +
" to vertex " + targetVertexId +
" on superstep " + getSuperstep());
}
edgeValue.set(edgeValue.get() + (float) vertexValue);
addEdge(targetVertexId, edgeValue);
sendMsg(targetVertexId,
new VerifiableMessage(
getSuperstep(), getVertexId().get(), edgeValue.get()));
}
}