Graphs and Members
A document holds one or more graphs, listed in the document outline on the left: the document's own graph, Document, and the others under it. Each graph has a kind, which decides how it is drawn, which nodes it offers and what running it means. The kind is named above the canvas with the family it is filed under - Flows (Dataflow), Routine (Procedural) - where dataflow means values flow along wires and a node runs when its result is needed, procedural means steps run one after another, declarative means the graph describes something rather than computing it step by step, definition describes a type rather than running, and special marks the kinds that are still experimental.
The kinds
| Kind | Family | What it is |
|---|---|---|
| Flows | dataflow | A free-form canvas. Values travel along wires, and a run executes the nodes marked active and everything they depend on. It is the everyday surface for exploring and assembling. |
| Function | dataflow | A graph other graphs call like a node: one Input node, one Output node, and every node in between runs. It can be drawn right to left. |
| Events | procedural | Callbacks an application framework calls - Start, an update on every frame, and the rest of what the framework offers. |
| Routine | procedural | Steps in order: one Begin, statements along execution wires, and Return. Loops and branches live here. |
| Components | declarative | A class of objects laid out as a tree: the nodes you name are its fields, and it is made with its constructor or its static Create. A form is a Components graph. |
| Type | definition | A data structure of your own: data members, and Function or Routine graphs as its methods. It is not run on its own; other graphs make instances of it. |
| Freeform Flows | special (experimental) | A Flows graph drawn as circles and arrows. It runs as a Flows graph does. |
| Freeform Function | special (experimental) | A Function drawn as circles and arrows, with one circle for its inputs and one for its outputs. It is called as any Function is. |
Adding a graph
Press Ctrl+T, or Add graph… in the document outline. The Add a graph card offers the kinds under Dataflow, Procedural, Declarative, Definition and Special (Experimental), each with a sentence on what it is for. Choose one, type a Name and press Add graph; the graph is added to the document and opens. A graph added without a name is named after its kind - Function, then Function 2 - and a name may hold spaces, punctuation and any letters: it is for reading.

In the outline, click a graph to show it, or right-click it for Rename…, Set as entry, Duplicate and Delete…. Duplicate adds a copy of the graph under it, with its nodes, comments and groups. F2 asks for a new name for the graph on screen. The outline also lists each graph's data members and local variables under it: click one to bring its graph forward with the member's node selected.
The entry graph and what Run runs
The entry graph is where a run of the document starts, and the outline marks it entry. A new document's entry graph is of the kind chosen on the New document card and named after it, in the editor's language - Flows, or Routine. Right-click another graph and choose Set as entry to move the mark - to a Flows, Function, Events, Routine or Freeform graph; a Type is never an entry.
Run runs the graph in front, and the entry graph when the Document graph itself is in front. So one part of a document is tried on its own by bringing it forward and pressing F5.
Functions
A Function is a graph with a signature, called from other graphs the way a node is.
Ctrl+T, choose Function, name itTwiceand press Add graph. Its canvas holds an Input and an Output node.- With nothing selected, the Properties panel lists the Function's Inputs and Outputs. Under Inputs press Add entry: an entry called Input, a Number, appears. Type
Valueinto its Name and pressEnter. Under Outputs do the same, naming itResult. An entry starts as a Number; for another type, click its Type and choose from the list - the common types first, each with its spelling in C# under it (Number readsdouble, Textstring), then the types the document's nodes use. - Place an Add - the one under Number Routines in the tray - and wire the Input node's Value into both of its inputs, then its output into Result on the Output node.
- Go back to a Flows graph, press
Ctrl+Spaceand typeTwice: your Function is offered under the heading named after your document, Document Modules (Hello). Place it, and it takes a Value and gives a Result like any other node.
Renaming, retyping or reordering an entry keeps its wires, and every node calling the Function follows the change. A call shows a single output by its own name - Result.
With nothing selected on a Function, Draw right to left in its Properties draws the graph as its mirror image: the values at the right, the Output node at the far left, each node's inputs on its right. Only the drawing changes - the nodes keep their places, Tidy layout still works left to right, and the switch is one step Ctrl+Z takes back.
Routines
A Routine runs one statement after another, following the execution wires from Begin. Its statements are nodes with execution pins - Print Line, Branch, the loops - drawn as arrows, and the nodes without them, such as Add, run when a statement needs their value.
A loop's body hangs off its Next pin and runs once a pass; what comes after the loop hangs off Completed. This Routine prints 0, 1 and 2:
- Create a document whose entry is a Routine - or
Ctrl+Tand Routine - and it starts with Begin and Return. - Press
Ctrl+Spaceand typeFor: the first offer is the loop, under Procedural Programming. Place it. It counts from Start to End, both included, by Step -0,10and1unless you change them. Set End to2. - Place a Print Line. Wire Begin's Next into For's Previous, For's Next into Print Line's Previous, and For's Current Value into Print Line's Message.
- Wire For's Completed into Return's Previous, and press
F5.

