How do I look up a Vertex using its ID?

2014-08-25 Thread Matthew Cornell
Hi Folks. I have a graph computation that passes 'visited' Vertex IDs around, and I need to output information from those in the output phase. How do I look up a Vertex from its ID? I found Partition.getVertex(), but IIUC there is no guarantee that an arbitrary Vertex will be in a particular

RE: How do I output only a subset of a graph?

2014-08-25 Thread Schweiger, Tom
I think you answered your question Or am I supposed to write a VertexOutputFormat implementation that generates no output for the vertices that have no data?, as in YES!. But don't be put off; It is actually a very simple class to override. Here is an example for something like you describe: