Re: push-relabel flow algorithm

2014-03-24 Thread Pascal Jäger
Hi Rana, all you need to do is writing your own EdgeValue and VertexValue class by implementing the Writable Interface. You can use any field you like. Just make sure you write or read them in the Writeable methods. Here’s VertexValue I use (There may be better ways for writing list, but it wo

Re: push-relabel flow algorithm

2014-03-24 Thread Rana Althunyan
Hello Pankaj Malhotra, Yes, I need to assign more than values to the edge. I need the edge has [flow, capacity, distinction, source] You says I need to create a new class type for edge, How can I pass it to json class and how can I make json class read my new edge object. I need to submit my c

Re: Giraph avro input format

2014-03-24 Thread Claudio Martella
I think you can try to see how the avro mapreduce inputformat works and use it on your own in giraph. all the different inputformats we have do that, so you can copy them. What exactly of the GoraInputFormat do you find overkill and why? On Mon, Mar 24, 2014 at 3:22 PM, Martin Neumann wrote: > I

Re: Giraph avro input format

2014-03-24 Thread Martin Neumann
I'm trying to put the GiraphJob I wrote into production so I need to fix this. The avro file I need to read is structured in the (bytes) schema. Each datum is actually just a number of words separated by whitespace. The whole thing is not yet in graph format so that I need some logic in the giraph

OutputFormat Format For a basic intWritable

2014-03-24 Thread Arun Kumar
Hi Can any one tel me which output format will i use for an applications such as a triangle counting or Closing vertex .I wanted to know whether some existing class will suffice or a custom type should be created for displaying an Int/Double/Long Writable(The out put could be a count eg:12342 o

Re: push-relabel flow algorithm

2014-03-24 Thread Pankaj Malhotra
If I get your point-1 right, you want to have a vertex class type other than the ones available, for example: Text. If this is what you want, you can have a class having as many fields as you want. Then convert the objects of that class to Json objects using Gson for example. Then, you can use the