Paths
Paths (the toggle label; full name causal pathways) is directed path tracing among the nodes you have selected.
It is available in every analytics mode. It does not use exposure / outcome roles. Pin the endpoints with the selection set; the overlay follows that set.
How to use it
- Turn Paths on. The whole graph greys out (nodes and edges).
- Click a node, then ⌘ / Ctrl+click others. Selected endpoints keep the usual selection highlight so you can still see the set.
- Lime edges are the directed pathways that connect those nodes — either direction, union of all pairs.
- Click the empty canvas to clear the selection. The graph stays grey until you pin two or more nodes again, or turn Paths off.
With fewer than two selected nodes there is nothing to trace, so everything stays grey. That is expected, not a bug.
What is colored
- Edges on a directed walk between two distinct selected nodes: lime (dark canvas) / deeper green (light canvas). The Paths toggle uses the same lime when on.
- Selected nodes: selection highlight (teal), not dim.
- Every other node: dim, even if it sits on a highlighted path. Only edges carry the pathway color.
What counts as a pathway
An edge (u \rightarrow v) is highlighted when there exist distinct selected nodes (s) and (t) such that (s) can reach (u) and (v) can reach (t):
[ s \rightsquigarrow u \rightarrow v \rightsquigarrow t ]
On a DAG that is exactly the edges on a simple directed path between a selected pair. If the graph still has directed cycles, detours that still reach (t) are included.
That is directed tracing:
| Structure | Pattern | Highlighted? |
|---|---|---|
| Chain (causal / front-door path) | (A \rightarrow M \rightarrow Y) | Yes |
| Confounder (back-door) | (A \leftarrow C \rightarrow Y) | No |
| Collider | (A \rightarrow K \leftarrow Y) | No |
See Causal paths vs bias for why those last two stay grey.
Role-based coloring (Paths off)
When Paths is off and at least one exposure and one outcome are set, Pallium paints DAGitty-style overlays on the full graph:
- Lime: proper causal paths from exposure to outcome
- Magenta: open biasing (back-door) paths
- Intermediate ancestors of exposure / outcome / both are tinted
Turn Paths on to switch back to selection-based tracing. Causal view mode (moral / correlation / CPDAG) is a different overlay: it replaces displayed edges and ignores Paths coloring until you return to normal. See Causal.
What it is not
- Not adjustment-set highlighting. Causal panel sets use roles; Paths uses selection.
- Not undirected “connect these nodes somehow.”
- Not synced in live sessions. Peers share the DAG; they do not share your selected endpoints or whether Paths is on.
Combining with other tools
While Paths is on it owns the overlay: Ego dimming, cycle rose, and role-based causal/biasing colors are ignored. SEM still chooses circle vs labeled rectangle. Turn Paths off to get the other overlays back.
Implementation notes
Toggle: #pathway-mode-toggle → set_pathway_mode → PathwayMode.
Algorithm: prodigy/src/pathways.rs. Tests: src/tests/pathways.rs.
Selection model: Selection.