as_adj_matrix: Convert to an adjacency matrix

View source: R/as_adj_matrix.R

as_adj_matrixR Documentation

Convert to an adjacency matrix

Description

Convert to an adjacency matrix

Usage

as_adj_matrix(x, ...)

## S3 method for class 'parentslist'
as_adj_matrix(x, ...)

## S3 method for class 'ceg'
as_adj_matrix(x, ignore = x$name_unobserved, endnode = TRUE, ...)

Arguments

x

an R object

...

additional parameters

ignore

list of stages to be ignored.

endnode

logical value. If TRUE a final node fil be added.

Value

the equivalent adjacency matrix

for as_adj_matrix.ceg: the adj matrix corresponding to the CEG.


stagedtrees documentation built on May 29, 2024, 12:33 p.m.