tests/testthat/test-bridges.R

test_that("bridges works", {
  g <- make_graph("krackhardt_kite")
  expect_equal(sort(as.vector(bridges(g))), (ecount(g) - 1):(ecount(g)))
})
igraph/rigraph documentation built on July 9, 2024, 6:43 p.m.