I'm working on a software where a user can make a diagram with boxes and connect these boxes with lines. When A user moves one of the boxes the connector line shall follow and not collide with any other boxes. I need some sort of path finding. I would like to only allow vertical/horizontal lines. Which path finding algorithm would be preferred to use?
Thanks