Derived Nodes

Derived nodes calculate their internal value from other values in the graph.

Any struct which derives Value can be used as a Derived Node. In order to create a derived node, however, we'll need to define:

  • An Operation: How to transform other nodes and values in to the derived node's internal value.
  • Dependencies: The required values of the operation. Implicitly, dependencies specify edges in the computation graph.

Let's look at these in more detail.