replug_endpoint#
- replug_endpoint(k: PlanarDiagram, source_endpoint, destination_endpoint)#
Unplugs the endpoint endpoint_source and plugs it into endpoint_destination. Takes care of removing the source endpoint (shifting bigger indices). Does not insert the destination endpoint, but overwrites it.
- Parameters:
k – planar diagram
source_endpoint
destination_endpoint
- Returns: