edges#

edges(k, **endpoint_attributes)#

Return ordered strands (“edges”) of the diagram.

Each edge is a list of endpoints starting at a vertex (or forming a closed component) and proceeding through crossings as per path_from_endpoint. Endpoints can be filtered by attributes via keyword arguments (e.g., color=”red”).

Parameters:
  • k (PlanarDiagram) – Diagram.

  • **endpoint_attributes – Attribute filters that all endpoints in a strand must satisfy.

Returns:

List of strands, each a list of Endpoint.

Return type:

list[list[Endpoint]]