Nodes and roles
A node is an id, a display name, a role, and a position.
Create
Shift + left click empty canvas. The node appears immediately
as “New Node” / intermediate so you can see it, then Create Node
opens. Name is required. Cancel or dismiss deletes that node so you
do not leave unnamed junk. Confirm calls updateNodeInProdigy and marks
dirty. In a live session that is an upsert_node.
Ids are generated in WASM (node_{uuid} in the browser).
Edit
Select, then E. Same dialog, title Edit Node. Changing name or role updates the label and the fill (and SEM fill). Roles are mutually exclusive. Checkboxes (also canvas keys) are independent of role: Unobserved (U), Adjusted (A), Selection (S). A node can be an unobserved exposure or outcome.
Delete
X / Backspace / Delete on the primary selection. Connected
edges go with it. Live: delete_node.
Roles
| Role | Fill | Meaning |
|---|---|---|
| Intermediate | Blue | Default. Covariate, mediator, other. |
| Exposure | Green | A cause / treatment you want to study. |
| Outcome | Orange | An effect of interest. |
A node cannot be both exposure and outcome. DAGitty import that tries both is rejected.
Observed / unobserved is independent of role. Unobserved (latent)
nodes keep their role color, drawn paler with a dashed outline. In SEM
mode they become an ellipse instead of a rectangle. They cannot appear
in adjustment sets, and implied independencies that name them are not
listed (not testable). DAGitty latent / unobserved round-trips on
import and export.
Adjusted (A): already conditioned on. Fill goes pale / white. Identification treats these as must-include covariates.
Selection node (S): sampling / selection bias (DAGitty
selected). Drawn as a rectangle even in circle mode.
Roles matter for:
- Causal analytics — adjustment sets need ≥1 exposure and ≥1 outcome.
- Network diameter / radius — computed on paths from exogenous (in-degree 0) nodes to marked outcomes.
- Network Summary — exposure / outcome names, covariate count, directed causal paths.
- Color on the canvas.
Roles do not matter for Paths. Paths uses the nodes you have selected, not exposure/outcome. You can trace A→…→B between two intermediate nodes.
Color vs tools
Selection uses a teal highlight. Hover (circle mode) shows a ring. Ego dims non-neighbors. Cycles do not recolor nodes (only edges). Paths dims every node except the selected endpoints.
Light mode washes the fills and uses a paper clear color; the roles stay the same hues.