crossing_to_vertex#
- crossing_to_vertex(k: PlanarDiagram, crossing, inplace=False)#
Converts a crossing in a planar diagram to a vertex, by projecting it to a vertex.
- Args:
k (PlanarDiagram): The planar diagram containing the crossing to be transformed. crossing: The crossing that will be converted into a vertex. inplace (bool, optional): If True, modifies the PlanarDiagram in place; otherwise,
creates and returns a copy with the transformation applied.
- Returns:
PlanarDiagram: The modified PlanarDiagram with the specified crossing converted into a vertex.