link_components#
- link_components(k: PlanarDiagram) set #
Determine the distinct link components in a planar diagram.
Link components are individual, closed, connected parts of a link structure, such as in knot theory. This function identifies which parts of the diagram belong to the same connected component.
- Parameters:
k – An input planar diagram representing a link.
- Returns:
A set representing the link components.