lock# lock(k, inplace=True)# Lock a planar diagram so it cannot be modified. Unlike freezing, a diagram cannot be unlocked. Used for knot tables, so the user cannot modify a knot in a precomputed knot table. Parameters: k (PlanarDiagram | OrientedPlanarDiagram) inplace (bool) Return type: PlanarDiagram