@open_file(1, mode='wb')
def write_gexf(G, path, encoding='utf-8', prettyprint=True, version='1.1draft'):
 writer = GEXFWriter(encoding=encoding, prettyprint=prettyprint, version=version)
 writer.add_graph(G)
 writer.write(path)

@ open_file ( 1 , mode = 'wb' ) def write_gexf ( G , path , encoding = 'utf-8' , prettyprint = True , version = '1.1draft' ) : writer = GEXFWriter ( encoding = encoding , prettyprint = prettyprint , version = version ) writer . add_graph ( G ) writer . write ( path )
write g in gexf format to path .