Hi All,

I am wondering what is the best way to construct a graph?


Say I have some attributes for each user, and specific weight for each user 
pair. The way I am currently doing is first read user information and edge 
triple into two arrays, then use sc.parallelize to create vertexRDD and 
edgeRDD, respectively. Then create the graph using Graph(vertices, edges).


I wonder whether there is a better way to do this?


Looking for advice!


Thanks very much!


Best,
Bin

Reply via email to