Edges
Edges are directed, bidirected (<->, latent confounding), or
undirected (--, PDAG). Cycle mode still flags directed cycles
only.
Purpose
| Kind | Syntax | What it means |
|---|---|---|
| Directed | -> | (A) is a cause of (B). Default. |
| Bidirected | <-> | Latent confounding between (A) and (B) without drawing a (U) node (DAGitty spouses). |
| Undirected | -- | PDAG / equivalence-class edge: orientation not yet known. Identification uses m-separation on mixed graphs. |
Bidirected is not “arrows both ways as two directed edges.” It is one edge that stands for an unmeasured common cause.
Toggle
- Select a node (primary).
- Shift + left click another node.
- No edge → directed
primary → clicked - Directed → bidirected (arrowheads both ends)
- Bidirected → undirected (no arrowheads)
- Undirected → remove
There is no Shift+click to reverse in one gesture: remove, then add the other way (select the other node first).
DAGitty import/export round-trips all three (->, <->, --).
Drawing
Shaft + arrowhead (none on undirected; both ends on bidirected). Shafts stay relatively thin; arrowheads are sized independently so the tip stays readable. In circle mode the shaft stops short of the disk (clearance for the arrow); in SEM mode it stops at the rectangle (using the live label half-extents).
Role does not tint edges. Default edge color is blue. Overrides:
- Ego: edges not in the hovered neighborhood dim
- Cycles: cycle edges rose; others dim
- Paths: pathway edges lime; all others dim (wins over Ego and Cycles)
- Paths off, exposure and outcome set: lime causal paths, magenta biasing (back-door) paths
- Atomic direct effects (Causal panel): unmediated arrows draw thicker
Live
Add and delete are add_edge / delete_edge ops (bidirected /
undirected flags on the payload). Everyone sees the same arrow.