test_that("ivs works", { g <- sample_gnp(50, 0.8) ivs <- ivs(g, min = ivs_size(g)) ec <- sapply(seq_along(ivs), function(x) { ecount(induced_subgraph(g, ivs[[x]])) }) expect_equal(unique(ec), 0) })