as_adj_matrix {stagedtrees} | R 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 |
Value
the equivalent adjacency matrix
for as_adj_matrix.ceg
: the adj matrix corresponding to the CEG.
[Package stagedtrees version 2.3.0 Index]