essgraph2amat {causalDisco} | R Documentation |
Convert essential graph to adjacency matrix
Description
Extracts the adjacency matrix from an EssGraph-class
object. This object is returned
by score-based causal discovery algorithms in the pcalg package.
Usage
essgraph2amat(essgraph, p = length(essgraph$field(".nodes")))
Arguments
essgraph |
An |
p |
The number of nodes in the graph |
Value
An adjacency matrix (square matrix with 0/1 entries).
[Package causalDisco version 0.9.1 Index]