code: def __init__(
      self,
      orig_edge_df,
      id_node_df,
      node_df,
      edge_df,
      components,
      graph_params=None,
      node_params=None,
  ):
      self.edge_df = edge_df
      self.orig_edge_df = orig_edge_df
      self.id_node_df = id_node_df
      self.node_df = node_df
      self.components = components
      self.graph_params = DEFAULT_GRAPH_PARAMS
      if graph_params is not None:
          for k, v in graph_params.items():
              self.graph_params[k] = v
      self.node_params = DEFAULT_NODE_PARAMS
      if node_params is not None:
          for k, v in node_params.items():
              self.node_params[k] = v
  
file_path: scattertext/scattertext/graphs/ComponentDiGraph.py
imports: import numpy
  import pandas
label_desc: Use image node_id 1 to create a new ComponentDiGraph object from inherited base classes: object with example: obj = ComponentDiGraph(orig_edge_df, id_node_df, node_df, edge_df, components, graph_params, node_params)