Re: RandomVertexId

2013-12-16 Thread Pushparaj Motamari
Thank You for your suggestions On Tue, Dec 17, 2013 at 3:19 AM, Jan van der Lugt wrote: > Hi Pushparaj, > > I would not recommend doing either of these latter two approaches, since > the first one will only work for small graphs (in which case: why use a > distributed platform like Giraph?) and

Re: RandomVertexId

2013-12-16 Thread Jan van der Lugt
Hi Pushparaj, I would not recommend doing either of these latter two approaches, since the first one will only work for small graphs (in which case: why use a distributed platform like Giraph?) and the second one does not give you true random vertices. To do this efficiently, you would have to imp

Re: RandomVertexId

2013-12-16 Thread Ameya Vilankar
Hi There are several ways of doing this. If you know you vertex Ids lie between a certain range of values like from 0 - (some value). Then you can simple generate a random value in that range and call sendMessage to send message to the randomly selected vertex. However, if your vertices do not lie

RandomVertexId

2013-12-16 Thread Pushparaj Motamari
Hi, In a compute method I would like to send message to a random vertex, how could I able to get random vertexid? Thanks Pushparaj