as_adjacency: Convert a caugi to an adjacency matrix

View source: R/caugi_to.R

as_adjacencyR Documentation

Convert a caugi to an adjacency matrix

Description

Does not take other edge types than the one found in a PDAG.

Usage

as_adjacency(x)

Arguments

x

A caugi object.

Value

An integer 0/1 adjacency matrix with row/col names.

See Also

Other conversions: as_bnlearn(), as_caugi(), as_dagitty(), as_igraph()

Examples

cg <- caugi(
  A %-->% B,
  class = "DAG"
)
adj <- as_adjacency(cg)


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