title: How to construct graph in graphx
body: <p>I am new to scala and graphx and am having problems converting a tsv file to a graph.
  I have a flat tab separated file like below:</p>
  
  <p><code>n1 P1  n2
  n3  P1  n4
  n2  P2  n3
  n3  P2  n1
  n1  P3  n4
  n3  P3  n2</code></p>
  
  <p>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.</p>
  
  <p>How can I construct a graph from the above file in SPARK GraphX ?
  Example code would be very helpful.</p>