link_components_endpoints#
- link_components_endpoints(k: PlanarDiagram)#
Return a list of sets of endpoints belonging to the same link component.
This function takes a planar diagram representing a knot or link and determines the groups of endpoints that belong to the same connected link components. Each endpoint is grouped based on equivalence relations derived from the arcs and node connections in the planar diagram.
- Args:
- k (PlanarDiagram): The planar diagram object that contains arcs, nodes, and endpoints associated with a
knot or link structure.
- Returns:
- list[set]: A list of sets where each set contains unordered endpoints that are determined to belong to the
same link component.