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)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.