join#

Join diagrams by a bridge or by introducing a crossing.

Functions

bridge_join(a, b, arcs)

Join two diagrams by inserting a length-1 bridge (a degree-3 vertex on each side, linked together).

crossing_join(a, b, arcs)

Join two diagrams by a cut crossing (twisted connected sum).

bridge_join(a, b, arcs)#

Join two diagrams by inserting a length-1 bridge (a degree-3 vertex on each side, linked together).

Parameters:
Returns:

A new diagram of the same type that is the bridged join of a and b.

Raises:

TypeError – If a and b are not of the same diagram type.

Return type:

PlanarDiagram | OrientedPlanarDiagram

crossing_join(a, b, arcs)#

Join two diagrams by a cut crossing (twisted connected sum).

Parameters:
Returns:

A new diagram with a new crossing that joins the two inputs along the chosen arcs.

Raises:

TypeError – If a and b are not of the same diagram type.

Return type:

PlanarDiagram | OrientedPlanarDiagram