@open_file(1, mode='wb')
def write_graphml(G, path, encoding='utf-8', prettyprint=True, infer_numeric_types=False):
 writer = GraphMLWriter(encoding=encoding, prettyprint=prettyprint, infer_numeric_types=infer_numeric_types)
 writer.add_graph_element(G)
 writer.dump(path)

@ open_file ( 1 , mode = 'wb' ) def write_graphml ( G , path , encoding = 'utf-8' , prettyprint = True , infer_numeric_types = False ) : writer = GraphMLWriter ( encoding = encoding , prettyprint = prettyprint , infer_numeric_types = infer_numeric_types ) writer . add_graph_element ( G ) writer . dump ( path )
write g in graphml xml format to path parameters g : graph a networkx graph infer_numeric_types : boolean determine if numeric types should be generalized despite different python values .