subdivide_endpoint_by_crossing#

subdivide_endpoint_by_crossing(k: PlanarDiagram, endpoint, crossing_position, **attr) str#

Subdivides an endpoint by introducing a new node. The endpoint is at position 0 of the new node

Args:

k (PlanarDiagram): The planar diagram. endpoint (Endpoint): The endpoint where the subdivision occurs. attr (dict): Additional attributes for the new node.

Returns:

str: The name of the newly created node.