code: def get_connected_components(self):
      return connected_components(self.get_sparse_graph(), True)[1]
  
file_path: scattertext/scattertext/graphs/SimpleDiGraph.py
imports: import numpy
  import pandas
  from scipy.sparse import csr_matrix
  from scipy.sparse.csgraph._traversal import connected_components
  from scattertext.graphs.ComponentDiGraph import ComponentDiGraph
label_desc: Use image node_id 4 for calling the SimpleDiGraph obj's underlying member method code with example usage: obj.get_connected_components() and returns: connected_components