bridges#

bridges(k: PlanarDiagram) set#

Return the set of bridges in the planar diagram. A bridge is an arc whose removal disconnects the diagram into two disjoint components.

Args:

k (PlanarDiagram): The planar diagram.

Returns:

set: A set of bridges represented as arcs.