Re: Gelly forward

2015-07-08 Thread Vasiliki Kalavri
Thanks Flavio. Here's my suggestion. If your paths are short and don't vary much, it might make sense to do this using the DataSet API. The iteration will probably be too much overhead. For example, if you want to find the paths for "livesIn.containedIn.name", then you can create 3 DataSets, one f

Re: Gelly forward

2015-07-08 Thread Flavio Pompermaier
In my Implementation every vertex has its own bags of "knowledge" (i.e. it knows all tuples belonging to it..). So in Vertex 1 I have a field (an HashMap) containing the following info: - type=Person - livesIn=2 (and I know also that 2 is a vertexId) In Vertex 3 I know: - type=Place

Re: Gelly forward

2015-07-08 Thread Vasiliki Kalavri
Hi Flavio, yes, I think it's possible. I have one question before I try to explain how: do you model "Rome", "Berlin", "101.3" etc. in your above example as separate vertices or as properties of vertices? On 8 July 2015 at 10:43, Flavio Pompermaier wrote: > Let's say I have some nodes of some t

Re: Gelly forward

2015-07-08 Thread Flavio Pompermaier
Let's say I have some nodes of some type of interest (type1 and type2). My source data looks like . For example, I could be interested in sourceNodes having type == Person to gather the value obtained from the expansion of some paths (for example livesIn.name and marriedTo.name). Notice that I coul

Re: Gelly forward

2015-07-08 Thread Vasiliki Kalavri
Is it the same message that you propagate or is it different for each vertex / neighbor? If you have to store a pair for each neighbor, then you will quickly run out of memory. If it's the same message you need to send, or you simply need to add the current vertex Id, then you can probably get rid

Re: Gelly forward

2015-07-08 Thread Flavio Pompermaier
The problem is that my nodes have to gather data coming from some path of interest along the graph (depending on the type of the node), otherwise they just have to forward the received message adding their id to the message path (more or less). It's like a postal tracking system. The problem is th

Re: Gelly forward

2015-07-08 Thread Vasiliki Kalavri
Hi Flavio! Are you talking about vertex-centric iterations in gelly? If yes, you can send messages to a particular vertex with "sendMessageTo(vertexId, msg)" and to all neighbors with "sendMessageToAllNeighbors(msg)". These methods are available inside the MessagingFunction. Accessing received me

Gelly forward

2015-07-07 Thread Flavio Pompermaier
Hi to all, is there a way in gelly to forward received messages (and modify their content before sending)? Best, Flavio