dot-edge_type_from_anteriors: Infer edge type from anterior relationships

.edge_type_from_anteriorsR Documentation

Infer edge type from anterior relationships

Description

Given two adjacent nodes, infers the edge type (directed, bidirected, or undirected) based on whether each node is in the anterior of the other combined with the conditioning set.

Usage

.edge_type_from_anteriors(node_a, node_b, cond_vars, anteriors_list)

Arguments

node_a

First node name.

node_b

Second node name.

cond_vars

Conditioning variables.

anteriors_list

Pre-computed list of anteriors for all nodes.

Value

A single-row data.table with from, edge, to columns.


caugi documentation built on Oct. 28, 2026, 1:07 a.m.