Changed edge paramet from float to int