concept social circle in category graphx

This is an excerpt from Manning's book Spark GraphX in Action.
We’re going to use data from the Learning Social Circles from Networks competition. The data was collected from a small number of Facebook users who had supplied information on friends in their network. In addition to the graph of their network, each contributing user was asked to allocate their friends to one or more social circles. A social circle is some grouping of the user’s friends that made sense to that user. For example, it could be colleagues at work, people from the same school, or a group of friends they socialize with. What constitutes a social circle was left up to the user. Circles could overlap, be completely contained by one or more other circles, and could even be empty.
The second map expression calls a helper method, make_edges, which parses each egonet file’s contents to create edges between each friend connection. Another helper method, get_circles, creates a graph of the egonet using Graph.fromEdgeTuples. Once we have the graph, we call connectedComponents to derive the social circles (see the following listing).