You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by "Zhang, Jingyu" <ji...@news.com.au> on 2015/12/02 07:53:00 UTC
Graphx: How to print the group of connected components one by one
Can anyone please let me know How to print all nodes in connected
components one by one?
graph.connectedComponents()
e.g.
connected Component ID Nodes ID
1 1,2,3
6 6,7,8,9
Thanks
--
This message and its attachments may contain legally privileged or
confidential information. It is intended solely for the named addressee. If
you are not the addressee indicated in this message or responsible for
delivery of the message to the addressee, you may not copy or deliver this
message or its attachments to anyone. Rather, you should permanently delete
this message and its attachments and kindly notify the sender by reply
e-mail. Any content of this message and its attachments which does not
relate to the official business of the sending company must be taken not to
have been sent or endorsed by that company or any of its related entities.
No warranty is made that the e-mail or attachments are free from computer
virus or other defect.