Nothing
test_that("graph_from_edgelist works", {
set.seed(20230115)
g <- sample_gnp(50, 5 / 50)
el <- as_edgelist(g)
g2 <- graph_from_edgelist(el, directed = FALSE)
expect_true(graph.isomorphic(g, g2))
####
g <- sample_gnp(50, 5 / 50, directed = TRUE)
el <- as_edgelist(g)
g2 <- graph_from_edgelist(el, directed = TRUE)
expect_true(graph.isomorphic(g, g2))
####
g <- sample_gnp(26, 5 / 26, directed = TRUE)
el <- as_edgelist(g)
n <- letters[1:26]
names(n) <- 1:26
mode(el) <- "character"
el[] <- n[el]
g2 <- graph_from_edgelist(el, directed = TRUE)
expect_true(graph.isomorphic(g, g2))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.