On Thu, Jul 24, 2014 at 9:52 AM, Arun Kumar toga...@gmail.com wrote:
While using pregel API for Iterations how to figure out which super step
the iteration currently in.
The Pregel API doesn't currently expose this, but it's very straightforward
to modify Pregel.scala
Thanks
On Fri, Jul 18, 2014 at 12:22 AM, Ankur Dave ankurd...@gmail.com wrote:
If your sendMsg function needs to know the incoming messages as well as
the vertex value, you could define VD to be a tuple of the vertex value and
the last received message. The vprog function would then store
Hi
I am trying to implement belief propagation algorithm in GraphX using the
pragel API.
*def* pregel[A]
(initialMsg*:* A,
maxIter*:* Int = *Int*.*MaxValue*,
activeDir*:* EdgeDirection = *EdgeDirection*.*Out*)
(vprog*:* (VertexId, VD, A) *=* *VD*,
If your sendMsg function needs to know the incoming messages as well as the
vertex value, you could define VD to be a tuple of the vertex value and the
last received message. The vprog function would then store the incoming
messages into the tuple, allowing sendMsg to access them.
For example, if