File: test-layout_dynamic.R

package info (click to toggle)
r-cran-graphlayouts 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,660 kB
  • sloc: cpp: 696; sh: 13; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
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)))
})