edges are made integer.