The function uses igraph::clusters and igraph::induced.subgraph to extract the giant component of an igraph object.
1  getgcc(net)

net 
An igraph object. 
In a connected component of an undirected graph all pairs of vertices u and v are reachable by a path. The giant connected component describes the largest connected component of a graph object.
getgcc
returns an igraph object with the giant connected
component of an igraph object.
G. Csardi and T. Nepusz, The igraph software package for complex network research, InterJournal, Complex Systems,1695, 2006, http://igraph.org
1 2 3 4 5 6 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.