number_of_unknots#
- number_of_unknots(k: PlanarDiagram)#
Return the number of unknots (degree-1 vertices with a self-loop).
- Parameters:
k (PlanarDiagram) – The input planar diagram.
- Returns:
The count of unknots.
- Return type:
int
Return the number of unknots (degree-1 vertices with a self-loop).
k (PlanarDiagram) – The input planar diagram.
The count of unknots.
int