insert_endpoint#
- insert_endpoint(k: PlanarDiagram, target_endpoint, adjacent_endpoint, **attr) None #
Insert an endpoint in place and shift the other endpoints counter-clockwise. Args:
k (PlanarDiagram): The planar diagram where the endpoint is being inserted. target_endpoint (tuple): A tuple representing the target endpoint as (node, position). adjacent_endpoint (tuple): A tuple representing the adjacent endpoint as (node, position).
- Returns:
None
TODO: rewrite this entire function: subdivide edges around point, insert none at the end and then permute the edges using the permutation furnction this way no new logic needs to bu built (attributes…). it will all be much cleaner.