This function removes all nodes that are not part of the largest connected set.
Arguments
- x
a gGraph object
Value
a gGraph object with only the nodes from the largest set remaining
Examples
max_set <- keepMaxConnectedSet(worldgraph.10k)
plot(max_set)
#> Spherical geometry (s2) switched off
#> Spherical geometry (s2) switched on
