~/bend-docscommunity

relation_graph.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.7/relation_graph.bend as Relation_graph

3 imports
import Base
import entity_key.bend as K
import relation_types.bend as T

Definitions

def contains source · line 12 · raw

@xs:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @+id:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Bool

def removed_id source · line 16 · raw

@remove:Bool -> @id:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @rest:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

def remove_id source · line 20 · raw

@xs:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @+id:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

def chosen_target source · line 24 · raw

@found:Bool -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @next:(@_:Unit -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>) -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

def chosen_inverse source · line 35 · raw

@found:Bool -> @sources:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @next:(@_:Unit -> List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>) -> List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

def appended_source source · line 80 · raw

@present:Bool -> @sources:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

def validation source · line 107 · raw

@sourceLive:Bool -> @targetLive:Bool -> @self:Bool -> @cyclic:Bool -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @name:String -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Error>

def already source · line 114 · raw

@previous:Maybe<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Bool

Templates

template key source · line 6 · raw

@-S:Data -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> U32

Experimental maintained inverse implementation. Does not call graph-spec.

template name source · line 9 · raw

@-S:Data -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> String

template target_edges source · line 28 · raw

@-S:Data -> @edges:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

template target source · line 32 · raw

@-S:Data -> @graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Maybe<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

template inverse_entries source · line 39 · raw

@-S:Data -> @entries:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

template inverse source · line 43 · raw

@-S:Data -> @graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key>

template edge_removed source · line 46 · raw

@-S:Data -> @remove:Bool -> @edge:0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S> -> @rest:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>>

template remove_edge_fields source · line 50 · raw

@-S:Data -> @edge:0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @next:(@_:Unit -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>>) -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>>

template remove_edge_keep source · line 53 · raw

@-S:Data -> @edge:0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @acc:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>>

template remove_edge_acc source · line 56 · raw

@-S:Data -> @edges:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @acc:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>>

template remove_edge source · line 60 · raw

@-S:Data -> @edges:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>> -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>>

template nonempty_inverse source · line 62 · raw

@-S:Data -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @sources:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @rest:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>

template inverse_remove_one source · line 66 · raw

@-S:Data -> @matched:Bool -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @sources:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @rest:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>

template inverse_remove_acc source · line 70 · raw

@-S:Data -> @entries:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @acc:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>

template inverse_remove source · line 74 · raw

@-S:Data -> @entries:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>

template remove_previous source · line 76 · raw

@-S:Data -> @previous:Maybe<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @entries:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>

template inverse_add_found source · line 84 · raw

@-S:Data -> @found:Bool -> @other:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @id:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+sources:List<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @rest:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> @next:(@_:Unit -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>) -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>

template inverse_add source · line 88 · raw

@-S:Data -> @entries:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>>

template unrelate source · line 92 · raw

@-S:Data -> @graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> 0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S>

template next_cycle source · line 95 · raw

@-S:Data -> @current:Maybe<&2, 0x7e321819d0ff210531780719c7674cef/entity_key.Key> -> @next:(@_:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Bool) -> Bool

template cycle_loop source · line 99 · raw

@-S:Data -> @fuel:Nat -> @+graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+current:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Bool

template cycle source · line 103 · raw

@-S:Data -> @+graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> @descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> Bool

template updated source · line 118 · raw

@-S:Data -> @same:Bool -> @+edges:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Edge<S>> -> @inverses:List<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Inverse<S>> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> 0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S>

template checked source · line 122 · raw

@-S:Data -> @error:Maybe<&2, 0x7e321819d0ff210531780719c7674cef/relation_types.Error> -> @graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> 0x7e321819d0ff210531780719c7674cef/relation_types.CoreResult<S>

template relate source · line 126 · raw

@-S:Data -> @+graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> @+descriptor:0x7e321819d0ff210531780719c7674cef/relation_types.Descriptor<S> -> @+source:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @+target:0x7e321819d0ff210531780719c7674cef/entity_key.Key -> @sourceLive:Bool -> @targetLive:Bool -> 0x7e321819d0ff210531780719c7674cef/relation_types.CoreResult<S>

template project source · line 128 · raw

@-S:Data -> @graph:0x7e321819d0ff210531780719c7674cef/relation_types.Graph<S> -> 0x7e321819d0ff210531780719c7674cef/relation_types.SpecGraph<S>