code: def get_graph(self):
      selected_components = (
          self.component_graph.get_components_at_least_size(0)
      )
      all_svg = ""
      for i, component in enumerate(selected_components):
          dot_str = self.component_graph.get_dot(component)
          raw_svg = self.get_svg(dot_str)
          lines = raw_svg.split("\n")
          lines[9] = lines[9].replace("graph0", "graph%s" % (component))
          lines[6] = (
              '<svg easypz width="{width}pt" height="{height}pt" id="svg{component}"'
              + ' style="display: none" class="dotgraph"'
          ).format(
              width=self.width, height=self.height, component=component
          )
          for line in lines[6:]:
              if line.startswith("<!--") or line.endswith("-->"):
                  continue
              all_svg += line + "\n"
      return all_svg
  
file_path: scattertext/scattertext/graphs/ComponentDiGraphHTMLRenderer.py
imports: import json
label_desc: Use image node_id 2 for calling the ComponentDiGraphHTMLRenderer obj's underlying member method code with example usage: obj.get_graph() and returns: all_svg