Re: [GraphX] The best way to construct a graph

2014-08-01 Thread Ankur Dave
At 2014-08-01 11:23:49 +0800, Bin wrote: > 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.

Re:Re: Re:Re: [GraphX] The best way to construct a graph

2014-07-31 Thread Bin
he >same file, and then compile the project again? > > > >-- >View this message in context: >http://apache-spark-user-list.1001560.n3.nabble.com/GraphX-The-best-way-to-construct-a-graph-tp11122p11138.html >Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Re:Re: [GraphX] The best way to construct a graph

2014-07-31 Thread shijiaxin
Have you tried to write another similar function like edgeListFile in the same file, and then compile the project again? -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/GraphX-The-best-way-to-construct-a-graph-tp11122p11138.html Sent from the Apache Spark

Re:Re: [GraphX] The best way to construct a graph

2014-07-31 Thread Bin
think you can try GraphLoader.edgeListFile, and then use join to associate >the attributes with each vertex > > > >-- >View this message in context: >http://apache-spark-user-list.1001560.n3.nabble.com/GraphX-The-best-way-to-construct-a-graph-tp11122p11127.html >Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: [GraphX] The best way to construct a graph

2014-07-31 Thread shijiaxin
I think you can try GraphLoader.edgeListFile, and then use join to associate the attributes with each vertex -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/GraphX-The-best-way-to-construct-a-graph-tp11122p11127.html Sent from the Apache Spark User List

[GraphX] The best way to construct a graph

2014-07-31 Thread Bin
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 edg