remove_arc#

remove_arc(k, arc_for_removing, inplace=True)#

Remove a single arc.

Parameters:
  • k (PlanarDiagram) – Diagram to modify.

  • arc_for_removing (frozenset) – The arc to remove (conventionally a frozenset of two endpoints).

  • inplace (bool) – If False, operate on a copy.

Returns:

The mutated diagram (or the new copy if inplace=False).

Return type:

PlanarDiagram