edges#

edges(k: PlanarDiagram, **endpoint_attributes) list#

Return a list of ordered edges/strands of a knotted graph or a knot, or link. An edge is a list of endpoints that starts at a vertex (not a crossing) and ends at a vertex. In case there are closed components, the edges represent the closed component starting and ending at a crossing.

An edge is represented as an ordered list of endpoints, where the first two pairs are twin endpoints, and the third element is an adjacent endpoint over a crossing.

Args:

k (PlanarDiagram): The planar diagram. endpoint_attributes (dict): A dictionary of attribute filters for endpoints.

Returns:

list: A list of ordered strands that represent the edges of the diagram.