class_docstr: Network visualization framework entry point.
  
  Usage:
  
  .. code-block:: python
  
    NetworkVisualizer(network).render()
  
  You may optionally specify a specific renderers. e.g.:
  
  .. code-block:: python
  
    viz = NetworkVisualizer(network)
    viz.render(renderer=GraphVizRenderer)
    viz.render(renderer=NetworkXRenderer)
  
  :param network: (:class:`nupic.engine.Network`)
docstr: Exports a network as a networkx MultiDiGraph intermediate representation
  suitable for visualization.
  
  :return: networkx MultiDiGraph
docstr_tok: ["Exports","a","network","as","a","networkx","MultiDiGraph","intermediate","representation","suitable","for","visualization",".",":","return",":","networkx","MultiDiGraph"]
code: def export(self):
      """
      Exports a network as a networkx MultiDiGraph intermediate representation
      suitable for visualization.
  
      :return: networkx MultiDiGraph
      """
      graph = nx.MultiDiGraph()
  
      # Add regions to graph as nodes, annotated by name
      regions = self.network.getRegions()
  
      for idx in xrange(regions.getCount()):
          regionPair = regions.getByIndex(idx)
          regionName = regionPair[0]
          graph.add_node(regionName, label=regionName)
  
      # Add links between regions to graph as edges, annotate by input-output
      # name pairs
      for linkName, link in self.network.getLinks():
          graph.add_edge(
              link.getSrcRegionName(),
              link.getDestRegionName(),
              src=link.getSrcOutputName(),
              dest=link.getDestInputName(),
          )
  
      return graph
  
imports: import networkx
  from nupic.frameworks.viz import DotRenderer
label_desc: Use image node_id 2 for calling the NetworkVisualizer obj's underlying member method code with example usage: obj.export() and returns: graph