You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by balaji9058 <ks...@gmail.com> on 2017/02/03 10:24:31 UTC

Bipartite projection with Graphx

Hi,

Is possible Bipartite projection with Graphx

Rdd1
#id	name
1	x1
2	x2
3	x3
4	x4
5	x5
6	x6
7	x7
8	x8

Rdd2
#id	name
10001	y1
10002	y2
10003	y3
10004	y4
10005	y5
10006	y6

EdgeList
#src id	Dest id
1	10001
1	10002
2	10001
2	10002
2	10004
3	10003
3	10005
4	10001
4	10004
5	10003
5	10005
6	10003
6	10006
7	10005
7	10006
8	10005

  val nodes = Rdd1++ Rdd2
 val Network = Graph(nodes, links)

with above network need to create projection graphs like x1-x2 weight (see
the image in below wiki link)
example:

https://en.wikipedia.org/wiki/Bipartite_network_projection





--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Bipartite-projection-with-Graphx-tp28360.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org