subdivide_endpoint#
- subdivide_endpoint(k: PlanarDiagram, endpoint, **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.