is_knot#
- is_knot(k: PlanarDiagram) bool #
Determines whether the given planar diagram represents a knot.
A diagram is a knot if all its nodes are crossings.
- Args:
k (PlanarDiagram): The planar diagram.
- Returns:
bool: True if all nodes are crossings, False otherwise.