orientation#

Algorithms with orientation.

Functions

all_orientations(k)

Return all possible orientations of a given unoriented PlanarDiagram.

orient(k)

Orient the given unoriented planar. The returned orientation is random. Parameters: k (PlanarDiagram) The planar diagram to be oriented.

orient_edges(k, edges)

Orient the diagram so that edges are positively ordered, i.e. the orientations follows the endpoints edge[0], edge[1], .

unorient(k)