@open_file(1, mode='wb')
def write_gml(G, path, stringizer=None):
 for line in generate_gml(G, stringizer):
  path.write((line + '\n').encode('ascii'))

@ open_file ( 1 , mode = 'wb' ) def write_gml ( G , path , stringizer = None ) : for line in generate_gml ( G , stringizer ) : path . write ( ( line + '\n' ) . encode ( 'ascii' ) )
write a graph g in gml format to the file or file handle path .