Return ends the Routine wherever it is reached: wired after Print Line inside the body instead, it would print 0 and stop. A Routine can have several Returns. A node that waits for its result wears a blue hourglass: Waits for its result.
Local variables
A Routine can keep values of its own while it runs. With nothing selected, press Define local variable… in the Properties panel (or find Define Local Variable in the tray), name it and choose its type. The tray then offers a Get and a Set node for it. Each call of the Routine starts the variable at its starting value, or at its type's default; a list or a dictionary with no starting value starts empty.
Steps, Actions and Canvas
A Routine's tab has a Steps | Actions | Canvas switch at the top right of the canvas, three views of the same graph:
- Steps draws it as a flowchart, read from the top down: a pill reading Begin over the Routine's name, a card for each statement with its title and kind, a fork side by side for a Branch, a frame for a loop, and a pill reading Return. No card shows a value; select one and its Properties show Connections, a list for each input of the outputs that can feed it. A + between cards puts a statement there, and a card dragged onto a + moves.
- Actions shows it as rows of actions, as Methodox Action Maker does, with the document's data members above them: double-click New action to add a row, or a filled row to change it. See Methodox Action Maker.
- Canvas is the graph as nodes and wires.
An edit in any of them is one step of the undo history, and shows in the others.
Events
An Events graph is a set of callbacks on an application framework: you place the framework's events - Start, and the others it offers - and hang statements off them, and the framework decides when each runs. Which framework it is, is the graph's Procedural base type, shown in the Properties panel with nothing selected - BasicApplication for a new one. Click it to choose another, such as one for a window with buttons or a game with a frame loop; the tray offers only the callbacks the base type declares. An Events graph can hold Functions and Routines of its own, for its callbacks to call: with nothing selected, press Define behavior member… in its Properties. A Custom Event is a function of its graph: it is called by a node of its own and can be handed to anything that takes a function. The examples in the GUI and Glaze categories are good ones to open - see Examples.
Components and forms
A Components graph is a class of objects laid out as a tree. Every node you give a Name in Properties is a field of the object; other graphs make one with Make and the graph's name, and an Input and an Output node, placed from the tray, give it a constructor that takes values and a static Create that answers values. A form - a window of GUI Components' controls - is a Components graph, and its code can be an Events graph, its Code-behind: the form's controls are then members of the Events graph, and nodes such as Set Text take the control itself. In the editor a form runs in the Active Preview. See Desktop GUI Applications.
Freeform Flows and Freeform Function
The two Freeform kinds draw a dataflow graph as circles and arrows, and run as Flows and Function do. Every node is a circle of one size in its category's colour, showing only the label you give it (double-click it; an underscore starts a subscript). Drag from a circle's rim to another circle to draw an arrow - a list at the pointer asks which input when there are several - and drag an arrow to bend it; double-click its handle to straighten it. Special (Experimental) › Three Rooms is an example. Graphs and members in Divooka Compute says more, and it is the same in Explore.
Types
A Type defines a data structure: its data members, and Function or Routine graphs inside it as its methods. Other graphs make one with its Make node - Make Point for a Type called Point - and read and set its members. With nothing selected on its canvas, Type kind in the Properties panel chooses between a Class, shared by everything that holds it; a Struct, a value that is copied; and a Record, which is built once from its members and not changed afterwards. Renaming a Type renames everything typed by it, as one step.
Data members and starting values
A data member is a value that belongs to a type and lasts between calls - a running total, a score, a setting. The document itself is a type, so its own graph, Document, can hold data members for every graph in it to share, and so can a Type.
Click Document in the outline to show the document's own graph. With nothing selected, press Define data member… in the Properties panel. (It is also in the tray, as Define Data Member.)
The Define a data member card asks for a Name and a Type. The list starts with Number, Integer, Text and Truth, each with its C# spelling under it, then a list, an array and a dictionary of each - List of Number, Number Array, Dictionary of Text to Number and so on - then the rest of Divooka's common types and the types the document's nodes give or take. Name it
Total, choose Number and press Define. A node for the member is placed, and the tray now offers Get Total and Set Total in every graph of the document.
Select the member's node. Its Properties list its Name, its Type and its Starting value. Type
2into Starting value and pressEnter: the status bar reads Set starting value, and the node shows it.

Every run starts with Total at 2; a Routine that prints Get Total prints 2. The cross beside the box resets it to the type's default. A list or an array takes a starting value too, element by element, and a struct part by part - a Point starting at X 1 and Y 2; a list or a dictionary given none starts empty. A Flows graph takes no data members of its own; define them on the document's graph or on a Type.
To rename a member, double-click its node's header, or select it and press F2: every node that reads or sets it follows.