merge edges with weight>=0