tests/testthat/test-layout_dynamic.R

test_that("layout_dynamic works", {
  library(igraph)
  expect_error(layout_as_dynamic(3))
  expect_error(layout_as_dynamic(list(igraph::graph.full(3),igraph::graph.full(5))))
  expect_is(layout_as_dynamic(list(igraph::graph.full(5),igraph::graph.full(5))),"list")
  expect_no_error(layout_as_dynamic(list(igraph::graph.full(3))))
  expect_error(layout_as_dynamic(igraph::graph.full(3)))
})

Try the graphlayouts package in your browser

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

graphlayouts documentation built on Nov. 4, 2023, 1:08 a.m.