is_knot#

is_knot(k)#

Return True if all nodes are crossings and the diagram has a single link component.

Parameters:

k (PlanarDiagram)

Return type:

bool