def inverse
import bendvy-ecs-core@0.1.0.4/relation_graph.bend as RelationGraphimport Base
import entity_key.bend as K
import relation_types.bend as T
43def inverse(~S: Data,graph: T.Graph<S>,descriptor: T.Descriptor<S>,target: K.Key) -> List<&2,K.Key>:
44 match graph:
45 case T.Graph{_,entries}: inverse_entries(~S,entries,descriptor,target)