Hi Bin, Maybe you could get the vertex, for instance, which id is 80, by using:
graph.vertices.filter{case(id, _) => id==80}.collect but I am not sure this is the exactly efficient way.(it will scan the whole table? if it can not get benefit from index of VertexRDD table) @Ankur, is there any other better method? On Jul 29, 2014, at 11:40 AM, Bin <wubin_phi...@126.com> wrote: > Hi All, > > I wonder how to access a vertex via its vertexId? I need to get vertex's > attributes after running graph algorithm. > > Thanks very much! > > Best, > Bin > >