/usr/lib/R/site-library/igraph/tests/test_delete.vertices.R is in r-cran-igraph 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | context("delete.vertices")
test_that("delete.vertices works", {
library(igraph)
g <- graph.formula(A:B:C - D:E:F, D-E-F)
g2 <- delete.vertices(g, "A")
g3 <- delete.vertices(g, match("A", V(g)$name))
expect_that(graph.isomorphic(g2, g3), is_true())
})
|