Major
Nice to have
Bugfix
Major
Enhancement
The existing ConfiguredEdgeBuilder assumes that there is a dedicated object for an edge in the model (which in turn has source and target references). For the simpler case of wanting to map a reference mapping (object A` references objects `B and C` in its reference `r) as edges A-r->B and A-r->C, there is no adequate configurational option.
Analysis
De facto, this functionality already exists: One can configure a ConfiguredReferenceBinding in the context of a node builder with <edges> and specify a function there that computes the target nodes.
Application
New: Symmetric builder that builds reference edges between nodes, producing both outgoing edges and incoming edges of a partially represented graph:
#!xml <referenceEdgeBuilder predicate="model -> node -> $node.instanceOf(`tl.graph.demo:AtomicNode`)" predecessors="model -> node -> $node.referers(`tl.graph.demo:AtomicNode#other`)" successors="model -> node -> $node.get(`tl.graph.demo:AtomicNode#other`)" />
Test
- In tl-graph-demo, the to-one reference other is now also represented as an edge. For this reference a referenceEdgeBuilder is used.