tests/testthat/test-iea_model.R

test_that("iea_model works", {
  A <-  matrix(c(1, 1, 0,
                 1, 2, 2,
                 0, 2, 0),
                nrow = 3, ncol = 3)


  res <- iea_model(adj = A , type = 'graph', model = 'IEAS', K = 0, apx = FALSE)
  expect_equal(res$nr.multigraphs,462)
})

Try the multigraphr package in your browser

Any scripts or data that you put into this service are public.

multigraphr documentation built on May 29, 2024, 5:52 a.m.