replug_endpoint#
- replug_endpoint(k, source_endpoint, destination_endpoint)#
Unplug an endpoint and overwrite the destination slot.
Does not insert at the destination (overwrites). Operates in place.
- Parameters:
k (PlanarDiagram | OrientedPlanarDiagram) – Diagram to modify.
source_endpoint (Endpoint | tuple) – Endpoint or (node, position) to unplug.
destination_endpoint (Endpoint | tuple) – Endpoint or (node, position) to overwrite.
- Raises:
ValueError – If unplugging from a crossing (would create 3-valent crossing).
- Return type:
None