Slide 22
Slide 22 text
• Spark
• GraphFrames
Copyright © since 1998 DMM All Rights Reserved. 22
Sparkとは?
GraphFramesは、
DataFramesとGraphXを
統合するためのSpark
サードパーティ製パッ
ケージ
val friends = examples.Graphs.friends
friends.triplets.show()
+------------+--------------+--------------+
| edge| src| dst|
+------------+--------------+--------------+
|[a,b,friend]| [a,Alice,34]| [b,Bob,36]|
|[b,c,follow]| [b,Bob,36]|[c,Charlie,30]|
|[c,b,follow]|[c,Charlie,30]| [b,Bob,36]|
|[f,c,follow]| [f,Fanny,36]|[c,Charlie,30]|
|[e,f,follow]| [e,Esther,32]| [f,Fanny,36]|
|[e,d,friend]| [e,Esther,32]| [d,David,29]|
+------------+--------------+--------------+