tests/testthat/test-bridges.R

test_that("bridges works", {
  g <- make_graph("krackhardt_kite")
  expect_that(sort(as.vector(bridges(g))), equals((ecount(g) - 1):(ecount(g))))
})

Try the igraph package in your browser

Any scripts or data that you put into this service are public.

igraph documentation built on Aug. 10, 2023, 9:08 a.m.