There are two ways of adding a node. Nodes are always added with a Transition which connects two Nodes together. You can add a Node directly under another Node, by clicking on the plus icon on the existing node. The new node will be added directly under the existing node or placed in parallel to another existing node. The new node will also automatically receive a new unique name, for example, New Input 2 or New Value 2.
Adding nodes below a node or create a new branch
Click on the plus on a node to add a new node underneath. If there is already a node right underneath the selected node, a new branch or strand/thread will be added.
Each node will be uniquely named to make it easier to reference and update or rename nodes.
💡 Authors should always name their nodes. Good node names or titles are key to easier document generation, referencing values and when using case databases.
You can also add a Node directly on an existing connection between nodes on the transition between them. In this case, click on the Transition and open the context menu which will pop up.
Adding nodes directly below or above a node (useful at junctions)
Authors sometimes need to insert a node directly above or below a selected node. This can be difficult whenever there's a junction, i.e. two nodes (branch#1 and branch #2) flowing out of Node#1. In some cases authors might want to include Node #2 right underneath Node#1 but keep the junction after Node#2.
With a keyboard shortcut, authors can now insert such nodes without compromising the structure of their decision tree.
❗ Please note that you might need to update the logic in your graph accordingly as conditions will be carried over if they can still be met, e.g. if the transition at the junction refers to Node#1 even though you added Node#2 directly above branch#1 and branch#2.
With the "add node" dropdown expanded, holding command ⌘ Cmd (or on a PC, control ) will allow a node to be insert directly below the selected node. Holding Option (or on a PC, alt), will allow them to be inserted directly above.
Further useful keyboard shortcuts
With the "add node" dropdown expanded, holding command ⌘ key (or on a PC, control Ctrl ) will allow a node to be insert directly below the selected node. Holding Option ⌥ (or on a PC, alt Alt ), will allow them to be inserted directly above.
Nodes - only underneath another node and not on a transition - can also be added easily with the following keyboard shortcuts:
- Input node - I
- Action node - A
- Result node - R
- Insert directly above - holding command ⌘ key (or on a PC, control Ctrl )
- Insert directly below - holding Option ⌥ (or on a PC, alt Alt )
Select a node and use your keyboard to add a node directly below the selected and highlighted node. A selected nodes is indicated by the blue frame around the node.