def read_weighted_edgelist(path, comments='#', delimiter=None, create_using=None, nodetype=None, encoding='utf-8'):
 return read_edgelist(path, comments=comments, delimiter=delimiter, create_using=create_using, nodetype=nodetype, data=(('weight', float),), encoding=encoding)

def read_weighted_edgelist ( path , comments = '#' , delimiter = None , create_using = None , nodetype = None , encoding = 'utf-8' ) : return read_edgelist ( path , comments = comments , delimiter = delimiter , create_using = create_using , nodetype = nodetype , data = ( ( 'weight' , float ) , ) , encoding = encoding )
read a graph as list of edges with numeric weights .