def added

bendvy-ecs-core@0.1.0.4 · restore_graph_validation.bend:25

import bendvy-ecs-core@0.1.0.4/restore_graph_validation.bend as RestoreGraphValidation
import Base
import bendvy-ecs-core@0.1.0.4/entity_key.bend as Key
import bendvy-ecs-core@0.1.0.4/relation_types.bend as G
import bendvy-ecs-core@0.1.0.4/relation_graph.bend as Graph

25def added(~S:Data,graph:G.Graph<S>,descriptor:G.Descriptor<S>,source:Key.Key,target:Key.Key) -> G.Graph<S>:
26  match graph:
27    case G.Graph{edges,inverses}:Graph.updated(~S,False{},edges,inverses,descriptor,source,target)

Uses (5)

Used by (1)