Skip to content

funtracks.user_actions.user_add_edge

UserAddEdge

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

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