Nothing
test_that("has_parent on non existing node should error", {
graph <- graph_builder() |>
add_path(c("1", "2", "3")) |>
build_directed()
expect_equal(has_parents(graph, "3"), TRUE)
expect_error(has_parents(graph, "4"))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.