def write_weighted_edgelist(G, path, comments='#', delimiter=' ', encoding='utf-8'):
 write_edgelist(G, path, comments=comments, delimiter=delimiter, data=('weight',), encoding=encoding)

def write_weighted_edgelist ( G , path , comments = '#' , delimiter = ' ' , encoding = 'utf-8' ) : write_edgelist ( G , path , comments = comments , delimiter = delimiter , data = ( 'weight' , ) , encoding = encoding )
write graph g as a list of edges with numeric weights .