original_docstring:  Returns a list of connected components for a given graph, ordered by size
docstring: Returns a list of connected components for a given graph, ordered by size
docstring_tokens: Returns a list of connected components for a given graph ordered by size
code: def connected_components(graph):
      """ Returns a list of connected components for a given graph, ordered by size"""
      subgraphs = list(nx.connected_component_subgraphs(graph))
      subgraphs = sorted(subgraphs, key=len, reverse=True)
  
      return subgraphs
code_tokens: def connected_components ( graph ) : subgraphs = list ( nx . connected_component_subgraphs ( graph ) ) subgraphs = sorted ( subgraphs , key = len , reverse = True ) return subgraphs
short_docstring: Returns a list of connected components for a given graph, ordered by size
short_docstring_tokens: Returns a list of connected components for a given graph ordered by size
comment: """ Returns a list of connected components for a given graph, ordered by size"""