code: def make_component_digraph(self, graph_params, node_params):
      components = self.get_connected_components()
      return ComponentDiGraph(
          edge_df=self.edge_df.assign(
              Component=lambda df: components[df.source_id]
          ),
          orig_edge_df=self.orig_edge_df.assign(
              Component=components[self.edge_df.source_id]
          ),
          node_df=self.node_df.assign(
              Component=lambda df: components[df["index"]]
          ),
          id_node_df=self.id_node_df.assign(
              Component=lambda df: components[df.index]
          ),
          components=components,
          graph_params=graph_params,
          node_params=node_params,
      )
  
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 2 for calling the SimpleDiGraph obj's underlying member method code with example usage: obj.make_component_digraph(graph_params, node_params) and returns: ComponentDiGraph