add implementation of boundary value

limit the edges to be within (0, 201)