Fwd: GraphX : Vertices details in Triangles
Hi All, I'm new to GraphX. I'm understanding Triangle Count use cases. I'm able to get number of triangles in a graph but I'm not able to collect vertices details in each Triangle. *For example* : I'm playing one of the graphx graph example Vertices and Edges val vertexArray = Array( (1L, ("Alice", 28)), (2L, ("Bob", 27)), (3L, ("Charlie", 65)), (4L, ("David", 42)), (5L, ("Ed", 55)), (6L, ("Fran", 50)) ) val edgeArray = Array( Edge(2L, 1L, 7), Edge(2L, 4L, 2), Edge(3L, 2L, 4), Edge(3L, 6L, 3), Edge(4L, 1L, 1), Edge(5L, 2L, 2), Edge(5L, 3L, 8), Edge(5L, 6L, 3) ) [image: Toy Social Network] I'm able to get 3 Triangles count in the above graph. I want to know Vertices details in a each Triangle. *For example like* : Triangle 1 : 1, 2, 4 Triangle 2 : 2, 5, 3 Triangle 3 : 5, 3, 6 Could you please help on this. Regards, Rajesh
GraphX : Vertices details in Triangles
Hi All, I'm new to GraphX. I'm understanding Triangle Count use cases. I'm able to get number of triangles in a graph but I'm not able to collect vertices details in each Triangle. *For example* : I'm playing one of the graphx graph example Vertices and Edges val vertexArray = Array( (1L, ("Alice", 28)), (2L, ("Bob", 27)), (3L, ("Charlie", 65)), (4L, ("David", 42)), (5L, ("Ed", 55)), (6L, ("Fran", 50)) ) val edgeArray = Array( Edge(2L, 1L, 7), Edge(2L, 4L, 2), Edge(3L, 2L, 4), Edge(3L, 6L, 3), Edge(4L, 1L, 1), Edge(5L, 2L, 2), Edge(5L, 3L, 8), Edge(5L, 6L, 3) ) [image: Toy Social Network] I'm able to get 3 Triangles count in the above graph. I want to know Vertices details in a each Triangle. *For example like* : Triangle 1 : 1, 2, 4 Triangle 2 : 2, 5, 3 Triangle 3 : 5, 3, 6 Could you please help on this. Regards, Rajesh