Re: GraphX: Types for the Nodes and Edges

2014-10-08 Thread Oshi
Also, 3) can a union operation be done when the list of attributes are different for each vertex type? Would really appreciate a basic example to create graph with multiple node types :) Oshi wrote > 1. vP and vA are RDDs, how do I convert them to vertexRDDs and perform the > union? >

Re: GraphX: Types for the Nodes and Edges

2014-10-07 Thread Oshi
Hi again, Thank you for your suggestion :) I've tried to implement this method but I'm stuck trying to union the payload before creating the graph. Below is a really simplified snippet of what have worked so far. //Reading the articles given in json format val articles = sqlContext.jsonFile(pa

Re: GraphX: Types for the Nodes and Edges

2014-10-01 Thread Oshi
ecific > lookups, in this case you could have your own lookup from X → VertexId then > use the usual `lookup` > > my2€ > > aℕdy ℙetrella > about.me/noootsab > [image: aℕdy ℙetrella on about.me] > > <http://about.me/noootsab> > > On Wed, Oct 1, 2014 at 4:35

GraphX: Types for the Nodes and Edges

2014-10-01 Thread Oshi
Hi, Sorry this question may be trivial. I'm new to Spark and GraphX. I need to create a graph that has different types of nodes(3 types) and edges(4 types). Each type of node and edge has a different list of attributes. 1) How should I build the graph? Should I specify all types of nodes(or edge