components_link#
Link components represent distinct closed loops in a link diagram.
A trefoil knot has one component, while the Hopf link has two.
Functions
Return sets of endpoints belonging to the same link component. |
|
Return the number of link components in a planar diagram. |
- number_of_link_components(k)#
Return the number of link components in a planar diagram.
For example, a trefoil knot has 1 component, while the Hopf link has 2 components.
- Parameters:
k (PlanarDiagram)
- Return type:
int
- link_components_endpoints(k)#
Return sets of endpoints belonging to the same link component.
Endpoints are grouped into the same component if they are connected through arcs or at nodes in the diagram.
- Parameters:
k (PlanarDiagram)
- Return type:
list[set]