bridge_join#

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