1

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 partition. Thanks in advance.

Matthew Cornell
  • 4,114
  • 3
  • 27
  • 40

1 Answers1

2

AFAIK you can’t look simply up all the vertices. That’s why you have the computation phase to store all the necessary information inside the nodes so you can afterwards print them.

Doing it differently would to my knowledge completely screw up Giraph’s programming paradigm.

peter
  • 14,348
  • 9
  • 62
  • 96