Skip to content

edge

Model definition for Edge.

CLASS DESCRIPTION
Edge

Edge specifies a polyline connection between two graph elements: a source and a target.

Waypoint

A waypoint represents a point on an edge.

Classes

Edge dataclass

Edge(*, id: Optional[str] = None, waypoint: list[Waypoint] = list())

Bases: DiagramElement

Edge specifies a polyline connection between two graph elements: a source and a target.

ATTRIBUTE DESCRIPTION
waypoint

A list of two or more points that specifies the connected line segments of the edge.

TYPE: list[Waypoint]

Attributes

waypoint class-attribute instance-attribute
waypoint: list[Waypoint] = field(
    default_factory=list,
    metadata={
        "type": "Element",
        "namespace": "http://www.omg.org/spec/DD/20100524/DI",
        "min_occurs": 2,
    },
)

A list of two or more points that specifies the connected line segments of the edge.

Waypoint dataclass

Waypoint(*, x: float, y: float)

Bases: Point

A waypoint represents a point on an edge.

Functions