docs: def connected(G, method_name, **kwargs):
      """
      Performs analysis methods from networkx.connected on each graph in the
      collection.
  
      Parameters
      ----------
      G : :class:`.GraphCollection`
          The :class:`.GraphCollection` to analyze. The specified method will be
          applied to each graph in ``G``.
      method : string
          Name of method in networkx.connected.
      **kwargs : kwargs
          Keyword arguments, passed directly to method.
  
      Returns
      -------
      results : dict
          Keys are graph indices, values are output of method for that graph.
  
      Raises
      ------
      ValueError
          If name is not in networkx.connected, or if no such method exists.
  
      """
      warnings.warn("To be removed in 0.8. Use GraphCollection.analyze instead.",
                    DeprecationWarning)
  
      return G.analyze(['connected', method_name], **kwargs)