There was a recent JIRA that broke those out of the shortest paths vertex class and made the IO formats separate. The way I think things are going now is to write your vertex, and then try to use the supplied IO formats by specifying them at the command line using the -if and -of switches (see GiraphRunner.java and the bin/giraph shell script)
Some updated docs on this for the wiki would be fantastic, its way out of date now and needs to be updated on a number of topics. On Thu, Jul 12, 2012 at 7:56 AM, Claudio Martella < [email protected]> wrote: > right, you can use them with the Json* classes in lib/. They have > types that match the vertex signature (long, double, float, double). > > On Thu, Jul 12, 2012 at 4:41 PM, Mirko Kämpf <[email protected]> > wrote: > > Thanks for the reply, > > > > I think I did not describe my question clear. > > I can not find the classes in the src folder (in trunk) I cheked out from > > svn . > > In what package are these classes or did I check out the wrong folder? > > Mirko > > > > > > > > On Thu, Jul 12, 2012 at 4:35 PM, Claudio Martella < > > [email protected]> wrote: > > > >> Hi Mirko, > >> > >> no, those classes are there for you to use. they define the way the > >> graph is serialized and deserialized, so that it can be loaded to > >> compute the paths and offloaded to write the result. > >> > >> On Thu, Jul 12, 2012 at 2:27 PM, Mirko Kämpf <[email protected] > > > >> wrote: > >> > Hello, > >> > > >> > I just started to dive into Giraph, and while I tried the > >> > SimpleShortestPaths example, a > >> > it is explained in the Wiki I found that SimpleShortestPathsVertex > has no > >> > main and run method, > >> > so I assume it should be used with the GiraphRunner. But there are the > >> > classes: > >> > > >> > SimpleShortestPathsVertexReader > >> > SimpleShortestPathsVertexInputFormat > >> > SimpleShortestPathsVertexWriter > >> > SimpleShortestPathsVertexOutputFormat > >> > which are explained in the Wiki located? Are they removed finally, or > do > >> I > >> > have to create these classes? > >> > > >> > I would like to update the Wiki pages to show how to work with the > >> examples > >> > in giraph-0.20 and > >> > some classes to import / export graph or networkdata I would also > like to > >> > contribute. > >> > > >> > Best wishes > >> > Mirko > >> > >> > >> > >> -- > >> Claudio Martella > >> [email protected] > >> > > > > -- > Claudio Martella > [email protected] >
