Documentation

Subgraphs

Subgraphs are embedded and referenced local grpahs.

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:

  1. Macro: Looks and works like any other tool node.
  2. Handler: A delegate of sort. Used as node inputs to be passed around. Do not directly take inputs and generate outputs.
  3. Primitive/Subgraph proper: Same as a Handler but stored directly as input primitive
  4. 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.

See Also