Add sendMessageToNeighbors() to Vertex
--------------------------------------
Key: HAMA-510
URL: https://issues.apache.org/jira/browse/HAMA-510
Project: Hama
Issue Type: Improvement
Components: graph
Affects Versions: 0.4.0
Reporter: Edward J. Yoon
Priority: Trivial
Fix For: 0.5.0
It'd be nice if we add sendMessageToNeighbors().
In PageRank, then below code can be reduced to 1 line of code.
{code}
for (Edge e : this.getOutEdges()) {
this.sendMessage(e.getTarget(), new DoubleMessage(e.getName(),
(Double) this.getValue() / numEdges));
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira