While yEd does not offer a mode where edges (as "lines" are formally called) are automatically re-routed when nodes are moved, yEd does offer several layout algorithms for routing edges (see "Layout" -> "Edge Routing"). I suggest giving the "Orthogonal/Polyline" algorithm a try.