def graph_replace
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as RelationCommandsimport Base
import relation_types.bend as G
28def graph_replace(~S: Data,~C: Type,store: Store<S,C>,replacement: G.Graph<S>) -> Store<S,C>:
29 match store:
30 case Store{components,_}: Store{components,replacement}