You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hama.apache.org by Arian Azin <ar...@gmail.com> on 2014/02/28 15:45:31 UTC

Running graph job for a specific Vertex

Hi,

How can I run a Hama graph job (the compute() method) only for a specific
Vertex, not the whole graph?

Thanks

Re: Running graph job for a specific Vertex

Posted by Arian Azin <ar...@gmail.com>.
Hi Anastasis,

I thought maybe there'd be a way to avoid all the setup for Vertices we're
not interested in.

Thanks Anyway


On Fri, Feb 28, 2014 at 6:23 PM, Anastasis Andronidis <
andronat_asf@hotmail.com> wrote:

> Hi Arian,
>
> you can do by putting an if statement in you compute() method that checks
> the vertex ID or vertex name, and let only the specific vertex to run the
> code.
>
> Kindly,
> Anastasis
>
> On 28 Φεβ 2014, at 3:45 μ.μ., Arian Azin <ar...@gmail.com> wrote:
>
> > Hi,
> >
> > How can I run a Hama graph job (the compute() method) only for a specific
> > Vertex, not the whole graph?
> >
> > Thanks
>
>

Re: Running graph job for a specific Vertex

Posted by Anastasis Andronidis <an...@hotmail.com>.
Hi Arian,

you can do by putting an if statement in you compute() method that checks the vertex ID or vertex name, and let only the specific vertex to run the code.

Kindly,
Anastasis

On 28 Φεβ 2014, at 3:45 μ.μ., Arian Azin <ar...@gmail.com> wrote:

> Hi,
> 
> How can I run a Hama graph job (the compute() method) only for a specific
> Vertex, not the whole graph?
> 
> Thanks