Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. val df = MongoSpark.load(sparkSession)
  2.  
  3.  
  4. val vertices =df.select("id", "flight_origin")
  5.  
  6. val edges =df.select("orig.id","dest.id","flight.dist")
  7. val g = GraphFrame(vertices, edges)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement