swap_endpoints#
- swap_endpoints(k, ep1, ep2)#
Swap two endpoints in place (no insertion/removal).
- Parameters:
k (PlanarDiagram | OrientedPlanarDiagram) – Diagram to modify.
ep1 (Endpoint | tuple) – Endpoint or (node, position).
ep2 (Endpoint | tuple) – Endpoint or (node, position).
- Return type:
None