edge weights with bounded integers 414643