Changes edge weights to doubles