tests/testthat/test-graph.dfs.R

test_that("DFS uses 1-based root vertex index", {
  g <- make_ring(3)
  expect_that(dfs(g, root = 1)$root, equals(1))
})

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.