Re: Using the RandomEdge ... RandomVertex InputFormat

2013-11-04 Thread Claudio Martella
Every inputformat has a IVE signature with the type of vertex index, value and edge value. They have to match the signature of the computation class you're using. In your case, the inputformat generates vertices with Long ids, while the computation class expects floats. On Mon, Nov 4, 2013 at

Re: Using the RandomEdge ... RandomVertex InputFormat

2013-11-04 Thread Mirko Kämpf
Thanks, Claudio. I conclude from your mail, I have to create my own PseudoRandomEdgeInputFormat and PseudoRandomVertexInputFormat with types, which fit to the algorithm I want to use. So I misunderstood the concept and not all InputFormats fit to any given implemented algorithm. I this right?

Re: Using the RandomEdge ... RandomVertex InputFormat

2013-11-04 Thread Claudio Martella
Yes, you'll have to make sure that the pseudorandomedgeinputformat provides the right types. The code for the watts strogatz model is the same package as the pseudorandom... but in trunk and not in 1.0. On Mon, Nov 4, 2013 at 12:14 PM, Mirko Kämpf mirko.kae...@cloudera.comwrote: Thanks,

Re: Using the RandomEdge ... RandomVertex InputFormat

2013-11-04 Thread Mirko Kämpf
That helped me a lot. Thanks. Mirko On Mon, Nov 4, 2013 at 7:33 PM, Claudio Martella claudio.marte...@gmail.com wrote: Yes, you'll have to make sure that the pseudorandomedgeinputformat provides the right types. The code for the watts strogatz model is the same package as the

Figuring out if the program is halted

2013-11-04 Thread Ameya Vilankar
Hi, I want to check on the Master(i.e. in the MasterCompute Class) whether all the vertices have voted to halt and the program has terminated. For e.g. Suppose that I am running Connected Components. I want to run an aggregator when the algorithm has terminated that will count the number of

Re: Link Prediction with Giraph

2013-11-04 Thread David J Garcia
You could also approach the problem from a statistical point of view and sample from an inferred distribution of the links (which vertices they link). The prior distribution probably won't be as interesting as the conditional distributions you are most likely interested in...that is, start with