Changes greatest edge weight from double to int.