tests/testthat/test-graph.complementer.R

test_that("complementer works", {
  g <- sample_gnp(50, 3 / 50)
  g2 <- complementer(g)
  g3 <- complementer(g2)
  expect_true(graph.isomorphic(g, g3))
})

Try the igraph package in your browser

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

igraph documentation built on Aug. 10, 2023, 9:08 a.m.