Skip to contents

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

Usage

as_adjacency(x)

Arguments

x

A caugi_graph object.

Value

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

See also

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

Examples

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