Skip to content

funtracks.user_actions.user_add_edge

UserAddEdge

UserAddEdge(
    tracks: SolutionTracks,
    edge: tuple[int, int],
    force: bool = False,
    _top_level: bool = True,
)

Bases: ActionGroup

Assumes that the endpoints already exist and have track ids.

Parameters:

Name Type Description Default
tracks SolutionTracks

the tracks to add the edge to

required
edge tuple[int, int]

The edge to add

required
force bool

Whether to force the action by removing any conflicting edges. Defaults to False.

False
_top_level bool

If True, add this action to the history and emit refresh. Set to False when used as a sub-action inside a compound action. Defaults to True.

True