Select the edge, hover its endpoint handle, then drag it onto another node — the handle wins over the port it sits on. Driven here with real pointer events.