spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bin <wubin_phi...@126.com>
Subject [GraphX] The best way to construct a graph
Date Fri, 01 Aug 2014 03:23:49 GMT
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
Mime
View raw message