Subgraphs
Type: Technical Concept
Definition
Subgraph: Technical term. Any graph being used or referenced is a (sub)graph, but more technically graphs that are stored within a graph is a subgraph.
Comes in four forms:
- Macro: Looks and works like any other tool node.
- Handler: A delegate of sort. Used as node inputs to be passed around. Do not directly take inputs and generate outputs.
- Primitive/Subgraph proper: Same as a Handler but stored directly as input primitive
- Module behavior (member): Also known as functions.
All (sub) graphs may have any context (e.g. dataflow, procedural, etc), and they make sense depending on where they are used (in a conventional way).
Usage
Subgraphs enables composition, which is an important form in Divooka. It also enables modularization.
More advanced use including lambda calculus, callbacks, generators, etc.
Discussion
To those familiar with traditional programming languages, subgraphs are like annoymous functions.