code: def write_graphml(graph, path, encoding='utf-8', prettyprint=True):
      
      graph = _strip_list_attributes(graph)
  
      writer = TethneGraphMLWriter(encoding=encoding, prettyprint=prettyprint)
      writer.add_graph_element(graph)
      writer.dump(open(path, 'wb'))
docs: Writes graph to `GraphML <http://graphml.graphdrawing.org/>`_.
  
      Uses the NetworkX method
      `write_graphml <http://networkx.lanl.gov/reference/generated/networkx.readwrite.graphml.write_graphml.html>`_.
  
      Parameters
      ----------
      graph : networkx.Graph
          The Graph to be exported to GraphML.
      output_path : str
          Full path, including filename (without suffix).
          e.g. using "./graphFolder/graphFile" will result in a GraphML file at
          ./graphFolder/graphFile.graphml.