spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Soumitra Siddharth Johri <soumitra.siddha...@gmail.com>
Subject How to construct graph in graphx
Date Mon, 13 Oct 2014 22:22:44 GMT
Hi,

I am new to scala/graphx and am having problems converting a tsv file to a
graph. I have a flat tab separated file like below:

n1 P1 n2

n3 P1 n4

n2 P2 n3

n3 P2 n1

n1 P3 n4

n3 P3 n2

where n1,n2,n3,n4 are the nodes of the graph and R1,P2,P3 are the
properties which should form the edges between the nodes.

How can I construct a graph from the above file in SPARK GraphX ? Example
code would be very helpful.

Many Thanks
Soumitra

Mime
View raw message