toMatrix | R Documentation |
Convert a DAG object from other libraries to an adjacency matrix.
toMatrix(network)
network |
A bnlearn or igraph object. |
An adjacency matrix representation of network.
toMatrix(bnlearn::empty.graph(LETTERS[1:6]))
toMatrix(igraph::sample_k_regular(10, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.