Difference between revisions of "Draw arrows"
Line 54: | Line 54: | ||
==See Also== | ==See Also== | ||
* [[Draw arrows between modules]] | * [[Draw arrows between modules]] | ||
− | * [[ | + | * [[Tutorial: Decision trees#Drawing_arrows_between_variables|Tutorial: Drawing arrows between variables]] |
* [[Tutorial: Create a model#Drawing_arrows_between_nodes|Tutorial: Drawing arrows between nodes]] | * [[Tutorial: Create a model#Drawing_arrows_between_nodes|Tutorial: Drawing arrows between nodes]] | ||
* [[GetArrowsOnDiagram]] | * [[GetArrowsOnDiagram]] |
Revision as of 20:20, 28 April 2016
Use the arrow tool to draw or remove arrows (influences) between variable nodes. Drawing an arrow from variable or function A
to B
puts A
in the list of inputs of B
. This makes it conveniently available to select from the inputs menu when creating or editing the definition of B
(see Creating and Editing Definitions).
Draw an arrow
To draw an arrow, first click the arrow icon in the toolbar to select the arrow tool. In arrow mode, the cursor changes to this arrow icon when over a diagram window.
- Drag from the origin node (which highlights) to the destination node (which also highlights).
- Release the mouse button, and it draws the arrow.
To speed up drawing arrows from multiple nodes to a single destination, select all the origin nodes. Then drag from any origin node to the destination node. When you release the mouse, it draws arrows from all the origin nodes.
Remove an arrow
- Click the arrow to select it, then press the Backspace or Delete key, or
- Just redraw the arrow from the origin node to the destination node. If the origin variable is used in the definition of the destination, it asks if you really want to remove it.
Influence cycle or loop
An influence cycle or loop occurs when a variable A depends on itself directly, where A → A, or indirectly so that the arrows form a directed circular path, e.g., A → B → C → A.
If you try to draw arrows that would make a cycle, it warns and prevents you. The exception is if at least one of the variables in the cycle is defined with the Dynamic function, and contains a time- lagged dependence on another variable in the cycle, shown as a gray arrow (see Dynamic Simulation), or a variable defined by Iterate which may depend on itself.
The meaning of influence arrows
When there are arrows between variables in different modules, they are reflected by arrows to and from the module nodes.
Arrow from variable node to variable node
Arrow from variable node to module node
Arrow from module node to variable node
Double-headed arrow between module nodes
Small arrow-head on left (right) shows menu with remote inputs (outputs) (
Press on the arrowhead to the left (right) of node to see a menu listing all local and remote inputs (outputs). You can select an object from these menus to jump to see that object node in its parent diagram. For more go to Seeing remote inputs and outputs
See Also
- Draw arrows between modules
- Tutorial: Drawing arrows between variables
- Tutorial: Drawing arrows between nodes
- GetArrowsOnDiagram
- Model building by mouse
- Creating and Editing Definitions
Enable comment auto-refresher