I don\'t know if NetworkX recently tweaked one of the methods to be a generator instead of returning a list, but I\'m looking for a good (rather, better) way to get the GC o
In networkx 1.9, connected_components_subgraphs returns an iterator (instead of a sorted list). The values yielded by the iterator are not in sorted order. So to find the largest, use max: