test_that("as_edgelist works", {
g <- sample_gnp(100, 3 / 100)
e <- as_edgelist(g)
g2 <- make_graph(t(e), n = vcount(g), dir = FALSE)
expect_isomorphic(g, g2)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.