Subgraph.link

Links two edge slots within this subgraph.

The updated out-edge's color will be automatically set to match slot's'.

  1. err_t link(NodeType* node, InEdge* slot)
    struct Subgraph
    @nogc nothrow
    link
    (
    string member
    NodeType
    )
    (
    NodeType* node
    ,)
    if (
    is(typeof(mixin (`node.` ~ member)) == OutEdge)
    )
    in (NodeStorage.ofNode(node.asNode) in this.nursery && NodeStorage.ofNode(slot.owner) in this.nursery, "tried to update a node from another subgraph")
  2. err_t link(NodeType* node, InEdge slot)
  3. err_t link(NodeType* node, size_t index, InEdge* slot)
  4. err_t link(NodeType* node, size_t index, InEdge slot)

Parameters

node NodeType*

Node being updated.

slot InEdge*

Target slot.