tests/testthat/test-get.edgelist.R

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)
})
igraph/rigraph documentation built on Aug. 16, 2024, 1:38 p.m.