docstr: ,
  Parameters
  ----------
  scatterplot_structure: ScatterplotStructure
  graph_renderer: GraphRenderer
  scatterplot_width: int
  scatterplot_height: int
  d3_url_struct: D3URLs
  protocol: str
      http or https
  template_file_name: file name to use as template
docstr_tok: [",","Parameters","--","--","--","--","--","scatterplot_structure",":","ScatterplotStructure","graph_renderer",":","GraphRenderer","scatterplot_width",":","int","scatterplot_height",":","int","d3_url_struct",":","D3URLs","protocol",":","str","http","or","https","template_file_name",":","file","name","to","use","as","template"]
code: def __init__(
      self,
      scatterplot_structure,
      graph_renderer,
      scatterplot_width=500,
      scatterplot_height=700,
      d3_url_struct=None,
      protocol="http",
      template_file_name=None,
  ):
      """,
      Parameters
      ----------
      scatterplot_structure: ScatterplotStructure
      graph_renderer: GraphRenderer
      scatterplot_width: int
      scatterplot_height: int
      d3_url_struct: D3URLs
      protocol: str
          http or https
      template_file_name: file name to use as template
      """
      self.graph_renderer = graph_renderer
      self.scatterplot_structure = scatterplot_structure
      self.d3_url_struct = d3_url_struct if d3_url_struct else D3URLs()
      ExternalJSUtilts.ensure_valid_protocol(protocol)
      self.protocol = protocol
  
      self.scatterplot_width = scatterplot_width
      self.scatterplot_height = scatterplot_height
  
      self.template_file_name = (
          GRAPH_VIZ_FILE_NAME
          if template_file_name is None
          else template_file_name
      )
  
file_path: scattertext/scattertext/graphs/GraphStructure.py
imports: import pkgutil
  from scattertext.graphs.ComponentDiGraphHTMLRenderer import GraphRenderer
  from scattertext.viz.BasicHTMLFromScatterplotStructure import D3URLs, ExternalJSUtilts, PackedDataUtils
label_desc: Use image node_id 1 to create a new GraphStructure object from inherited base classes: object with example: obj = GraphStructure(scatterplot_structure, graph_renderer, scatterplot_width, scatterplot_height, d3_url_struct, protocol, template_file_name)