test_that("edge_lengths works", {
set.seed(42L)
result = tumopp("-N32 -k1e6")
population = result$population[[1L]]
graph = make_igraph(population)
exp_len = nrow(population) - 1L
expect_vector(edge_lengths(graph), integer(), exp_len)
expect_vector(edge_lengths(graph, mu = 1), integer(), exp_len)
expect_vector(edge_lengths(graph, accel = 1), numeric(), exp_len)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.