test_that("check adjtodist output", {
# setup -------------------------------------------------------------------
n_patch <- 10
net <- brnet(n_patch = n_patch,
p_branch = 0)
x <- net$adjacency_matrix
# test --------------------------------------------------------------------
expect_equal(max(adjtodist(x)), n_patch - 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.